aboutsummaryrefslogtreecommitdiffstats
path: root/charts/aai-champ/resources/config/dynamic/conf/champ-beans.xml
diff options
context:
space:
mode:
authorMahendra Raghuwanshi <mahendra.raghuwanshi@amdocs.com>2019-03-15 12:02:42 +0000
committermahendrr <mahendra.raghuwanshi@amdocs.com>2019-04-17 03:59:20 +0000
commitbd10dfccb96a009d8a34339b570cc44cf3e4149e (patch)
tree011c33995db0bcf7316b833fad6eb9df26a1cb50 /charts/aai-champ/resources/config/dynamic/conf/champ-beans.xml
parent715a2a894e076b1529bdd1740c7ffaf46f62e219 (diff)
Upgrade AAI to use common shared Cassandra
Change-Id: I0186b09697f32115595383c4e409e608e2cf767f Issue-ID: OOM-1652 Signed-off-by: Mahendra Raghuwanshi <mahendra.raghuwanshi@amdocs.com>
Diffstat (limited to 'charts/aai-champ/resources/config/dynamic/conf/champ-beans.xml')
-rw-r--r--charts/aai-champ/resources/config/dynamic/conf/champ-beans.xml7
1 files changed, 2 insertions, 5 deletions
diff --git a/charts/aai-champ/resources/config/dynamic/conf/champ-beans.xml b/charts/aai-champ/resources/config/dynamic/conf/champ-beans.xml
index 38fd64c..3977a68 100644
--- a/charts/aai-champ/resources/config/dynamic/conf/champ-beans.xml
+++ b/charts/aai-champ/resources/config/dynamic/conf/champ-beans.xml
@@ -47,12 +47,9 @@ xsi:schemaLocation="
<entry key="storage.backend" value="cassandra"/>
<entry key="storage.cassandra.read-consistency-level" value="LOCAL_QUORUM"/>
<entry key="storage.cassandra.write-consistency-level" value="LOCAL_QUORUM"/>
- <entry key="storage.cassandra.replication-factor" value="3"/>
+ <entry key="storage.cassandra.replication-factor" value="{{ .Values.global.cassandra.replicas }}"/>
<entry key="storage.cassandra.replication-strategy-class" value="org.apache.cassandra.locator.SimpleStrategy"/>
-
- {{- $seed_size := default 1 .Values.global.cassandra.replicas | int -}}
- {{- $global := . }}
- <entry key="storage.hostname" value="{{- range $i, $e := until $seed_size }}{{ $global.Release.Name }}-{{$global.Values.global.cassandra.serviceName}}-{{ $i }}.{{$global.Values.global.cassandra.serviceName}},{{- end }}"/>
+ <entry key="storage.hostname" value="{{ .Values.global.cassandra.serviceName }}"/>
</util:map>
<!-- Janus Implementation -->