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

查看:63
本文介绍了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天全站免登陆