blob: b6fdd4c58f410629263440957073476c49e24779 [file] [log] [blame]
Sylvain Desbureaux47eb4d22020-12-10 12:15:27 +01001{{/*
Sylvain Desbureaux70070412020-11-09 21:58:48 +01002#
3# ============LICENSE_START=======================================================
4# org.onap.aai
5# ================================================================================
6# Copyright © 2017 AT&T Intellectual Property. All rights reserved.
7# ================================================================================
8# Licensed under the Apache License, Version 2.0 (the "License");
9# you may not use this file except in compliance with the License.
10# You may obtain a copy of the License at
11#
12# http://www.apache.org/licenses/LICENSE-2.0
13#
14# Unless required by applicable law or agreed to in writing, software
15# distributed under the License is distributed on an "AS IS" BASIS,
16# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
17# See the License for the specific language governing permissions and
18# limitations under the License.
19# ============LICENSE_END=========================================================
20#
21# ECOMP is a trademark and service mark of AT&T Intellectual Property.
22#
Sylvain Desbureaux47eb4d22020-12-10 12:15:27 +010023*/}}
Sylvain Desbureaux70070412020-11-09 21:58:48 +010024
25query.fast-property=true
26query.smart-limit=false
27
28{{ if .Values.global.config.cluster.cassandra.dynamic }}
29
30storage.backend=cql
31storage.hostname={{.Values.global.cassandra.serviceName}}
32storage.cql.keyspace=aaigraph
33storage.username={{.Values.global.cassandra.username}}
34storage.password={{.Values.global.cassandra.password}}
35
36storage.cql.read-consistency-level=LOCAL_QUORUM
37storage.cql.write-consistency-level=LOCAL_QUORUM
38storage.cql.replication-factor={{.Values.global.cassandra.replicas}}
39storage.cql.only-use-local-consistency-for-system-operations=true
40
41{{ 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
94storage.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