Configuring Zookeeper in CDL
This section describes how to configure Zookeeper in CDL.
To configure Zookeeper in CDL, use the following configuration:
-
Open the Policy Ops Center console and navigate to the datastore CLI.
-
To configure the parameters, use the following configuration:
config cdl zookeeper data-storage-size data_storage log-storage-size log_storage replica number_of_replicas enable-JMX-metrics [ true | false ] enable-persistence [ true | false ] end
NOTES:
All the following parameters are optional.
-
cdl zookeeper data-storage-size data_storage —Specify the size of the Zookeeper data storage in gigabyte. The default value is 20 GB. data_storage must be an integer in the range of 1-64.
-
log-storage-size log_storage —Specify the size of the Zookeeper data log's storage in gigabyte. The default value is 20 GB. log_storage must be an integer in the range of 1-64.
-
replica number_replicas —Specify the number of replicas that must be created. The default value is 3. number_replicas must be an integer in the range of 1-16.
-
enable-JMX-metrics [ true | false ] —Specify the status of the JMX metrics. The default value is true.
-
enable-persistence [ true | false ] —Specify the status of the persistent storage for Zookeeper data. The default value is false.
-
Sample Configuration
The following is a sample configuration of CDL in the HA environment.
cdl system-id system_i
cdl enable-geo-replication true
cdl zookeeper replica num_zk_replica
cdl datastore session
endpoint replica ep_replica
index map index_shard_count
slot replica slot_replica
slot map slot_shard_count
exit
cdl kafka replica kafka_replica