Merge "Update Keystore cert"
[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 {{- $seed_size := default 1 .Values.global.cassandra.replicas | int -}}
26 {{- $global := . }}
27
28 storage.backend=cassandra
29 storage.hostname={{- range $i, $e := until $seed_size }}{{ $global.Release.Name }}-{{$global.Values.global.cassandra.serviceName}}-{{ $i }}.{{$global.Values.global.cassandra.serviceName}},{{- end }}
30
31 storage.cassandra.keyspace=aaigraph
32
33 storage.cassandra.read-consistency-level=LOCAL_QUORUM
34 storage.cassandra.write-consistency-level=LOCAL_QUORUM
35 storage.cassandra.replication-factor=3
36 storage.cassandra.replication-strategy-class=org.apache.cassandra.locator.SimpleStrategy
37
38 {{ else }}
39
40 {{ if .Values.global.config.storage }}
41
42 storage.backend={{ .Values.global.config.storage.backend }}
43
44 {{ if eq .Values.global.config.storage.backend "cassandra" }}
45
46 storage.hostname={{ .Values.global.config.storage.hostname }}
47 storage.cassandra.keyspace={{ .Values.global.config.storage.name }}
48
49 storage.cassandra.read-consistency-level={{ .Values.global.config.storage.cassandra.readConsistency }}
50 storage.cassandra.write-consistency-level={{ .Values.global.config.storage.cassandra.writeConsistency }}
51 storage.cassandra.replication-factor={{ .Values.global.config.storage.cassandra.replicationFactor | int }}
52 storage.cassandra.astyanax.cluster-name= {{ .Values.global.config.storage.clusterName }}
53 storage.cassandra.astyanax.local-datacenter= {{ .Values.global.config.storage.localDataCenter }}
54
55 storage.connection-timeout={{ .Values.global.config.storage.connectionTimeout | int }}
56 cache.tx-cache-size={{ .Values.global.config.storage.cacheSize | int }}
57 log.tx.key-consistent={{ .Values.global.config.storage.keyConsistent }}
58
59 {{ else if eq .Values.global.config.storage.backend "cql" }}
60
61 storage.hostname={{ .Values.global.config.storage.hostname }}
62 storage.cql.keyspace={{ .Values.global.config.storage.name }}
63
64 storage.cql.read-consistency-level={{ .Values.global.config.storage.cql.readConsistency }}
65 storage.cql.write-consistency-level={{ .Values.global.config.storage.cql.readConsistency }}
66 storage.cql.replication-factor={{ .Values.global.config.storage.cql.replicationFactor | int }}
67
68 storage.cql.only-use-local-consistency-for-system-operations={{ .Values.global.config.storage.cql.localConsistencyForSysOps }}
69 storage.cql.cluster-name={{ .Values.global.config.storage.clusterName }}
70 storage.cql.local-datacenter={{ .Values.global.config.storage.localDataCenter }}
71
72 storage.connection-timeout={{ .Values.global.config.storage.connectionTimeout | int }}
73 cache.tx-cache-size={{ .Values.global.config.storage.cacheSize | int }}
74 log.tx.key-consistent={{ .Values.global.config.storage.keyConsistent }}
75
76 {{ else if eq .Values.global.config.storage.backend "hbase" }}
77
78 storage.hostname={{ .Values.global.config.storage.hostname }}
79 storage.hbase.table={{ .Values.global.config.storage.name }}
80
81 storage.connection-timeout={{ .Values.global.config.storage.connectionTimeout | int }}
82 cache.tx-cache-size={{ .Values.global.config.storage.cacheSize | int }}
83 log.tx.key-consistent={{ .Values.global.config.storage.keyConsistent }}
84
85 {{ end }}
86
87 {{ end }}
88
89 {{ end }}
90
91 storage.lock.wait-time=300
92 #caching on
93 cache.db-cache = true
94 cache.db-cache-clean-wait = 20
95 cache.db-cache-time = 180000
96 cache.db-cache-size = 0.3
97
98 #load graphson file on startup
99 load.snapshot.file=false