AAI Rolling upgrade using helm hooks
[oom.git] / kubernetes / aai / charts / aai-graphadmin / resources / config / janusgraph-cached.properties
1 #
2 # ============LICENSE_START=======================================================
3 # org.onap.aai
4 # ================================================================================
5 # Copyright © 2018 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 query.fast-property=true
21 query.smart-limit=false
22
23 {{ if .Values.global.config.cluster.cassandra.dynamic }}
24
25 storage.backend=cassandra
26 storage.hostname={{.Values.global.cassandra.serviceName}}
27
28 storage.cassandra.keyspace=aaigraph
29
30 storage.cassandra.read-consistency-level=LOCAL_QUORUM
31 storage.cassandra.write-consistency-level=LOCAL_QUORUM
32 storage.cassandra.replication-factor={{.Values.global.cassandra.replicas}}
33 storage.cassandra.replication-strategy-class=org.apache.cassandra.locator.SimpleStrategy
34
35 {{ else }}
36
37 {{ if .Values.global.config.storage }}
38
39 storage.backend={{ .Values.global.config.storage.backend }}
40
41 {{ if eq .Values.global.config.storage.backend "cassandra" }}
42
43 storage.hostname={{ .Values.global.config.storage.hostname }}
44 storage.cassandra.keyspace={{ .Values.global.config.storage.name }}
45
46 storage.cassandra.read-consistency-level={{ .Values.global.config.storage.cassandra.readConsistency }}
47 storage.cassandra.write-consistency-level={{ .Values.global.config.storage.cassandra.writeConsistency }}
48 storage.cassandra.replication-factor={{ .Values.global.config.storage.cassandra.replicationFactor | int }}
49 storage.cassandra.astyanax.cluster-name= {{ .Values.global.config.storage.clusterName }}
50 storage.cassandra.astyanax.local-datacenter= {{ .Values.global.config.storage.localDataCenter }}
51
52 storage.connection-timeout={{ .Values.global.config.storage.connectionTimeout | int }}
53 cache.tx-cache-size={{ .Values.global.config.storage.cacheSize | int }}
54 log.tx.key-consistent={{ .Values.global.config.storage.keyConsistent }}
55
56 {{ else if eq .Values.global.config.storage.backend "cql" }}
57
58 storage.hostname={{ .Values.global.config.storage.hostname }}
59 storage.cql.keyspace={{ .Values.global.config.storage.name }}
60
61 storage.cql.read-consistency-level={{ .Values.global.config.storage.cql.readConsistency }}
62 storage.cql.write-consistency-level={{ .Values.global.config.storage.cql.readConsistency }}
63 storage.cql.replication-factor={{ .Values.global.config.storage.cql.replicationFactor | int }}
64
65 storage.cql.only-use-local-consistency-for-system-operations={{ .Values.global.config.storage.cql.localConsistencyForSysOps }}
66 storage.cql.cluster-name={{ .Values.global.config.storage.clusterName }}
67 storage.cql.local-datacenter={{ .Values.global.config.storage.localDataCenter }}
68
69 storage.connection-timeout={{ .Values.global.config.storage.connectionTimeout | int }}
70 cache.tx-cache-size={{ .Values.global.config.storage.cacheSize | int }}
71 log.tx.key-consistent={{ .Values.global.config.storage.keyConsistent }}
72
73 {{ else if eq .Values.global.config.storage.backend "hbase" }}
74
75 storage.hostname={{ .Values.global.config.storage.hostname }}
76 storage.hbase.table={{ .Values.global.config.storage.name }}
77
78 storage.connection-timeout={{ .Values.global.config.storage.connectionTimeout | int }}
79 cache.tx-cache-size={{ .Values.global.config.storage.cacheSize | int }}
80 log.tx.key-consistent={{ .Values.global.config.storage.keyConsistent }}
81
82 {{ end }}
83
84 {{ end }}
85
86 {{ end }}
87
88 storage.lock.wait-time=300
89 #caching on
90 cache.db-cache = true
91 cache.db-cache-clean-wait = 20
92 cache.db-cache-time = 180000
93 cache.db-cache-size = 0.3
94
95 #load graphson file on startup
96 load.snapshot.file=false