blob: 2c22d14a4113157157ea907353dd8d627af2e7b2 [file] [log] [blame]
vagrant1a3a3552018-03-10 23:56:32 +00001#
2# ============LICENSE_START=======================================================
3# org.onap.aai
4# ================================================================================
5# Copyright © 2017 AT&T Intellectual Property. All rights reserved.
6# ================================================================================
7# Licensed under the Apache License, Version 2.0 (the "License");
8# you may not use this file except in compliance with the License.
9# You may obtain a copy of the License at
10#
11# http://www.apache.org/licenses/LICENSE-2.0
12#
13# Unless required by applicable law or agreed to in writing, software
14# distributed under the License is distributed on an "AS IS" BASIS,
15# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
16# See the License for the specific language governing permissions and
17# limitations under the License.
18# ============LICENSE_END=========================================================
19#
20# ECOMP is a trademark and service mark of AT&T Intellectual Property.
21#
22
23query.fast-property=true
24query.smart-limit=false
25
Kajur, Harish (vk250x)00107b52018-09-06 14:44:40 -040026{{ if .Values.global.config.cluster.cassandra.dynamic }}
27
vagrant1a3a3552018-03-10 23:56:32 +000028{{- $seed_size := default 1 .Values.global.cassandra.replicas | int -}}
Kajur, Harish (vk250x)c0431292018-04-25 16:44:35 -040029{{- $global := . }}
vagrant1a3a3552018-03-10 23:56:32 +000030
vagrant1a3a3552018-03-10 23:56:32 +000031storage.backend=cassandra
BorislavG26b650f2018-05-13 17:11:01 +000032storage.hostname={{- range $i, $e := until $seed_size }}{{ $global.Release.Name }}-{{$global.Values.global.cassandra.serviceName}}-{{ $i }}.{{$global.Values.global.cassandra.serviceName}},{{- end }}
vagrant1a3a3552018-03-10 23:56:32 +000033
34storage.cassandra.keyspace=aaigraph
35
36storage.cassandra.read-consistency-level=LOCAL_QUORUM
37storage.cassandra.write-consistency-level=LOCAL_QUORUM
38storage.cassandra.replication-factor=3
39storage.cassandra.replication-strategy-class=org.apache.cassandra.locator.SimpleStrategy
vagrant1a3a3552018-03-10 23:56:32 +000040
Kajur, Harish (vk250x)00107b52018-09-06 14:44:40 -040041{{ else }}
42
43{{ if .Values.global.config.storage }}
44
45storage.backend={{ .Values.global.config.storage.backend }}
46
47{{ if eq .Values.global.config.storage.backend "cassandra" }}
48
49storage.hostname={{ .Values.global.config.storage.hostname }}
50storage.cassandra.keyspace={{ .Values.global.config.storage.name }}
51
52storage.cassandra.read-consistency-level={{ .Values.global.config.storage.cassandra.readConsistency }}
53storage.cassandra.write-consistency-level={{ .Values.global.config.storage.cassandra.writeConsistency }}
54storage.cassandra.replication-factor={{ .Values.global.config.storage.cassandra.replicationFactor | int }}
55storage.cassandra.astyanax.cluster-name= {{ .Values.global.config.storage.clusterName }}
56storage.cassandra.astyanax.local-datacenter= {{ .Values.global.config.storage.localDataCenter }}
57
58storage.connection-timeout={{ .Values.global.config.storage.connectionTimeout | int }}
59cache.tx-cache-size={{ .Values.global.config.storage.cacheSize | int }}
60log.tx.key-consistent={{ .Values.global.config.storage.keyConsistent }}
61
62{{ else if eq .Values.global.config.storage.backend "cql" }}
63
64storage.hostname={{ .Values.global.config.storage.hostname }}
65storage.cql.keyspace={{ .Values.global.config.storage.name }}
66
67storage.cql.read-consistency-level={{ .Values.global.config.storage.cql.readConsistency }}
68storage.cql.write-consistency-level={{ .Values.global.config.storage.cql.readConsistency }}
69storage.cql.replication-factor={{ .Values.global.config.storage.cql.replicationFactor | int }}
70
71storage.cql.only-use-local-consistency-for-system-operations={{ .Values.global.config.storage.cql.localConsistencyForSysOps }}
72storage.cql.cluster-name={{ .Values.global.config.storage.clusterName }}
73storage.cql.local-datacenter={{ .Values.global.config.storage.localDataCenter }}
74
75storage.connection-timeout={{ .Values.global.config.storage.connectionTimeout | int }}
76cache.tx-cache-size={{ .Values.global.config.storage.cacheSize | int }}
77log.tx.key-consistent={{ .Values.global.config.storage.keyConsistent }}
78
79{{ else if eq .Values.global.config.storage.backend "hbase" }}
80
81storage.hostname={{ .Values.global.config.storage.hostname }}
82storage.hbase.table={{ .Values.global.config.storage.name }}
83
84storage.connection-timeout={{ .Values.global.config.storage.connectionTimeout | int }}
85cache.tx-cache-size={{ .Values.global.config.storage.cacheSize | int }}
86log.tx.key-consistent={{ .Values.global.config.storage.keyConsistent }}
87
88{{ end }}
89
90{{ end }}
91
92{{ end }}
93
vagrant1a3a3552018-03-10 23:56:32 +000094storage.lock.wait-time=300
95#caching on
96cache.db-cache = true
97cache.db-cache-clean-wait = 20
98cache.db-cache-time = 180000
99cache.db-cache-size = 0.3
100
101#load graphson file on startup
102load.snapshot.file=false