Set a quota for Znodes in ZooKeeper of a security cluster in O&M scenarios or service scenarios to restrict the quantity and byte space of Znodes and subnodes.
Two modes are available:
If the configured quantity or capacity quota is less than the quantity or capacity of directories required for normal service running, services may fail to run properly. Exercise cautions when setting the quota.
The ZooKeeper client has been installed in a directory, for example, /opt/client.
Use the automatic quota setting function.
If the configured quantity or capacity quota is less than the actual quantity or capacity quota of the current directory, the setting can be saved successfully. However, an alarm indicating that the setting is invalid is displayed on the page, prompting you to reset the quota.
If the configured quantity or capacity quota is less than the quantity or capacity of directories required for normal service running, services may fail to run properly. Exercise cautions when setting the quota.
The entered quantity quota cannot be greater than the value of max.znode.count. The entered capacity quota cannot be greater than the value of max.data.size.
If the top directory on ZooKeeper is not the top directory of a service, and its quota is not specified using customized.quota, the ZooKeeper service sets the quota to the value of defaultQuota.
Run commands on the client.
In security mode, user authentication is required to start the ZooKeeper client. The ZooKeeper user (system administrator of ZooKeeper) is used for authentication, and the kinit zookeeper command is executed.