X-Git-Url: https://gerrit.o-ran-sc.org/r/gitweb?a=blobdiff_plain;f=ricsdl-package%2Fexamples%2Fsync.py;fp=ricsdl-package%2Fexamples%2Fsync.py;h=618586d1846430bba8d1b96cecd3a3cc2138b0b5;hb=c6c9af2f19370e67f1ae8568c23cadecbec29ccc;hp=1fa5742bd648b923b1a0b0f32ce1c51bb68200f5;hpb=d5886f34edc38445066f4fcc831003305233081b;p=ric-plt%2Fsdlpy.git diff --git a/ricsdl-package/examples/sync.py b/ricsdl-package/examples/sync.py index 1fa5742..618586d 100755 --- a/ricsdl-package/examples/sync.py +++ b/ricsdl-package/examples/sync.py @@ -39,11 +39,19 @@ Execution of these examples requires: running Redis. * Following environment variables are needed to set to the pod/container where the application utilizing SDL is going to be run. - DBAAS_SERVICE_HOST = [redis server address] - DBAAS_SERVICE_PORT= [redis server port] - DBAAS_MASTER_NAME = [master Redis sentinel name]. Needed to set only if sentinel is in use. - DBAAS_SERVICE_SENTINEL_PORT = [Redis sentinel port number]. Needed to set only if sentinel - is in use. + DBAAS_SERVICE_HOST = [DB service address] + DBAAS_SERVICE_PORT= [DB service port] + DBAAS_MASTER_NAME = [DB name]. Needed to set only if Redis sentinel is used to provide high + availability for Redis DB solution. + DBAAS_SERVICE_SENTINEL_PORT = [Redis sentinel port number]. Needed to set only if Redis + sentinel is in use. + DBASS_CLUSTER_ADDR_LIST = [list of DB service addresses]. Is set only if more than one + Redis sentinel groups are in use. + In official RIC deployments four first environment variables are defined in Helm configMaps + of the DBaaS and these configurations can be loaded automatically as environment variables + into application pods via `envFrom dbaas-appconfig` statement in an application Helm Charts. + The last environment variable is not for time being in use in official RIC deployments, only + in Nokia SEP deployments. """ from ricsdl.syncstorage import SyncStorage from ricsdl.exceptions import RejectedByBackend, NotConnected, BackendError