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
 
   9 #    http://www.apache.org/licenses/LICENSE-2.0
 
  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=========================================================
 
  18 query.fast-property=true
 
  19 query.smart-limit=false
 
  21 {{- if eq .Values.global.jobs.migration.remoteCassandra.enabled false }}
 
  23 storage.backend=cassandra
 
  25 #In case of upgrades from Casablanca provide the override aai.global.cassandra.existingInstServiceName=aai-cassandra
 
  26 storage.hostname={{ .Values.global.cassandra.existingInstServiceName | default .Values.global.cassandra.serviceName }}
 
  28 storage.cassandra.keyspace=aaigraph
 
  29 storage.cassandra.read-consistency-level=LOCAL_QUORUM
 
  30 storage.cassandra.write-consistency-level=LOCAL_QUORUM
 
  31 storage.cassandra.replication-factor=3
 
  32 storage.cassandra.replication-strategy-class=org.apache.cassandra.locator.SimpleStrategy
 
  34 {{- if .Values.global.jobs.migration.remoteCassandra.storage }}
 
  35 storage.backend={{ .Values.global.jobs.migration.remoteCassandra.storage.backend }}
 
  36 storage.hostname={{ .Values.global.jobs.migration.remoteCassandra.storage.hostname }}
 
  37 {{- if eq .Values.global.jobs.migration.remoteCassandra.storage.backend "cassandra" }}
 
  38 storage.cassandra.keyspace={{ .Values.global.jobs.migration.remoteCassandra.storage.name }}
 
  39 storage.cassandra.read-consistency-level={{ .Values.global.jobs.migration.remoteCassandra.storage.cassandra.readConsistency }}
 
  40 storage.cassandra.write-consistency-level={{ .Values.global.jobs.migration.remoteCassandra.storage.cassandra.writeConsistency }}
 
  41 storage.cassandra.replication-factor={{ .Values.global.jobs.migration.remoteCassandra.storage.cassandra.replicationFactor | int }}
 
  42 storage.cassandra.replication-strategy-class=org.apache.cassandra.locator.SimpleStrategy
 
  44 {{- else if eq .Values.global.jobs.migration.remoteCassandra.storage.backend "cql" }}
 
  45 storage.cql.keyspace={{ .Values.global.jobs.migration.remoteCassandra.storage.name }}
 
  46 storage.cql.read-consistency-level={{ .Values.global.jobs.migration.remoteCassandra.storage.cql.readConsistency }}
 
  47 storage.cql.write-consistency-level={{ .Values.global.jobs.migration.remoteCassandra.storage.cql.readConsistency }}
 
  48 storage.cql.replication-factor={{ .Values.global.jobs.migration.remoteCassandra.storage.cql.replicationFactor | int }}
 
  49 storage.cql.only-use-local-consistency-for-system-operations={{ .Values.global.jobs.migration.remoteCassandra.storage.cql.localConsistencyForSysOps }}
 
  50 storage.cql.cluster-name={{ .Values.global.jobs.migration.remoteCassandra.storage.cql.clusterName }}
 
  51 storage.cql.local-datacenter={{ .Values.global.jobs.migration.remoteCassandra.storage.cql.localDataCenter }}
 
  53 {{- else if eq .Values.global.jobs.migration.remoteCassandra.storage.backend "hbase" }}
 
  54 storage.hbase.table={{ .Values.global.jobs.migration.remoteCassandra.storage.name }}
 
  56 storage.connection-timeout={{ .Values.global.jobs.migration.remoteCassandra.storage.connectionTimeout | int }}
 
  57 cache.tx-cache-size={{ .Values.global.jobs.migration.remoteCassandra.storage.cacheSize | int }}
 
  58 log.tx.key-consistent={{ .Values.global.jobs.migration.remoteCassandra.storage.keyConsistent }}
 
  61 storage.lock.wait-time=300
 
  62 # Setting db-cache to false ensure the fastest propagation of changes across servers
 
  63 cache.db-cache = false
 
  64 #load graphson file on startup
 
  65 load.snapshot.file=false