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