hadoop-zookeeper-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Steve Gury <steve.g...@mimesis-republic.com>
Subject Config for destroying ephemeral node as soon as the client is disconnected
Date Tue, 16 Nov 2010 14:04:18 GMT
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

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message