forked from henryr/pyzk-recipes
-
Notifications
You must be signed in to change notification settings - Fork 1
andreisavu/pyzk-recipes
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
Highly Available Queue Prototype -------------------------------- Original implementation by Henry Robinson. * http://github.com/henryr/pyzk-recipes I've changed the code to retry the operation on ConnectionLoss. How to play with the demo? -------------------------- $ cd test_5_trunk $ ./start.sh $ python fail.py in another shell do: $ ./top.sh As you can see the cluster is pretty unstable. fail.py kills and restarts one random node at a time. Even if this happens the application should be able to easily survive server failures. Start the queue: $ python queue.py You should see multiple "Connected" messages.
About
Collection of recipes demonstrating how to use ZooKeeper and Python
Resources
Stars
Watchers
Forks
Releases
No releases published
Packages 0
No packages published
Languages
- Python 86.0%
- Shell 14.0%