Skip to content

Collection of recipes demonstrating how to use ZooKeeper and Python

Notifications You must be signed in to change notification settings

andreisavu/pyzk-recipes

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 

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

No packages published

Languages

  • Python 86.0%
  • Shell 14.0%