https://github.com/valtri/zoosync
Zookeeper Service Discovery
https://github.com/valtri/zoosync
Last synced: 8 months ago
JSON representation
Zookeeper Service Discovery
- Host: GitHub
- URL: https://github.com/valtri/zoosync
- Owner: valtri
- License: mit
- Created: 2015-07-01T22:49:26.000Z (almost 11 years ago)
- Default Branch: master
- Last Pushed: 2015-08-29T20:28:05.000Z (almost 11 years ago)
- Last Synced: 2025-10-09T23:19:55.228Z (8 months ago)
- Language: Python
- Size: 195 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.rst
- License: LICENSE
Awesome Lists containing this project
README
Zoosync
=======
|build-status| |coverage-status|
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
.. |build-status| image:: https://travis-ci.org/valtri/zoosync.svg?branch=master
:target: https://travis-ci.org/valtri/zoosync
:alt: Build status
.. |coverage-status| image:: https://img.shields.io/coveralls/valtri/zoosync.svg
:target: https://coveralls.io/github/valtri/zoosync
:alt: Test coverage percentage