Coordinate distributed systems.
Go to file
mengalong 92c83b2b2e Implement heartbeat for FileDriver
As the title said this patch just implement the heartbeat api for
FileDriver.
1. You can delivery the parameter 'timeout' via the connect url like
   this: file:///tmp/test_coord?timeout=10. Otherwise the default timeout
   is 10secs.
2. We can call the function: heartbeat(self) periodic
   to make sure the specific member is alive.
3. When you call get_members(), it will compare the last modify time of
   the file with current time, if the delta_seconds greater than
   the timeout, it will mark the member status is dead and will not return
   the member_id.

Change-Id: I8617e17fc1a74e70d7eb5b6f8e12dc9d9a66c755
Closes-Bug: #1664559
2017-04-11 20:04:48 +08:00
doc/source Add partitioner implementation 2017-01-01 19:03:40 +01:00
examples Add partitioner implementation 2017-01-01 19:03:40 +01:00
releasenotes Update reno for stable/ocata 2017-01-20 19:16:28 +00:00
tools [doc] Note lack of constraints is a choice 2016-12-22 09:49:10 +11:00
tooz Implement heartbeat for FileDriver 2017-04-11 20:04:48 +08:00
.coveragerc Add standard code coverage configuration file 2015-10-02 09:09:41 -04:00
.gitignore Add reno for release notes management 2016-11-03 15:09:51 +08:00
.gitreview Fix .gitreview after rename/transfer 2014-12-06 19:27:17 +03:00
.testr.conf Enable OS_LOG_CAPTURE so that logs can be seen (on error) 2016-02-08 14:58:22 -08:00
CONTRIBUTING.rst Add CONTRIBUTING.rst 2016-11-18 16:44:36 +08:00
LICENSE First commit of Tooz 2013-12-19 12:18:35 +01:00
README.rst Switch badges from 'pypip.in' to 'shields.io' 2015-06-11 20:44:26 -07:00
bindep.txt Install only needed packages 2016-09-22 10:20:50 +02:00
requirements.txt Replace retrying with tenacity 2016-11-24 10:25:52 +01:00
run-examples.sh Have examples run in the py27 environment and make them work 2014-09-19 11:57:56 -07:00
run-tests.sh tests: tests fail if no URL is set + run partitioner tests on basic drivers 2017-03-28 18:29:47 +02:00
setup-consul-env.sh Use pifpaf to setup daemons 2016-06-09 10:40:16 +02:00
setup-etcd-env.sh Switch tests to use latest etcd - 3.1.3 2017-03-14 15:17:42 +00:00
setup.cfg Changed author and author-email 2016-11-28 10:05:45 +07:00
setup.py Updated from global requirements 2015-09-17 12:17:45 +00:00
tox.ini tests: tests fail if no URL is set + run partitioner tests on basic drivers 2017-03-28 18:29:47 +02:00

README.rst

Tooz

Latest Version

Downloads

The Tooz project aims at centralizing the most common distributed primitives like group membership protocol, lock service and leader election by providing a coordination API helping developers to build distributed applications.

Join us