3 ms·
So how does zetcd handle the zookeeper session? It's in zetcd and then the "ephemeral nodes" are removed from etcd if the zk client session expires? This is han
by ninjakeyboard 9y ago
So how does zetcd handle the zookeeper session? It's in zetcd and then the "ephemeral nodes" are removed from etcd if the zk client session expires? This is handled by the proxy?
This seems to be the major design compatibility item between the two is that the zookeeper protocol has a session state and so supports ephemeral nodes. If a gc pauses the jvm for a long time the client session will expire. In etcd there is ttl instead (zookeeper always lacked ttl as it wasn't needed)
- philips 9y agoA Go routine is spawned which runs the etcd client's KeepAlive method to tie a session to a lease in the proxy. The code is here: https://github.com/coreos/zetcd/blob/d33e3b836a2a2de8a8ec0771f5d249aa66d4bf8a/session.go#L48 https://github.com/coreos/zetcd/blob/d33e3b836a2a2de8a8ec077... Disclaimer: The person who wrote this is AFK at the moment so I might be completely wrong ;)
- Randgalt 9y ago> zookeeper always lacked ttl ZooKeeper 3.5.3 supports TTLs