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