Multiple DBAAS Redis Sentinel groups 28/6128/4
authorPetri Ovaska <petri.ovaska@nokia.com>
Thu, 15 Apr 2021 08:08:13 +0000 (11:08 +0300)
committerPetri Ovaska <petri.ovaska@nokia.com>
Wed, 26 May 2021 14:36:15 +0000 (17:36 +0300)
commitece67088ea6c4f67b9d0db74477a9d5c614d7763
treea3ccaf54c2af06f5ea3958dccf2a6168bb7f344d
parentaad0a0b5f51c2abd855aba0a9cb8e99ac5023600
Multiple DBAAS Redis Sentinel groups

Added support to have one or more Redis Sentinel DB groups. The DB groups can
be used to spread out SDL DB operations to different DB instances. The new
DBAAS_CLUSTER_ADDR_LIST environment variable is used for Sentinel DB service
addresses configuration. The selection of DB instance is done based on the
calculation of crc32 value from the namespace string and return modulo hash
value of number of addresses in the list.

Issue-ID: RIC-699

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