Configuring the CDL Session Database and Defining the Base Configuration

Use the following sample configuration to configure the CDL session database and define the base configuration in SMF:

config 
   cdl system-id system_id 
   cdl node-type node_type 
   cdl zookeeper replica zookeeper_replica_id 
   exit 
   cdl logging default-log-level debug_level 
   cdl datastore session 
      cluster-id  cluster_id 
      endpoint replica  1 
      endpoint replica  num_replica 
      index map  map_value 
      slot replica  num_replica 
      slot map  num_map/shards 
      slot write-factor  write_factor 
      slot notification host  host 
      slot notification port  port 
      slot notification limit  tps 
      index replica  num_replica 
      index map  num_map/shards 
      index write-factor  write_factor 
      slice-names cdl_slice_name 
      end    

NOTES:

  • cdl system-id system_id : This is an optional command. Specifies the system or Kubernetes cluster identity. The default value is 1.

  • cdl node-type node_type : This is an optional command. Specifies the Kubernetes node label to configure the node affinity. The default value is “session.” Accepted length of the value is 0–64 alphabets.

  • cdl zookeeper replica zookeeper_replica_id : Specifies the zookeeper replica server's ID.

  • endpoint replica num_replica : This is an optional command. Specifies the number of replicas to be created. The default value is 1. Must be an integer in the range of 1–16.

  • slot replica num_replica : This is an optional command. Specifies the number of replicas to be created. The default value is 1. num_replica must be an integer in the range of 1–16.

  • slot map num_map/shards : This is an optional command. Specifies the number of partitions in a slot. The default value is 1. num_map/shards must be an integer in the range of 1–1024.

  • slot write-factor write_factor : This is an optional command. Specifies 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 : This is an optional command. Specifies the notification server hostname or IP address. The default value is datastore-notification-ep.

  • slot notification port port : This is an optional command. Specifies the notification server Port number. The default value is 8890.

  • slot notification limit tps : This is an optional command. Specifies the notification limit per second. The default value is 2000.

  • index replica num_replica : This is an optional command. Specifies the number of replicas to be created. The default value is 2. num_replica must be an integer in the range of 1–16.

  • index map num_map/shards : This is an optional command. Specifies the number of partitions in a slot. The default value is 1. num_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 : This is an optional command. Specifies 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.

  • slice-names cdl_slice_name : Specify the CDL slice names. cdl_slice_name must be an alphanumeric string from 1 to 16 characters in length.