zoukankan      html  css  js  c++  java
  • zookeeper note

     Session:

       To create a client session the application code must provide a connection string containing a comma separated list of host:port pairs

           host + port 

           If this connection fails, or if the client becomes disconnected from the server for any reason,

           the client will automatically try the next server in the list, until a connection is (re-)established.

             Eventually,

         when connectivity between the client and at least one of the servers is re-established,

         the session will either again transition to the "connected" state (if reconnected within the session timeout value)

                                or it will transition to the "expired" state (if reconnected after the session timeout). 

          The ZK client library will handle reconnect for you.

         heartbeat:

            Expirations happens when the cluster does not hear from the client within the specified session timeout period (i.e. no heartbeat)

            At session expiration the cluster will delete any/all ephemeral nodes owned by that session and immediately notify any/all connected clients of the change (anyone watching those znodes)

  • 相关阅读:
    免费在线PDF处理工具 PDF Candy
    免費線上接收簡訊多國手機門號
    Ubuntu在线体验
    进入网站自动加自己为QQ好友代码
    whmcs模板路径
    whmcs语言汉化路径
    移动硬盘文件或目录损坏且无法读取怎么修复
    WordPress博客插入直播源
    设计模式总结
    JQuery+EasyUI弹窗代码
  • 原文地址:https://www.cnblogs.com/allenhaozi/p/10201850.html
Copyright © 2011-2022 走看看