[SO] 16.0.4 release
[oom.git] / kubernetes / aai / components / aai-graphadmin / resources / config / janusgraph-realtime.properties
1 {{/*
2 #
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=========================================================
18 */}}
19
20 query.fast-property=true
21 query.smart-limit=false
22
23 {{- if .Values.global.config.cluster.cassandra.dynamic }}
24
25 storage.backend=cql
26 storage.hostname={{.Values.global.cassandra.serviceName}}
27 storage.username={{.Values.global.cassandra.username}}
28 storage.password={{.Values.global.cassandra.password}}
29
30 storage.cql.keyspace=aaigraph
31 storage.cql.local-datacenter={{ .Values.global.cassandra.localDataCenter }}
32 storage.cql.read-consistency-level=LOCAL_QUORUM
33 storage.cql.write-consistency-level=LOCAL_QUORUM
34 storage.cql.replication-factor={{.Values.global.cassandra.replicas}}
35 storage.cql.only-use-local-consistency-for-system-operations=true
36
37 {{- if .Values.global.cassandra.partitionerName }}
38 storage.cql.partitioner-name={{ .Values.global.cassandra.partitionerName }}
39 {{- end }}
40
41 {{- if .Values.config.janusgraph.cassandraDriver }}
42 storage.cql.internal.string-configuration = datastax-java-driver { {{ .Values.config.janusgraph.cassandraDriver.configuration }} }
43 {{- end }}
44
45 {{- else -}}
46
47 {{- if .Values.global.config.storage }}
48
49 storage.backend={{ .Values.global.config.storage.backend }}
50
51 {{- if eq .Values.global.config.storage.backend "cql" }}
52
53 storage.hostname={{ .Values.global.config.storage.hostname }}
54 storage.cql.keyspace={{ .Values.global.config.storage.name }}
55 storage.cql.local-datacenter={{ .Values.global.cassandra.localDataCenter }}
56
57 storage.cql.read-consistency-level={{ .Values.global.config.storage.cql.readConsistency }}
58 storage.cql.write-consistency-level={{ .Values.global.config.storage.cql.readConsistency }}
59 storage.cql.replication-factor={{ .Values.global.config.storage.cql.replicationFactor | int }}
60
61 storage.cql.only-use-local-consistency-for-system-operations={{ .Values.global.config.storage.cql.localConsistencyForSysOps }}
62 storage.cql.cluster-name={{ .Values.global.config.storage.clusterName }}
63 storage.cql.local-datacenter={{ .Values.global.cassandra.localDataCenter }}
64
65 storage.connection-timeout={{ .Values.global.config.storage.connectionTimeout | int }}
66 cache.tx-cache-size={{ .Values.global.config.storage.cacheSize | int }}
67 log.tx.key-consistent={{ .Values.global.config.storage.keyConsistent }}
68
69 {{- else if eq .Values.global.config.storage.backend "hbase" }}
70
71 storage.hostname={{ .Values.global.config.storage.hostname }}
72 storage.hbase.table={{ .Values.global.config.storage.name }}
73
74 storage.connection-timeout={{ .Values.global.config.storage.connectionTimeout | int }}
75 cache.tx-cache-size={{ .Values.global.config.storage.cacheSize | int }}
76 log.tx.key-consistent={{ .Values.global.config.storage.keyConsistent }}
77
78 {{- end }}
79 {{- end }}
80 {{- end }}
81
82 storage.lock.wait-time=300
83 # Setting db-cache to false ensure the fastest propagation of changes across servers
84 cache.db-cache=false
85 #load graphson file on startup
86 load.snapshot.file=false
87
88 {{- if .Values.config.janusgraph.allowUpgrade }}
89 graph.allow-upgrade=true
90 {{- end }}