mutually exclusive task execution using ZooKeeper
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
.gitignore
README.md
compileme.sh
main.c

README.md

zoo-locked

mutually exclusive task execution using ZooKeeper

This small tool will acquire an exclusive lock using ZooKeeper and then execute an arbitrary program/script through popen. While the task is running, the lock will be held. Should the tool crash for whatever reason, the ZooKeeper connection will time out which will release the lock.

The tool is written in C and has no dependencies apart from the zookeper_mt lib.