1. The ZooKeeper Data Model

1.1 ZNodes

Znodes maintain a stat structure:

The Stat structure for each znode in ZooKeeper is made up of the following fields:

  • czxid

    The zxid of the change that caused this znode to be created.

  • mzxid

    The zxid of the change that last modified this znode.

  • ctime

    The time in milliseconds from epoch when this znode was created.

  • mtime

    The time in milliseconds from epoch when this znode was last modified.

  • version

    The number of changes to the data of this znode.

  • cversion

    The number of changes to the children of this znode.

  • aversion

    The number of changes to the ACL of this znode.

  • ephemeralOwner

    The session id of the owner of this znode if the znode is an ephemeral node. If it is not an ephemeral node, it will be zero.

  • dataLength

    The length of the data field of this znode.

  • numChildren

    The number of children of this znode.

须知:

ZooKeeper was not designed to be a general database or large object store. Instead, it manages coordination data. This data can come in the form of configuration, status information, rendezvous, etc. A common property of the various forms of coordination data is that they are relatively small: measured in kilobytes. The ZooKeeper client and the server implementations have sanity checks to ensure that znodes have less than 1M of data, but the data should be much less than that on average. Operating on relatively large data sizes will cause some operations to take much more time than others and will affect the latencies of some operations because of the extra time needed to move more data over the network and onto storage media. If large data storage is needed, the usually pattern of dealing with such data is to store it on a bulk storage system, such as NFS or HDFS, and store pointers to the storage locations in ZooKeeper.

最新文章

  1. allegro - 层叠相关参数
  2. Android 如何制造低内存环境
  3. 【快报】基于K2 BPM的新一代协同办公门户实践交流会
  4. 两款CSS3样式可视化在线生成工具
  5. Visual Studio 2005安装qt-win-commercial-src-4.3.1,并设置环境变量
  6. Scrum Meeting--Twelve(2015-11-3)
  7. Node.js +Express+MongoDB+mogoose+ejs+bootstrap+jquery
  8. java(POI):基于模版的Excel导出功能,局部列写保护总结
  9. Count属性(行数 @)
  10. java学习(一)静态代码块 构造代码块 构造方法的执行顺序及注意问题
  11. gRPC异步处理应答
  12. 深入理解Python异步编程(上)
  13. 什么是CONTAINERD?
  14. java自带BASE64工具进行图片和字符串转换【转】
  15. Spring Boot学习笔记---Spring Boot 基础及使用idea搭建项目
  16. js获取n分钟(或n小时或n个月)后(或前)的时间(日期)
  17. hdu 1874 畅通工程续(求最短距离,dijkstra,floyd)
  18. PyQT5初学(一)
  19. JS 获取浏览器的宽和高
  20. cocos代码研究(19)Widget子类ImageView学习笔记

热门文章

  1. nginx 转发 header 数据丢失
  2. 小程序can't read property 'push' of undefined
  3. vue怎么将一个组件引入另一个组件?
  4. Wireshark 用户指南(3.1.0)
  5. 常用的etl工具比较
  6. [转]解决Git报错:error: You have not concluded your merge (MERGE_HEAD exists).
  7. HearthBuddy模拟对手的回合
  8. Wamp 升级php7.3报错
  9. List&Set
  10. jenkins参数化构建&HTML报告