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 through the NF (SMF or PCF) Ops Center.
-
Open the NF Ops Center console and navigate to the datastore CLI.
-
To configure the session database and define the base configurations for the failover of the CDL operations, use the following configuration.
configure cdl system-id system_id cdl node-type node_type cdl enable-geo-replication boolean_value cdl remote-site remote_system_id db-endpoint host host_ip_address db-endpoint port port kafka-server remote_kafka_host remote_port end exit cdl datastore session endpoint replica num_replica endpoint external-ip ip_address endpoint external-ip port 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 end exit
Notes:
-
cdl system-id system_id : Specifies the system or Kubernetes cluster identity. The default value is 1.
-
cdl node-type node_type : Indicates the Kubernetes node label to configure the node affinity. The default value is session. node_type must be a string of length 0-64 characters.
-
cdl enable-geo-replication boolean_value : This is an optional CLI. Specifies the geo replication status as enable or disable. The default value is false .
-
cdl remote-site remote_system_id : Specifies the endpoint’s 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_ip_address : Specifies 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 : Denotes the endpoint port 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_host remote_port : Indicates the Kafka server’s external ip and port of the remote site, which the remote-system-id identifies. You can configure multiple host and ports per Kafka instance at the remote site. Configure this command only when you have set the cdl enable-geo-replication to true.
-
endpoint replica num_replica : Indicates the number of replicas to be created. The default value is 1. num_replica must be in the range of 1 to 16.
-
endpoint external-ip ip_address : This is an optional CLI. Specifies 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 : Specifies the external Port 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 num_replica : Specifies the number of replicas to be created. The default value is 1. num_replica must be in the range of 1 to 16.
-
slot map num_map/shards : Specifies the number of partitions in a slot. The default value is 1. num_map/shards must be in the range of 1 to 1024.
-
slot write-factor write_factor : Specifies the number of copies to be written before a successful response. The default value is 1. write_factor must be in the range of 0 to 16. Make sure that the value is less than or equal to the number of replicas.
-
slot notification host host : Specifies the notification server hostname or IP address. The default value is datastore-notification-ep.
-
slot notification port port : Specifies the notification server port number. The default value is 8890.
-
slot notification limit tps : Specifies the notification limit per second. The default value is 2000.
-
index replica num_replica : Specifies the number of replicas to be created. The default value is 2. num_replica must be in the range of 1 to 16.
-
index map num_map/shards : Specifies the number of partitions in a Slot. The default value is 1. The accepted range is 1–1024. Avoid modifying this value after deploying the CDL.
-
index write-factor write_factor : Specifies the number of copies to be written before a successful response. The default value is 1. write_factor must be in the range of 0 to 16.