Re: Leader election

2018-12-11 Thread Michael Borokhovich
e timeouts fairly short because an unnecessary election takes less time > than a long timeout) > > Anyway, you probably already have a design in mind. If this helps anyway, > that's great. > > On Mon, Dec 10, 2018 at 10:32 PM Michael Borokhovich > > wrote: > > >

Re: Leader election

2018-12-10 Thread Michael Borokhovich
Thanks, Maciej. That sounds good. We will try playing with the parameters and have at least a known upper limit on the inconsistency interval. On Fri, Dec 7, 2018 at 2:11 AM Maciej Smoleński wrote: > On Fri, Dec 7, 2018 at 3:03 AM Michael Borokhovich > wrote: > > > We are

Re: Leader election

2018-12-10 Thread Michael Borokhovich
lgorithms to deal with this (using > optimistic locking, etc.). > > -Jordan > > > On Dec 6, 2018, at 1:52 PM, Michael Borokhovich > wrote: > > > > Thanks Jordan, > > > > Yes, I will try Curator. > > Also, beyond the problem described in the Tech No

Re: Leader election

2018-12-10 Thread Michael Borokhovich
connection here that is the point. Any kind of delay would have the same > effect. Getting these ping intervals below one second makes for a very > twitchy system. > > > > On Fri, Dec 7, 2018 at 11:03 AM Michael Borokhovich > wrote: > > > We are planning to run Zookeeper

Re: Leader election

2018-12-06 Thread Michael Borokhovich
We are planning to run Zookeeper nodes embedded with the client nodes. I.e., each client runs also a ZK node. So, network partition will disconnect a ZK node and not only the client. My concern is about the following statement from the ZK documentation: "Timeliness: The clients view of the system

Re: Leader election

2018-12-06 Thread Michael Borokhovich
-Jordan > > http://curator.apache.org <http://curator.apache.org/> > > > > On Dec 5, 2018, at 6:20 PM, Michael Borokhovich > wrote: > > > > Hello, > > > > We have a service that runs on 3 hosts for high availability. However, at >

Re: Leader election

2018-12-05 Thread Michael Borokhovich
ade implements of curator: > http://curator.apache.org/curator-recipes/leader-election.html > - 原始邮件 ----- > 发件人:Michael Borokhovich > 收件人:"dev@zookeeper.apache.org" > 主题:Leader election > 日期:2018年12月06日 07点29分 > > Hello, > We have a service that runs o

Leader election

2018-12-05 Thread Michael Borokhovich
Hello, We have a service that runs on 3 hosts for high availability. However, at any given time, exactly one instance must be active. So, we are thinking to use Leader election using Zookeeper. To this goal, on each service host we also start a ZK server, so we have a 3-nodes ZK cluster and each