blob: 61550e7a57824a9e73af47fa94fb157396a11e0d [file] [log] [blame]
Sylvain Desbureaux47eb4d22020-12-10 12:15:27 +01001{{/*
Sylvain Desbureaux70070412020-11-09 21:58:48 +01002#
3# ============LICENSE_START=======================================================
4# Copyright © 2018 AT&T Intellectual Property. All rights reserved.
5# ================================================================================
6# Licensed under the Apache License, Version 2.0 (the "License");
7# you may not use this file except in compliance with the License.
8# You may obtain a copy of the License at
9#
10# http://www.apache.org/licenses/LICENSE-2.0
11#
12# Unless required by applicable law or agreed to in writing, software
13# distributed under the License is distributed on an "AS IS" BASIS,
14# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15# See the License for the specific language governing permissions and
16# limitations under the License.
17# ============LICENSE_END=========================================================
Sylvain Desbureaux47eb4d22020-12-10 12:15:27 +010018*/}}
Sylvain Desbureaux70070412020-11-09 21:58:48 +010019
20query.fast-property=true
21query.smart-limit=false
22
23{{ if .Values.global.config.cluster.cassandra.dynamic }}
24
25storage.backend=cql
26storage.hostname={{.Values.global.cassandra.serviceName}}
27storage.cql.keyspace=aaigraph
28storage.username={{.Values.global.cassandra.username}}
29storage.password={{.Values.global.cassandra.password}}
30
31storage.cql.read-consistency-level=LOCAL_QUORUM
32storage.cql.write-consistency-level=LOCAL_QUORUM
33storage.cql.replication-factor={{.Values.global.cassandra.replicas}}
34storage.cql.only-use-local-consistency-for-system-operations=true
35
36{{ else }}
37
38{{ if .Values.global.config.storage }}
39
40storage.backend={{ .Values.global.config.storage.backend }}
41
42{{ if eq .Values.global.config.storage.backend "cassandra" }}
43
44storage.hostname={{ .Values.global.config.storage.hostname }}
45storage.cassandra.keyspace={{ .Values.global.config.storage.name }}
46
47storage.cassandra.read-consistency-level={{ .Values.global.config.storage.cassandra.readConsistency }}
48storage.cassandra.write-consistency-level={{ .Values.global.config.storage.cassandra.writeConsistency }}
49storage.cassandra.replication-factor={{ .Values.global.config.storage.cassandra.replicationFactor | int }}
50storage.cassandra.astyanax.cluster-name= {{ .Values.global.config.storage.clusterName }}
51storage.cassandra.astyanax.local-datacenter= {{ .Values.global.config.storage.localDataCenter }}
52
53storage.connection-timeout={{ .Values.global.config.storage.connectionTimeout | int }}
54cache.tx-cache-size={{ .Values.global.config.storage.cacheSize | int }}
55log.tx.key-consistent={{ .Values.global.config.storage.keyConsistent }}
56
57{{ else if eq .Values.global.config.storage.backend "cql" }}
58
59storage.hostname={{ .Values.global.config.storage.hostname }}
60storage.cql.keyspace={{ .Values.global.config.storage.name }}
61
62storage.cql.read-consistency-level={{ .Values.global.config.storage.cql.readConsistency }}
63storage.cql.write-consistency-level={{ .Values.global.config.storage.cql.readConsistency }}
64storage.cql.replication-factor={{ .Values.global.config.storage.cql.replicationFactor | int }}
65
66storage.cql.only-use-local-consistency-for-system-operations={{ .Values.global.config.storage.cql.localConsistencyForSysOps }}
67storage.cql.cluster-name={{ .Values.global.config.storage.clusterName }}
68storage.cql.local-datacenter={{ .Values.global.config.storage.localDataCenter }}
69
70storage.connection-timeout={{ .Values.global.config.storage.connectionTimeout | int }}
71cache.tx-cache-size={{ .Values.global.config.storage.cacheSize | int }}
72log.tx.key-consistent={{ .Values.global.config.storage.keyConsistent }}
73
74{{ else if eq .Values.global.config.storage.backend "hbase" }}
75
76storage.hostname={{ .Values.global.config.storage.hostname }}
77storage.hbase.table={{ .Values.global.config.storage.name }}
78
79storage.connection-timeout={{ .Values.global.config.storage.connectionTimeout | int }}
80cache.tx-cache-size={{ .Values.global.config.storage.cacheSize | int }}
81log.tx.key-consistent={{ .Values.global.config.storage.keyConsistent }}
82
83{{ end }}
84
85{{ end }}
86
87{{ end }}
88
89storage.lock.wait-time=300
90# Setting db-cache to false ensure the fastest propagation of changes across servers
91cache.db-cache = false
92#load graphson file on startup
93load.snapshot.file=false