NOTE

ZooKeeper Namespace

ZooKeeper's data structure resembles the Linux filesystem; every node can store data, with a 1 MB data limit per node.

ZooKeeperCreated Updated 1 min readhistorical

This is a historical learning note and may contain outdated or incomplete understanding.

1. ZooKeeper’s Data Structure Is Similar to the Linux File System

/
    /test
        /test/lock
    /test2

1.1. Every Node Can Store Data

Unlike a file system, every node in ZooKeeper can store data. In a file system, only file nodes can store data, while directory nodes cannot.

1.2. The Data Storage Limit of Each Node Is 1 MB

To ensure high throughput and low latency, ZooKeeper maintains this tree-shaped directory structure in memory. This characteristic means ZooKeeper cannot be used to store large amounts of data. The data storage limit of each node is 1 MB.

Discussion

Sign in with GitHub to comment. Discussions are stored as GitHub Issues.View on GitHub