blob: 1db2774d52e23ea2b2cd3c8e424f8327ca7cb609 [file] [log] [blame]
Sylvain Desbureaux70070412020-11-09 21:58:48 +01001#
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
26{{ if .Values.global.config.cluster.cassandra.dynamic }}
27
28storage.backend=cql
29storage.hostname={{.Values.global.cassandra.serviceName}}
30storage.cql.keyspace=aaigraph
31storage.username={{.Values.global.cassandra.username}}
32storage.password={{.Values.global.cassandra.password}}
33
34storage.cql.read-consistency-level=LOCAL_QUORUM
35storage.cql.write-consistency-level=LOCAL_QUORUM
36storage.cql.replication-factor={{.Values.global.cassandra.replicas}}
37storage.cql.only-use-local-consistency-for-system-operations=true
38
39{{ else }}
40
41{{ if .Values.global.config.storage }}
42
43storage.backend={{ .Values.global.config.storage.backend }}
44
45{{ if eq .Values.global.config.storage.backend "cassandra" }}
46
47storage.hostname={{ .Values.global.config.storage.hostname }}
48storage.cassandra.keyspace={{ .Values.global.config.storage.name }}
49
50storage.cassandra.read-consistency-level={{ .Values.global.config.storage.cassandra.readConsistency }}
51storage.cassandra.write-consistency-level={{ .Values.global.config.storage.cassandra.writeConsistency }}
52storage.cassandra.replication-factor={{ .Values.global.config.storage.cassandra.replicationFactor | int }}
53storage.cassandra.astyanax.cluster-name= {{ .Values.global.config.storage.clusterName }}
54storage.cassandra.astyanax.local-datacenter= {{ .Values.global.config.storage.localDataCenter }}
55
56storage.connection-timeout={{ .Values.global.config.storage.connectionTimeout | int }}
57cache.tx-cache-size={{ .Values.global.config.storage.cacheSize | int }}
58log.tx.key-consistent={{ .Values.global.config.storage.keyConsistent }}
59
60{{ else if eq .Values.global.config.storage.backend "cql" }}
61
62storage.hostname={{ .Values.global.config.storage.hostname }}
63storage.cql.keyspace={{ .Values.global.config.storage.name }}
64
65storage.cql.read-consistency-level={{ .Values.global.config.storage.cql.readConsistency }}
66storage.cql.write-consistency-level={{ .Values.global.config.storage.cql.readConsistency }}
67storage.cql.replication-factor={{ .Values.global.config.storage.cql.replicationFactor | int }}
68
69storage.cql.only-use-local-consistency-for-system-operations={{ .Values.global.config.storage.cql.localConsistencyForSysOps }}
70storage.cql.cluster-name={{ .Values.global.config.storage.clusterName }}
71storage.cql.local-datacenter={{ .Values.global.config.storage.localDataCenter }}
72
73storage.connection-timeout={{ .Values.global.config.storage.connectionTimeout | int }}
74cache.tx-cache-size={{ .Values.global.config.storage.cacheSize | int }}
75log.tx.key-consistent={{ .Values.global.config.storage.keyConsistent }}
76
77{{ else if eq .Values.global.config.storage.backend "hbase" }}
78
79storage.hostname={{ .Values.global.config.storage.hostname }}
80storage.hbase.table={{ .Values.global.config.storage.name }}
81
82storage.connection-timeout={{ .Values.global.config.storage.connectionTimeout | int }}
83cache.tx-cache-size={{ .Values.global.config.storage.cacheSize | int }}
84log.tx.key-consistent={{ .Values.global.config.storage.keyConsistent }}
85
86{{ end }}
87
88{{ end }}
89
90{{ end }}
91
92storage.lock.wait-time=300
93#caching on
94cache.db-cache = true
95cache.db-cache-clean-wait = 20
96cache.db-cache-time = 180000
97cache.db-cache-size = 0.3
98
99#load graphson file on startup
100load.snapshot.file=false