问题
I am not able to find information regarding automatic expiration of persistent node in zookeeper. Is persistent node only expire when zookeeper server is shut down or it can expired before before that ?. if yes, what are the possible reason. Here I am asking about automatic expiration not manually deleting the node.
回答1:
Persistent ZK nodes are saved on disk and preserved on service restarts and only deleted by request. Ephemeral nodes are deleted automatically on client disconnection.
来源:https://stackoverflow.com/questions/26773316/expiration-of-zookeeper-persistent-node