ZK node type

Persistent node (the PERSISTENT)

Persistent nodes, there has been the creation, until the initiative to remove the node.

2. Persistence order of nodes (PERSISTENT_SEQUENTIAL)

Lasting order of nodes, there has been the creation, until the initiative to remove the node. In ZK, each parent node maintains a timing for its first-level child node, recording the sequence of each child node created.

3. Temporary node (EPHEMERAL)

Temporary node is automatically cleared after a client session failover. The following temporary node can not create a child node.

4. Temporary order node (EPHEMERAL_SEQUENTIAL)

Temporary node is automatically cleared after a client session failover. The following temporary node can not create a child node. GetChildren parent node will get a list of the order.

 

Order node name must be unique.

Container Nodes

TTL Nodes

Guess you like

Origin www.cnblogs.com/shuiyonglewodezzzzz/p/11208657.html