We have been discussing various implementation options for doing this, but right now this is not possible. If you are interested in this problem take a look at https://issues.apache.org/jira/browse/ZOOKEEPER-922, which is one proposed solution.
C -----Original Message----- From: Steve Gury [mailto:steve.g...@mimesis-republic.com] Sent: Tuesday, November 16, 2010 9:04 AM To: firstname.lastname@example.org" Subject: Config for destroying ephemeral node as soon as the client is disconnected Hi all, I would like to customize the config of Zookeeper so that when a client is disconnected, the server will instantaneously remove all ephemeral nodes associated with the client. No wait for session timeout or at least a very small amount of time. But I would like to keep the feature that when a client is partitioned the server wait a long amount of time (session timeout) before removing the ephemeral node of the client. Scenario 1: - Server is up - Client start and connect itself to the server - Client create some ephemeral node - Client crash and then the operating system reset the connection - Server receive the end of connection - Server remove all ephemeral nodes (no waiting for session timeout) Scenario 2: - Server is up - Client start and connect itself to the server - Client create some ephemeral node - Client is unplugged from the network - Server didn't receive ping from the client - Server wait session timeout - Server remove all ephemeral nodes Is there a way to configure Zookeeper like this ? Thanks, Steve