Kajur, Harish (vk250x) | 41a435d | 2018-09-06 14:44:40 -0400 | [diff] [blame] | 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 | |
Kajur, Harish (vk250x) | 41a435d | 2018-09-06 14:44:40 -0400 | [diff] [blame] | 25 | storage.backend=cassandra |
Mahendra Raghuwanshi | bd10dfc | 2019-03-15 12:02:42 +0000 | [diff] [blame] | 26 | storage.hostname={{.Values.global.cassandra.serviceName}} |
mahendrr | 4741afb | 2019-05-03 08:51:40 +0000 | [diff] [blame^] | 27 | storage.username={{.Values.global.cassandra.username}} |
| 28 | storage.password={{.Values.global.cassandra.password}} |
Kajur, Harish (vk250x) | 41a435d | 2018-09-06 14:44:40 -0400 | [diff] [blame] | 29 | |
| 30 | storage.cassandra.keyspace=aaigraph |
| 31 | |
| 32 | storage.cassandra.read-consistency-level=LOCAL_QUORUM |
| 33 | storage.cassandra.write-consistency-level=LOCAL_QUORUM |
Mahendra Raghuwanshi | bd10dfc | 2019-03-15 12:02:42 +0000 | [diff] [blame] | 34 | storage.cassandra.replication-factor={{.Values.global.cassandra.replicas}} |
Kajur, Harish (vk250x) | 41a435d | 2018-09-06 14:44:40 -0400 | [diff] [blame] | 35 | storage.cassandra.replication-strategy-class=org.apache.cassandra.locator.SimpleStrategy |
| 36 | |
| 37 | {{ else }} |
| 38 | |
| 39 | {{ if .Values.global.config.storage }} |
| 40 | |
| 41 | storage.backend={{ .Values.global.config.storage.backend }} |
| 42 | |
| 43 | {{ if eq .Values.global.config.storage.backend "cassandra" }} |
| 44 | |
| 45 | storage.hostname={{ .Values.global.config.storage.hostname }} |
| 46 | storage.cassandra.keyspace={{ .Values.global.config.storage.name }} |
| 47 | |
| 48 | storage.cassandra.read-consistency-level={{ .Values.global.config.storage.cassandra.readConsistency }} |
| 49 | storage.cassandra.write-consistency-level={{ .Values.global.config.storage.cassandra.writeConsistency }} |
| 50 | storage.cassandra.replication-factor={{ .Values.global.config.storage.cassandra.replicationFactor | int }} |
| 51 | storage.cassandra.astyanax.cluster-name= {{ .Values.global.config.storage.clusterName }} |
| 52 | storage.cassandra.astyanax.local-datacenter= {{ .Values.global.config.storage.localDataCenter }} |
| 53 | |
| 54 | storage.connection-timeout={{ .Values.global.config.storage.connectionTimeout | int }} |
| 55 | cache.tx-cache-size={{ .Values.global.config.storage.cacheSize | int }} |
| 56 | log.tx.key-consistent={{ .Values.global.config.storage.keyConsistent }} |
| 57 | |
| 58 | {{ else if eq .Values.global.config.storage.backend "cql" }} |
| 59 | |
| 60 | storage.hostname={{ .Values.global.config.storage.hostname }} |
| 61 | storage.cql.keyspace={{ .Values.global.config.storage.name }} |
| 62 | |
| 63 | storage.cql.read-consistency-level={{ .Values.global.config.storage.cql.readConsistency }} |
| 64 | storage.cql.write-consistency-level={{ .Values.global.config.storage.cql.readConsistency }} |
| 65 | storage.cql.replication-factor={{ .Values.global.config.storage.cql.replicationFactor | int }} |
| 66 | |
| 67 | storage.cql.only-use-local-consistency-for-system-operations={{ .Values.global.config.storage.cql.localConsistencyForSysOps }} |
| 68 | storage.cql.cluster-name={{ .Values.global.config.storage.clusterName }} |
| 69 | storage.cql.local-datacenter={{ .Values.global.config.storage.localDataCenter }} |
| 70 | |
| 71 | storage.connection-timeout={{ .Values.global.config.storage.connectionTimeout | int }} |
| 72 | cache.tx-cache-size={{ .Values.global.config.storage.cacheSize | int }} |
| 73 | log.tx.key-consistent={{ .Values.global.config.storage.keyConsistent }} |
| 74 | |
| 75 | {{ else if eq .Values.global.config.storage.backend "hbase" }} |
| 76 | |
| 77 | storage.hostname={{ .Values.global.config.storage.hostname }} |
| 78 | storage.hbase.table={{ .Values.global.config.storage.name }} |
| 79 | |
| 80 | storage.connection-timeout={{ .Values.global.config.storage.connectionTimeout | int }} |
| 81 | cache.tx-cache-size={{ .Values.global.config.storage.cacheSize | int }} |
| 82 | log.tx.key-consistent={{ .Values.global.config.storage.keyConsistent }} |
| 83 | |
| 84 | {{ end }} |
| 85 | |
| 86 | {{ end }} |
| 87 | |
| 88 | {{ end }} |
| 89 | |
| 90 | storage.lock.wait-time=300 |
| 91 | #caching on |
| 92 | cache.db-cache = true |
| 93 | cache.db-cache-clean-wait = 20 |
| 94 | cache.db-cache-time = 180000 |
| 95 | cache.db-cache-size = 0.3 |
| 96 | |
| 97 | #load graphson file on startup |
| 98 | load.snapshot.file=false |