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, so 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

cat > /etc/zoosyncrc <<EOF
zookeeper=zoo1,zoo2,zoo3
user=user
password=changeit
services=service1,service2
EOF

# automatic startup

# 1) SystemV

cp scripts/zoosync.sh /etc/init.d/
#debian: update-rc.d zoosync defaults
#redhat: chkconfig zoosync on

# 2) SystemD

cp scripts/zoosync.service /etc/systemd/system/
systemctl enable zoosync

Project details


Release history Release notifications

History Node

3.0.2

History Node

3.0.1

History Node

3.0.0

History Node

2.1.2

History Node

2.1.1

This version
History Node

2.1.0

History Node

2.0.1

History Node

2.0.0

History Node

1.0.1

History Node

1.0.0

History Node

0.0.9

Download files

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

Filename, size & hash SHA256 hash help File type Python version Upload date
zoosync-2.1.0.tar.gz (9.4 kB) Copy SHA256 hash SHA256 Source None Jul 6, 2015

Supported by

Elastic Elastic Search Pingdom Pingdom Monitoring Google Google BigQuery Sentry Sentry Error logging CloudAMQP CloudAMQP RabbitMQ AWS AWS Cloud computing Fastly Fastly CDN DigiCert DigiCert EV certificate StatusPage StatusPage Status page