Skip to main content

Zookeeper service discovery

Project description

Zoosync

Zoosync is a simple service discovery tool using Zookeeper as database backend.

Usage

See zoosync –help for brief usage or manual page for more detailed usage.

The output is in the form of shell variable assignement. Tool could be used this way:

ZOO='zoo1.example.com,zoo2.example.com,zoo3.example.com'
REQ_SERVICES='impala,hadoop-hdfs,test,test2,test3'

zoosync --zookeeper ${ZOO} --services ${REQ_SERVICES} cleanup
eval `zoosync --zookeeper ${ZOO} --services ${REQ_SERVICES} --wait 1800 wait`

echo "active: ${SERVICES}"
echo "missing: ${MISSING}"

Deployment

# install
pip install zoosync

# configure (/etc/zoosynrc and startup scripts)
zoosync -z zoo1,zoo2,zoo3 -s service1,service2 -u user -p password deploy

Tests

Tests require running zookeeper and proper configuration of zoosync (see Usage).

Launch:

python setup.py test

Project details


Download files

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

Source Distribution

zoosync-3.0.2.tar.gz (9.8 kB view details)

Uploaded Source

File details

Details for the file zoosync-3.0.2.tar.gz.

File metadata

  • Download URL: zoosync-3.0.2.tar.gz
  • Upload date:
  • Size: 9.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for zoosync-3.0.2.tar.gz
Algorithm Hash digest
SHA256 37db8cc1ddd283f5a85d929b631cd2c7f2e6d233d72b8bdb046d0e6d5b636181
MD5 b1fb772f8505385bee293b53e6a67c4a
BLAKE2b-256 43de0300b9c74b6063da6f7a6a10d438bef5a65dd07b3aab956a4da5d66663a0

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page