Commit Graph

18 Commits

Author SHA1 Message Date
Aaron Chen 5728b670ae Fix Fault Tolerance section code example without ttl
Signed-off-by: Aaron Chen <aaron.chen@curiositychina.com>
2015-12-30 03:08:09 +08:00
Aaron Chen 3cf44b5b24 Fix leadership doc example typo
Signed-off-by: Aaron Chen <aaron.chen@curiositychina.com>
2015-12-29 19:11:35 +08:00
Alexandre Beslic 5e8998eb6d Fix Consul Lock TTL with store failure
If using the Lock TTL feature with Consul, the code
path in libkv is issuing a Put in the background through
the PeriodicRenewal call. The error is then eaten up and
ignored on the candidate loop. This would lead to the
candidate and followers being stuck in their candidate
loop. Consequence would be that they would not retry to
take the lock ending in a state with no Leader.

This patch restores an explicit error check instead of
wrongfully passing on the error to the channel before
giving it back to the caller.

Signed-off-by: Alexandre Beslic <abronan@docker.com>
2015-12-16 15:46:11 -08:00
Alexandre Beslic ab8d1b489c add support for specifying the leader election lock ttl
Signed-off-by: Alexandre Beslic <abronan@docker.com>
2015-09-23 04:06:35 -07:00
Andrea Luzzardi add72eb06a Merge pull request #1078 from abronan/leader_election_retry
Leadership: Fault tolerant Leader Election mechanism
2015-08-04 11:52:56 -07:00
Alexandre Beslic c7513506be Fault tolerant Leader Election process, fixes leader information on docker info, fixes intermittent error on Consul session lock
Signed-off-by: Alexandre Beslic <abronan@docker.com>
2015-07-31 10:06:47 -07:00
FreedomWangLi 102d8cbe58 Spelling mistakes
There is a spelling mistake in the leadship pachage,
fix it in this patch.

Signed-off-by: Yong Qiao Wang <yqwyq@cn.ibm.com>
2015-07-29 10:12:33 -04:00
fl0yd 168e31c096 Update README.md
Signed-off-by: Mark Oates fl0yd@me.com
Signed-off-by: Mark Oates <fl0yd@me.com>
2015-07-02 13:18:30 -05:00
Alexandre Beslic f50cd10061 migrate from pkg/store to docker/libkv
Signed-off-by: Alexandre Beslic <abronan@docker.com>
2015-06-29 16:19:21 -07:00
Ahmet Alp Balkan 00a2988d0d Fix typo in leadership/README.md
Signed-off-by: Ahmet Alp Balkan <ahmetalpbalkan@gmail.com>
2015-06-15 11:31:34 -07:00
Andrea Luzzardi 6ce921fde7 Leadership: Remove flaky test.
Signed-off-by: Andrea Luzzardi <aluzzardi@gmail.com>
2015-06-12 18:48:53 -07:00
Andrea Luzzardi 2b9165b2f2 leadership: Fix data races in tests.
Signed-off-by: Andrea Luzzardi <aluzzardi@gmail.com>
2015-06-12 14:18:37 -07:00
Andrea Luzzardi 3e2fb13d82 leadership: Export leader/status also in functions (not just channels)
Signed-off-by: Andrea Luzzardi <aluzzardi@gmail.com>
2015-06-11 17:39:05 -07:00
Alexandre Beslic 589b665f5f fix leadership doc on support for consul/etcd/zookeeper
Signed-off-by: Alexandre Beslic <abronan@docker.com>
2015-06-11 16:13:12 -07:00
Ben Parnell c744a9b600 Fix small typo in leadership/README.md
Signed-off-by: Ben Parnell <benjaminparnell.94@gmail.com>
2015-05-31 23:36:40 +01:00
Andrea Luzzardi bbf57d0724 leadership: API cleanup.
Signed-off-by: Andrea Luzzardi <aluzzardi@gmail.com>
2015-05-22 20:08:12 -07:00
Andrea Luzzardi a81c5436bb leadership: Fix README
Signed-off-by: Andrea Luzzardi <aluzzardi@gmail.com>
2015-05-20 13:58:27 -07:00
Andrea Luzzardi 3f01413b75 leadership: Distributed Leader Election
Signed-off-by: Andrea Luzzardi <aluzzardi@gmail.com>
2015-05-19 20:14:28 -07:00