Apache ZooKeeper

Znode Count Approaching Scale Limits

warning
scalingUpdated Feb 6, 2026

ZooKeeper performance degrades when the total number of znodes approaches 1 million. High znode counts increase memory usage and can slow down operations, especially startup and snapshot creation.

How to detect:

Monitor zookeeper.znode.count and alert when it exceeds 500,000 (50% of recommended limit). Also track zookeeper.data_tree.size to understand total memory consumption from znodes.

Recommended action:

Audit znode usage to identify unnecessary data - remove obsolete znodes, implement data lifecycle policies, and consider archiving historical data to external storage. If legitimate usage is high, evaluate whether ZooKeeper is being used appropriately or if a different storage solution is needed.