Configuring Kafka in CDL
This section describes how to configure Kafka in CDL.
To configure the Kafka in CDL, use the following configuration:
-
Open the Policy Ops Center console and navigate to the datastore CLI.
-
To configure Kafka, use the following configuration:
config cdl kafka replica number_of_replicas enable-JMX-metrics [ true | fasle ] external-ip ip_address port_number enable-persistence [ true | fasle ] storage storage_size retention-time retention_period retention-size retention_size end
NOTES:
All the following parameters are optional.
-
cdl kafka replica number_of_replicas – Specifies the number of replicas to be created. The default value is 3. number_of_replicas must be an integer in the range of 1 – 16.
-
enable-JMX-metrics [ true | fasle ] – Specifies the status of the JMX metrics. The default value is true.
-
external-ip ip_address port_number – Lists the external IPs to expose to the Kafka service. Configure this command when you have set the enable-geo-replication parameter to true. You are required to define an external IP address and port number for each instance of the Kafka replica. For example, if the cdl kafka replica parameter is set to 3, then specify three external IP addresses and port numbers.
-
enable-persistence [ true | fasle ] – Indicates whether to enable or disable persistent storage for Kafka data. The default value is false.
-
storage storage_size – Specifies the Kafka data storage size in gigabyte. The default value is 20 GB. storage_size must be an integer in the range of 1-64.
-
retention-time retention_period – Specifies the duration (in hours) for which the data must be retained. The default value is 3. retention_period must be an integer in the range of 1 – 168.
-
retention-size retention_size – Specifies the data retention size in megabyte. The default value is 5120 MB.
-