X-Git-Url: https://gerrit.o-ran-sc.org/r/gitweb?a=blobdiff_plain;f=docs%2Fuser-guide.rst;fp=docs%2Fuser-guide.rst;h=a1a2246ede398c9fade42a8a9fdff0af49db5ec1;hb=5bdca62d89d430f607310370fe1391bd1d1bd21a;hp=57e8bc084c3df4abfb8e1672d4e6086e560048d8;hpb=b4e17e19a35bf714f5ae6c1c041e951ed9de10d4;p=ric-plt%2Fsdl.git diff --git a/docs/user-guide.rst b/docs/user-guide.rst index 57e8bc0..a1a2246 100644 --- a/docs/user-guide.rst +++ b/docs/user-guide.rst @@ -1,6 +1,6 @@ .. .. Copyright (c) 2019 AT&T Intellectual Property. -.. Copyright (c) 2019 Nokia. +.. Copyright (c) 2019-2022 Nokia. .. .. Licensed under the Creative Commons Attribution 4.0 International .. Public License (the "License"); you may not use this file except @@ -239,12 +239,25 @@ configure database backend: * DBAAS_SERVICE_SENTINEL_PORT * DBAAS_MASTER_NAME * DBAAS_NODE_COUNT +* DBAAS_CLUSTER_ADDR_LIST After DBaaS service is installed, environment variables are exposed to application containers. SDL library will automatically use these environment variables. If DBaaS service is not used, above environment variables needs to be set manually so that SDL backend can connect to correct database. +When multiple Database (DB) service is used Nokia SEP deployments can have +comma separated list of DB ports, sentinel master group names and DB service +addresses: + + DBAAS_CLUSTER_ADDR_LIST= + DBAAS_MASTER_NAME= + DBAAS_SERVICE_PORT= + DBAAS_SERVICE_SENTINEL_PORT= + +In RIC platform deployments above list type of environment variables will have +a single value, because only one Database (DB) service is supported in RIC. + **Examples** An example how environment variables can be set in bash shell, when standalone @@ -265,6 +278,16 @@ HA deployment is used:: export DBAAS_SERVICE_SENTINEL_PORT=23550 export DBAAS_NODE_COUNT=3 +An example how environment variables can be set in bash shell, when Redis +HA deployment with two DB service is used:: + + export DBAAS_CLUSTER_ADDR_LIST=dbaas-0,dbaas-1 + export DBAAS_MASTER_NAME=my-dbaasmaster-0,my-dbaasmaster-1 + export DBAAS_SERVICE_HOST=dbaas-0 + export DBAAS_SERVICE_PORT=6379,6380 + export DBAAS_SERVICE_SENTINEL_PORT=26379,26380 + export DBAAS_NODE_COUNT=3 + .. raw:: pdf PageBreak