Zookeeper持久节点到期 [英] Expiration of zookeeper persistent node

查看:79
本文介绍了Zookeeper持久节点到期的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我无法找到有关Zookeeper中持久性节点自动过期的信息.持久节点是仅在Zookeeper服务器关闭时才到期还是可以在此之前到期?如果是,可能的原因是什么?在这里,我要问的是自动到期而不是手动删除节点.

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.

推荐答案

持久性ZK节点保存在磁盘上,并在服务重新启动时保留,并且仅在请求时删除.客户端断开连接后,临时节点会自动删除.

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.

这篇关于Zookeeper持久节点到期的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆