1) the Stat structure of znode
在zookeeper的数据模型中,每个数据节点称为znode. 每个znode维护一个Stat structure.这个Stat structure 由下面几个属性构成:
·czxid
每一次对zookeeper znode做的更新都会对应唯一transactionID,这个id称为zxid.由于zxid是递增的,所以它实际上表示对zookeeper更新的一种顺序。例如zxid1 小于 zxid2 那么zxid1对应的操作在zxid2对应的操作之前发生。
Czxid表示znode创建时对应的zxid.
·mzxid
最近一次对znode更新所对应的zxid.
·ctime
Zookeeper不使用realtime和clocktime ,除了用时间戳来标示znode创建和修改的时间。Ctime是创建znode的时间戳。
·mtime
对Znode修改的时间戳。
·version
每一次对znode更新都会引起版本号的增加。Version标示与该znode关联的数据更新的版本号。
·cversion
该节点的子节点更新的版本号。
·aversion
ACL(Access Control List)访问控制列表更新的版本号。
·ephemeralOwner
如果该节点的类型是ephemeral,那么该节点的ephemeralOwner就是创建该节点的client的session id。如果该节点不是ephemeral的,那么该节点的ephemeralOwner就是0.
·dataLength
与该节点关联的数据的长度。
·numChildren
该节点的子节点数目。
2) The type of znode
在zookeeper中创建znode的类型有两种,ephemeral和persistent.
·ephemeral
该类型的节点与session是同生命周期的。Session创建该节点之后,该节点就是活着的,当session结束之后zookeeper就会清理掉该节点。所以该类型的节点不能有子节点。
·persistent
该类型的节点不和session绑定,显示的创建,显示的删除。否则该节点一直存在。
·sequence
节点,sequence节点既可以是ephemeral的,也可以是persistent的。在创建节点时,zookeeper会在路径的后面添加递增的序列号。该序列号最大为2147483647(4bytes—signed int).-->这是zookeeper实现分布式锁的关键。
相关推荐
In the subsequent section the structure of the decoupled closed-loop system with respect to observability is considered. This type of problem has been regarded for linear systems with constant ...
The Structure of Intelligence A New Mathematical Model of Mind
Polanyi, Michael Polanyi, Michael - The Structure Of Consciousness
The following should roughly be the structure of a report. Note that these are just guidelines, not rules. You have to use your intelligence in working out the details of your specific writing.
Mumford - The structure of the moduli spaces of curves and abelian varieties (Actes Congr. Int. Math. 1970)
关于人脑就是算法的经典论述,发表在2012年science期刊上的文章。
啥也不说了,Newman写,经典的文献综述
parnas的文章,学设计应该好好学习parnas的文章。真心的
Each title in the series is suitable as a basis for undergraduate instruction, typically containing practice problems, worked examples, chaptersummaries, and suggestions for further reading.
hp实验室有关协同标记系统的文章 The Structure of Collaborative Tagging Systems Scott A. Golder and Bernardo A. Huberman Information Dynamics Lab, HP Labs
论文《Authentication Tests and the Structure of Bundles》
Explore the structure of tables (and views)创建察看数据库表结构
-The algorithm is used to set up passwords, and data structure of the stack to achieve.这个算法,是用来设置密码的,有数据结构中的栈来实现的。-The algorithm is used to set up passwords, and data ...
复杂系统设计问题的讨论,主要是针对模块的设计方面
What information is necessary when specifying the structure of a table? (a) the name of the table and the amount of storage space to be allocated to the table (b) the name of the table, the ...
网络科学的入门书籍,主要是网络的拓扑结构及其演变的过程理论分析
The Structure, Format, Content, and Style of a Journal-Style Scientific Paper
热拉伸对聚芳醚腈基复合材料结构与性能的影响,杜炫毅,尤勇,用氨基酞菁铜(NH2-CuPc)和羧基型聚芳醚腈(CPEN)修饰钛酸钡(BaTiO3)表面,制备得到了核壳结构的纳米粒子(CPEN-f-BaTiO3@NH2-CuPc)。将获得的CPEN-
构建我国家族企业产权制度的演进模式,冯增辉,张成虎,本文分析了我国家族企业产权制度存在的问题,构建了现阶段我国家族企业产权制度的演进模式,指出了家族企业应在家庭绝对控股的基
Structure and function of the global ocean microbiome 画图教程