From: Timo Tietavainen Date: Fri, 27 May 2022 17:38:13 +0000 (+0300) Subject: Fix DBAAS write error X-Git-Url: https://gerrit.o-ran-sc.org/r/gitweb?a=commitdiff_plain;ds=inline;h=0ea0c043695d5fd3d9453fcb74c2de12d3603123;p=ric-plt%2Fric-dep.git Fix DBAAS write error In Redis 6 backup of DB key-values to RDB file was enabled by default. In Redis version 5 RDB file backup was disabled. In RIC we do not have discs attached to DBAAS pods, hence we shouldn't never try to write RDB backup file as an background operation in Redis server. So, as a fix disable 'save' and 'append-only-file' features in Redis by adding below configurations to redis.conf file: * save "" * appendonly "no" Issue-Id: RIC-698 Signed-off-by: Timo Tietavainen Change-Id: I258226ef00f10c00cccd471fd3e088779443fadb --- diff --git a/helm/dbaas/values.yaml b/helm/dbaas/values.yaml index 31e6369..4267ebe 100644 --- a/helm/dbaas/values.yaml +++ b/helm/dbaas/values.yaml @@ -29,11 +29,17 @@ dbaas: masterGroupName: dbaasmaster sa_config: ## For /data/conf/redis.conf + # For now DBAAS has no discs, that's why disable AOF and RDB file snapshot saving + appendonly: "no" + save: "" protected-mode: "no" loadmodule: "/usr/local/libexec/redismodule/libredismodule.so" bind: 0.0.0.0 ha_config: ## For /data/conf/redis.conf + # For now DBAAS has no discs, that's why disable AOF and RDB file snapshot saving + appendonly: "no" + save: "" min-slaves-to-write: 1 min-slaves-max-lag: 5 maxmemory: "0"