Add DBAAS_NODE_COUNT configuration parameter 56/7156/1
authorTimo Tietavainen <timo.tietavainen@nokia.com>
Tue, 30 Nov 2021 12:41:10 +0000 (14:41 +0200)
committerTimo Tietavainen <timo.tietavainen@nokia.com>
Tue, 30 Nov 2021 12:41:10 +0000 (14:41 +0200)
Parameter 'DBAAS_NODE_COUNT' defines how many DBAAS nodes belongs to one
DBAAS group. For the time being node count in HA deployment is 3 and in
standalone deployment 1.

Issue-Id: RIC-113

Signed-off-by: Timo Tietavainen <timo.tietavainen@nokia.com>
Change-Id: Ib99d74dba4d485dbe72bc937083edf3b684fe229

helm/dbaas/templates/appconfig.yaml

index a26e352..52508d4 100644 (file)
@@ -33,6 +33,9 @@ data:
 {{- if $.Values.dbaas.enableHighAvailability }}
   DBAAS_SERVICE_SENTINEL_PORT: {{ include "common.serviceport.dbaas.sentinel" . | quote }}
   DBAAS_MASTER_NAME: {{ $.Values.dbaas.redis.masterGroupName }}
+  DBAAS_NODE_COUNT: {{ $.Values.dbaas.haReplicas | quote }}
+{{- else }}
+  DBAAS_NODE_COUNT: {{ $.Values.dbaas.saReplicas | quote }}
 {{- end }}
   DBAAS_SERVICE_HOST: {{ include "common.servicename.dbaas.tcp" $ }}.{{ $platformNameSpace }}
   DBAAS_SERVICE_PORT: {{ include "common.serviceport.dbaas.redis" $ | quote }}