vagrant | 1a3a355 | 2018-03-10 23:56:32 +0000 | [diff] [blame] | 1 | # |
| 2 | # ============LICENSE_START======================================================= |
| 3 | # org.onap.aai |
| 4 | # ================================================================================ |
| 5 | # Copyright © 2017 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 | # ECOMP is a trademark and service mark of AT&T Intellectual Property. |
| 21 | # |
| 22 | |
| 23 | query.fast-property=true |
| 24 | query.smart-limit=false |
| 25 | |
Kajur, Harish (vk250x) | 00107b5 | 2018-09-06 14:44:40 -0400 | [diff] [blame^] | 26 | {{ if .Values.global.config.cluster.cassandra.dynamic }} |
| 27 | |
vagrant | 1a3a355 | 2018-03-10 23:56:32 +0000 | [diff] [blame] | 28 | {{- $seed_size := default 1 .Values.global.cassandra.replicas | int -}} |
Kajur, Harish (vk250x) | c043129 | 2018-04-25 16:44:35 -0400 | [diff] [blame] | 29 | {{- $global := . }} |
vagrant | 1a3a355 | 2018-03-10 23:56:32 +0000 | [diff] [blame] | 30 | |
vagrant | 1a3a355 | 2018-03-10 23:56:32 +0000 | [diff] [blame] | 31 | storage.backend=cassandra |
BorislavG | 26b650f | 2018-05-13 17:11:01 +0000 | [diff] [blame] | 32 | storage.hostname={{- range $i, $e := until $seed_size }}{{ $global.Release.Name }}-{{$global.Values.global.cassandra.serviceName}}-{{ $i }}.{{$global.Values.global.cassandra.serviceName}},{{- end }} |
vagrant | 1a3a355 | 2018-03-10 23:56:32 +0000 | [diff] [blame] | 33 | |
| 34 | storage.cassandra.keyspace=aaigraph |
| 35 | |
| 36 | storage.cassandra.read-consistency-level=LOCAL_QUORUM |
| 37 | storage.cassandra.write-consistency-level=LOCAL_QUORUM |
| 38 | storage.cassandra.replication-factor=3 |
| 39 | storage.cassandra.replication-strategy-class=org.apache.cassandra.locator.SimpleStrategy |
vagrant | 1a3a355 | 2018-03-10 23:56:32 +0000 | [diff] [blame] | 40 | |
Kajur, Harish (vk250x) | 00107b5 | 2018-09-06 14:44:40 -0400 | [diff] [blame^] | 41 | {{ else }} |
| 42 | |
| 43 | {{ if .Values.global.config.storage }} |
| 44 | |
| 45 | storage.backend={{ .Values.global.config.storage.backend }} |
| 46 | |
| 47 | {{ if eq .Values.global.config.storage.backend "cassandra" }} |
| 48 | |
| 49 | storage.hostname={{ .Values.global.config.storage.hostname }} |
| 50 | storage.cassandra.keyspace={{ .Values.global.config.storage.name }} |
| 51 | |
| 52 | storage.cassandra.read-consistency-level={{ .Values.global.config.storage.cassandra.readConsistency }} |
| 53 | storage.cassandra.write-consistency-level={{ .Values.global.config.storage.cassandra.writeConsistency }} |
| 54 | storage.cassandra.replication-factor={{ .Values.global.config.storage.cassandra.replicationFactor | int }} |
| 55 | storage.cassandra.astyanax.cluster-name= {{ .Values.global.config.storage.clusterName }} |
| 56 | storage.cassandra.astyanax.local-datacenter= {{ .Values.global.config.storage.localDataCenter }} |
| 57 | |
| 58 | storage.connection-timeout={{ .Values.global.config.storage.connectionTimeout | int }} |
| 59 | cache.tx-cache-size={{ .Values.global.config.storage.cacheSize | int }} |
| 60 | log.tx.key-consistent={{ .Values.global.config.storage.keyConsistent }} |
| 61 | |
| 62 | {{ else if eq .Values.global.config.storage.backend "cql" }} |
| 63 | |
| 64 | storage.hostname={{ .Values.global.config.storage.hostname }} |
| 65 | storage.cql.keyspace={{ .Values.global.config.storage.name }} |
| 66 | |
| 67 | storage.cql.read-consistency-level={{ .Values.global.config.storage.cql.readConsistency }} |
| 68 | storage.cql.write-consistency-level={{ .Values.global.config.storage.cql.readConsistency }} |
| 69 | storage.cql.replication-factor={{ .Values.global.config.storage.cql.replicationFactor | int }} |
| 70 | |
| 71 | storage.cql.only-use-local-consistency-for-system-operations={{ .Values.global.config.storage.cql.localConsistencyForSysOps }} |
| 72 | storage.cql.cluster-name={{ .Values.global.config.storage.clusterName }} |
| 73 | storage.cql.local-datacenter={{ .Values.global.config.storage.localDataCenter }} |
| 74 | |
| 75 | storage.connection-timeout={{ .Values.global.config.storage.connectionTimeout | int }} |
| 76 | cache.tx-cache-size={{ .Values.global.config.storage.cacheSize | int }} |
| 77 | log.tx.key-consistent={{ .Values.global.config.storage.keyConsistent }} |
| 78 | |
| 79 | {{ else if eq .Values.global.config.storage.backend "hbase" }} |
| 80 | |
| 81 | storage.hostname={{ .Values.global.config.storage.hostname }} |
| 82 | storage.hbase.table={{ .Values.global.config.storage.name }} |
| 83 | |
| 84 | storage.connection-timeout={{ .Values.global.config.storage.connectionTimeout | int }} |
| 85 | cache.tx-cache-size={{ .Values.global.config.storage.cacheSize | int }} |
| 86 | log.tx.key-consistent={{ .Values.global.config.storage.keyConsistent }} |
| 87 | |
| 88 | {{ end }} |
| 89 | |
| 90 | {{ end }} |
| 91 | |
| 92 | {{ end }} |
| 93 | |
vagrant | 1a3a355 | 2018-03-10 23:56:32 +0000 | [diff] [blame] | 94 | storage.lock.wait-time=300 |
| 95 | #caching on |
| 96 | cache.db-cache = true |
| 97 | cache.db-cache-clean-wait = 20 |
| 98 | cache.db-cache-time = 180000 |
| 99 | cache.db-cache-size = 0.3 |
| 100 | |
| 101 | #load graphson file on startup |
| 102 | load.snapshot.file=false |