Re: Ephemeral Nodes

2021-01-28 Thread Flavio Junqueira
Yeah, what Ben said... What you might want to do is something along the lines of: 1- Have a client create the ephemeral znode, let's call it say "/active" 2- The other client acting as a standby sets a watch on "/active" 3- If the active node crashes, then "/active" is removed and the standby is

Re: Ephemeral Nodes

2021-01-28 Thread Benjamin Reed
can you explain a bit more what you mean by "The zookeeper-client process on standby which uses the same clientid to initialize a session with zookeeper." ? if i understand correctly, you are going to have two clients using the same session which cannot happen. do you only reuse the clientid when