Enable redis/sentinel port and sentinel master name configuration 46/7946/2 1.6.0
authorPetri Ovaska <petri.ovaska@nokia.com>
Thu, 10 Mar 2022 07:59:23 +0000 (09:59 +0200)
committerPetri Ovaska <petri.ovaska@nokia.com>
Mon, 14 Mar 2022 12:02:42 +0000 (14:02 +0200)
commit5bdca62d89d430f607310370fe1391bd1d1bd21a
treeb73facf9a663330b77a75afdccdb74786a32e95b
parentb4e17e19a35bf714f5ae6c1c041e951ed9de10d4
Enable redis/sentinel port and sentinel master name configuration

This change enables configuration of DBAAS_MASTER_NAME,
DBAAS_SERVICE_PORT and DBAAS_SERVICE_SENTINEL_PORT value
configuration for different clusters. Environment variable values
are comma separated lists.

For example if the DBAAS_CLUSTER_ADDR_LIST environment variable has
three cluster addresses then it ispossible to configure each
cluster different values like:

 DBAAS_MASTER_NAME='dbaasmaster-0,dbaasmaster-1,dbaasmaster-2'
 DBAAS_SERVICE_PORT='6379,6380,6381'
 DBAAS_SERVICE_SENTINEL_PORT='26379,26380,26381'

Notice: RIC platform deployments above list type of environment
variables will have a single value (only one Database (DB) service
is supported).

SDL version 1.6.0

Issue-Id: RIC-698

Change-Id: Ib07243da0fd973623dfeb09b82c000d19be11a7d
Signed-off-by: Petri Ovaska <petri.ovaska@nokia.com>
13 files changed:
configure.ac
debian/changelog.in
docs/release-notes.rst
docs/user-guide.rst
include/private/databaseconfiguration.hpp
include/private/databaseconfigurationimpl.hpp
include/private/tst/databaseconfigurationmock.hpp
rpm/sdl.spec.in
src/configurationreader.cpp
src/databaseconfigurationimpl.cpp
src/redis/asyncdatabasediscovery.cpp
tst/configurationreader_test.cpp
tst/databaseconfigurationimpl_test.cpp