Implement sentinel based DB capacity scaling 62/6062/1 dawn v0.7.0
authorTimo Tietavainen <timo.tietavainen@nokia.com>
Tue, 11 May 2021 13:38:33 +0000 (16:38 +0300)
committerTimo Tietavainen <timo.tietavainen@nokia.com>
Tue, 11 May 2021 13:42:01 +0000 (16:42 +0300)
commit4123ade6080f3f5e3f3bf44e30faeacc531f32d0
tree9414b85d0eedb14063d2a315a665e87522f12d43
parent725e2204f7256de05686d380b4e30a72e9dea8b4
Implement sentinel based DB capacity scaling

For time being SDL has supported standalone DBAAS DB and DBAAS HA DB deployment
with Redis sentinel. With this commit extent SDL functionality to support Redis
sentinel based DB cluster where we have multiple DBAAS Redis sentinel groups
and these groups can be used to spread out SDL DB write and read operations to
different DB instances.
Implement cluster DBAAS DB service addresses reading from environment variable
'DBAAS_CLUSTER_ADDR_LIST'.
Implement crc32 hash value calculation from namespace string and selection of
a DB instance from DB cluster based on calculated hash.

Issue-ID: RIC-699

Signed-off-by: Timo Tietavainen <timo.tietavainen@nokia.com>
Change-Id: I8999c3c03d2d80d32a57d8ec051632b975bf9dc2
docs/release-notes.rst
internal/sdlgoredis/sdlgoredis.go
internal/sdlgoredis/sdlgoredis_test.go
sdl.go
sdl_private_fn_test.go
syncstorage.go