Merge "[AAI] Add model-loader tracing config"
[oom.git] / kubernetes / aai / components / aai-graphadmin / resources / config / migration / janusgraph-migration-real.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 eq .Values.global.jobs.migration.remoteCassandra.enabled false }}
24
25 storage.backend=cql
26 storage.hostname={{ .Values.global.cassandra.existingInstServiceName | default .Values.global.cassandra.serviceName }}
27 storage.cql.keyspace=aaigraph
28 storage.username={{.Values.global.cassandra.username}}
29 storage.password={{.Values.global.cassandra.password}}
30
31 storage.cql.read-consistency-level=LOCAL_QUORUM
32 storage.cql.write-consistency-level=LOCAL_QUORUM
33 storage.cql.replication-factor={{.Values.global.cassandra.replicas}}
34 storage.cql.only-use-local-consistency-for-system-operations=true
35 {{- else }}
36 {{- if .Values.global.jobs.migration.remoteCassandra.storage }}
37 storage.backend={{ .Values.global.jobs.migration.remoteCassandra.storage.backend }}
38 storage.hostname={{ .Values.global.jobs.migration.remoteCassandra.storage.hostname }}
39 {{- if eq .Values.global.jobs.migration.remoteCassandra.storage.backend "cassandra" }}
40 storage.cassandra.keyspace={{ .Values.global.jobs.migration.remoteCassandra.storage.name }}
41 storage.cassandra.read-consistency-level={{ .Values.global.jobs.migration.remoteCassandra.storage.cassandra.readConsistency }}
42 storage.cassandra.write-consistency-level={{ .Values.global.jobs.migration.remoteCassandra.storage.cassandra.writeConsistency }}
43 storage.cassandra.replication-factor={{ .Values.global.jobs.migration.remoteCassandra.storage.cassandra.replicationFactor | int }}
44 storage.cassandra.replication-strategy-class=org.apache.cassandra.locator.SimpleStrategy
45
46 {{- else if eq .Values.global.jobs.migration.remoteCassandra.storage.backend "cql" }}
47 storage.cql.keyspace={{ .Values.global.jobs.migration.remoteCassandra.storage.name }}
48 storage.cql.read-consistency-level={{ .Values.global.jobs.migration.remoteCassandra.storage.cql.readConsistency }}
49 storage.cql.write-consistency-level={{ .Values.global.jobs.migration.remoteCassandra.storage.cql.readConsistency }}
50 storage.cql.replication-factor={{ .Values.global.jobs.migration.remoteCassandra.storage.cql.replicationFactor | int }}
51 storage.cql.only-use-local-consistency-for-system-operations={{ .Values.global.jobs.migration.remoteCassandra.storage.cql.localConsistencyForSysOps }}
52 storage.cql.cluster-name={{ .Values.global.jobs.migration.remoteCassandra.storage.cql.clusterName }}
53 storage.cql.local-datacenter={{ .Values.global.jobs.migration.remoteCassandra.storage.cql.localDataCenter }}
54
55 {{- else if eq .Values.global.jobs.migration.remoteCassandra.storage.backend "hbase" }}
56 storage.hbase.table={{ .Values.global.jobs.migration.remoteCassandra.storage.name }}
57 {{- end }}
58 storage.connection-timeout={{ .Values.global.jobs.migration.remoteCassandra.storage.connectionTimeout | int }}
59 cache.tx-cache-size={{ .Values.global.jobs.migration.remoteCassandra.storage.cacheSize | int }}
60 log.tx.key-consistent={{ .Values.global.jobs.migration.remoteCassandra.storage.keyConsistent }}
61 {{- end }}
62 {{- end }}
63 storage.lock.wait-time=300
64 # Setting db-cache to false ensure the fastest propagation of changes across servers
65 cache.db-cache = false
66 #load graphson file on startup
67 load.snapshot.file=false