Skip to main content

Python Resource Allocation API

Project description

Purpose

The objective of this module is to provide a common API to the configuration registy used to store service instance properties using KeyValue stores like consul, etcd or zookeeper.

Usage examples

Basic usage examples:

import registry
registry.connect()
instance = registry.get_cluster_instance(user='jlopez', framework='cdh', flavour='5.7.0', id='1')
# Alternatively you can retrieve it by DN
instance = registry.get_cluster_instance(dn='jlopez/cdh/5.7.0/1')

nodes = instance.nodes
services = instance.services

for node in nodes:
    print node.status

(user, framework, flavour, id) = registry.register(user='jlopez', framework='cdh', flavour='5.7.0', nodes=nodes, services=services)

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Files for configuration-registry, version 0.1.0
Filename, size File type Python version Upload date Hashes
Filename, size configuration-registry-0.1.0.tar.gz (2.4 kB) File type Source Python version None Upload date Hashes View

Supported by

AWS AWS Cloud computing Datadog Datadog Monitoring DigiCert DigiCert EV certificate Facebook / Instagram Facebook / Instagram PSF Sponsor Fastly Fastly CDN Google Google Object Storage and Download Analytics Pingdom Pingdom Monitoring Salesforce Salesforce PSF Sponsor Sentry Sentry Error logging StatusPage StatusPage Status page