Sylvain Desbureaux | 7007041 | 2020-11-09 21:58:48 +0100 | [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 | |
| 25 | storage.backend=cql |
| 26 | storage.hostname={{.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 | |
| 36 | {{ else }} |
| 37 | |
| 38 | {{ if .Values.global.config.storage }} |
| 39 | |
| 40 | storage.backend={{ .Values.global.config.storage.backend }} |
| 41 | |
| 42 | {{ if eq .Values.global.config.storage.backend "cassandra" }} |
| 43 | |
| 44 | storage.hostname={{ .Values.global.config.storage.hostname }} |
| 45 | storage.cassandra.keyspace={{ .Values.global.config.storage.name }} |
| 46 | |
| 47 | storage.cassandra.read-consistency-level={{ .Values.global.config.storage.cassandra.readConsistency }} |
| 48 | storage.cassandra.write-consistency-level={{ .Values.global.config.storage.cassandra.writeConsistency }} |
| 49 | storage.cassandra.replication-factor={{ .Values.global.config.storage.cassandra.replicationFactor | int }} |
| 50 | storage.cassandra.astyanax.cluster-name= {{ .Values.global.config.storage.clusterName }} |
| 51 | storage.cassandra.astyanax.local-datacenter= {{ .Values.global.config.storage.localDataCenter }} |
| 52 | |
| 53 | storage.connection-timeout={{ .Values.global.config.storage.connectionTimeout | int }} |
| 54 | cache.tx-cache-size={{ .Values.global.config.storage.cacheSize | int }} |
| 55 | log.tx.key-consistent={{ .Values.global.config.storage.keyConsistent }} |
| 56 | |
| 57 | {{ else if eq .Values.global.config.storage.backend "cql" }} |
| 58 | |
| 59 | storage.hostname={{ .Values.global.config.storage.hostname }} |
| 60 | storage.cql.keyspace={{ .Values.global.config.storage.name }} |
| 61 | |
| 62 | storage.cql.read-consistency-level={{ .Values.global.config.storage.cql.readConsistency }} |
| 63 | storage.cql.write-consistency-level={{ .Values.global.config.storage.cql.readConsistency }} |
| 64 | storage.cql.replication-factor={{ .Values.global.config.storage.cql.replicationFactor | int }} |
| 65 | |
| 66 | storage.cql.only-use-local-consistency-for-system-operations={{ .Values.global.config.storage.cql.localConsistencyForSysOps }} |
| 67 | storage.cql.cluster-name={{ .Values.global.config.storage.clusterName }} |
| 68 | storage.cql.local-datacenter={{ .Values.global.config.storage.localDataCenter }} |
| 69 | |
| 70 | storage.connection-timeout={{ .Values.global.config.storage.connectionTimeout | int }} |
| 71 | cache.tx-cache-size={{ .Values.global.config.storage.cacheSize | int }} |
| 72 | log.tx.key-consistent={{ .Values.global.config.storage.keyConsistent }} |
| 73 | |
| 74 | {{ else if eq .Values.global.config.storage.backend "hbase" }} |
| 75 | |
| 76 | storage.hostname={{ .Values.global.config.storage.hostname }} |
| 77 | storage.hbase.table={{ .Values.global.config.storage.name }} |
| 78 | |
| 79 | storage.connection-timeout={{ .Values.global.config.storage.connectionTimeout | int }} |
| 80 | cache.tx-cache-size={{ .Values.global.config.storage.cacheSize | int }} |
| 81 | log.tx.key-consistent={{ .Values.global.config.storage.keyConsistent }} |
| 82 | |
| 83 | {{ end }} |
| 84 | |
| 85 | {{ end }} |
| 86 | |
| 87 | {{ end }} |
| 88 | |
| 89 | storage.lock.wait-time=300 |
| 90 | #caching on |
| 91 | cache.db-cache = true |
| 92 | cache.db-cache-clean-wait = 20 |
| 93 | cache.db-cache-time = 180000 |
| 94 | cache.db-cache-size = 0.3 |
| 95 | |
| 96 | #load graphson file on startup |
| 97 | load.snapshot.file=false |