Configuring the CDL Session Database and Defining the Base Configuration
This section describes how to configure the CDL session database and define the base configuration in PCF.
To configure the CDL session database and define the base configuration in CDL, use the following configuration in the Policy Ops Center console:
config
cdl
system-id system_id
node-type node_type
enable-geo-replication [ true | false ]
zookeeper replica zookeeper_replica_id
remote-site remote_system_id
db-endpoint host host_name
db-endpoint port port_number
kafka-server remote_kafka_host1 remote_port1
kafka-server remote_kafka_host2 remote_port2
kafka-server remote_kafka_host3 remote_port3
exit
cdl logging default-log-level debug_level
cdl datastore session
cluster-id cluster_id
geo-remote-site remote_site_value
endpoint replica replica_number
endpoint external-ip ip_address
endpoint external-port port_number
index map map_value
slot replica replica_slot
slot map map/shards
slot write-factor write_factor
slot notification host host_name
slot notification port port_number
slot notification limit tps
slot notification include-conflict-data [ true | false ]
index replica index_replica
index map map/shards
index write-factor write_factor
end
NOTES:
-
system-id system_id —(Optional) Specify the system or Kubernetes cluster identity. The default value is 1.
-
node-type node_type —(Optional) Specify the Kubernetes node label to configure the node affinity. The default value is “session.” node_type must be an alphabetic string of 0-64 characters.
-
enable-geo-replication [ true | false ] —(Optional) Specify the geo replication status as enable or disable. The default value is false.
-
zookeeper replica zookeeper_replica_id —Specify the Zooker replica server ID.
-
remote-site remote_system_id —Specify the endpoint IP address for the remote site endpoint. Configure this command only when you have set the cdl enable-geo-replication to true.
-
db-endpoint host host_name —Specify the endpoint IP address for the remote site. Configure this command only when you have set the cdl enable-geo-replication to true.
-
db-endpoint port port_number —Specify the endpoint port number for the remote site endpoint. The default port number is 8882. Configure this command only when you have set the cdl enable-geo-replication to true.
-
kafka-server remote_kafka_host1 remote_port1 —Specify the Kafka server’s external IP address and port number of the remote site that the remote-system-id identifies. You can configure multiple host address and port numbers per Kafka instance at the remote site. Configure this command only when you have set the cdl enable-geo-replication to true.
-
endpoint replica replica_number —(Optional) Specify the number of replicas to be created. The default value is 1. replica_number must be an integer in the range of 1 – 16.
-
endpoint external-ip ip_address —(Optional) Specify the external IP address to expose the database endpoint. Configure this command only when you have set the cdl enable-geo-replication to true.
-
endpoint external-port port_number —(Optional) Specify the external port number to expose the database endpoint. Configure this command only when you have set the cdl enable-geo-replication to true. The default value is 8882.
-
slot replica replica_slot —(Optional) Specify the number of replicas to be created. The default value is 1. replica_slot must be an integer in the range of 1 – 16.
-
slot map map/shards —(Optional) Specify the number of partitions in a slot. The default value is 1. map/shards must be an integer in the range of 1 – 1024.
-
slot write-factor write_factor —(Optional) Specify the number of copies to be written before successful response. The default value is 1. write_factor must be an integer in the range of 0 – 16. Make sure that the value is lower than or equal to the number of replicas.
-
slot notification host host_name —(Optional) Specify the notification server hostname or IP address. The default value is datastore-notification-ep.
-
slot notification port port_number —(Optional) Specify the notification server port number. The default value is 8890.
-
slot notification limit tps —(Optional) Specify the notification limit per second. The default value is 2000.
-
slot notification include-conflict-data [ true | false ] —(Optional) Specify whether to receive the original data and the data from the request along with the DB conflict notification. This command is used to send conflict record data from CDL.
-
index replica index_replica —(Optional) Specify the number of replicas to be created. The default value is 2. index_replica must be an integer in the range of 1 – 16.
-
index map map/shards —(Optional) Specify the number of partitions in a slot. The default value is 1. map/shards must be an integer in the range of 1 – 1024. Avoid modifying this value after deploying the CDL.
-
index write-factor write_factor —(Optional) Specify the number of copies to be written before successful response. The default value is 1. write_factor must be an integer in the range of 0 – 16.