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

Reply via email to