tooz/tooz
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
..
drivers Implement heartbeat for FileDriver 2017-04-11 20:04:48 +08:00
tests tests: tests fail if no URL is set + run partitioner tests on basic drivers 2017-03-28 18:29:47 +02:00
__init__.py Move ToozError to root module 2016-12-07 23:40:35 +01:00
_retry.py coordinator: add join_group_create 2016-11-24 10:25:52 +01:00
coordination.py Merge "coordination: do not get member list if not needed" 2017-03-28 15:48:31 +00:00
hashring.py add weight tests for add_nodes 2017-03-27 22:09:25 +00:00
locking.py Add shared filelock 2017-03-21 11:27:24 +08:00
partitioner.py get weight of existing members 2017-03-27 14:38:25 +00:00
utils.py Stop making tooz.utils depending on tooz.coordination 2017-01-01 18:47:16 +01:00