search

Home  >  Q&A  >  body text

java - zookeeper是如何知道它的目录树中的一个节点挂掉了?然后才去措施的?

zookeeper为树形结构,类似文件系统,每个节点称为znode:znode里可以存数据(最大1MB),可以挂子znode
znode的名字以"/"开头,"/"为根节点。当一个znode挂点的时候,zookeeper是如何知道的?又是采取何种措施解决的呢?

怪我咯怪我咯2836 days ago704

reply all(2)I'll reply

  • 伊谢尔伦

    伊谢尔伦2017-04-18 09:45:33

    Observer mode?

    reply
    0
  • 大家讲道理

    大家讲道理2017-04-18 09:45:33

    update: I read the wrong question, which means I don't know!
    Didn't it mean that there is a heartbeat sensor? If I can't ping you, you must have died.

    reply
    0
  • Cancelreply