Sylvain Desbureaux | 47eb4d2 | 2020-12-10 12:15:27 +0100 | [diff] [blame] | 1 | {{/* |
Sylvain Desbureaux | 7007041 | 2020-11-09 21:58:48 +0100 | [diff] [blame] | 2 | # |
| 3 | # ============LICENSE_START======================================================= |
| 4 | # Copyright © 2017 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 | # ECOMP is a trademark and service mark of AT&T Intellectual Property. |
| 20 | # |
Sylvain Desbureaux | 47eb4d2 | 2020-12-10 12:15:27 +0100 | [diff] [blame] | 21 | */}} |
Sylvain Desbureaux | 7007041 | 2020-11-09 21:58:48 +0100 | [diff] [blame] | 22 | |
| 23 | query.fast-property=true |
| 24 | query.smart-limit=false |
| 25 | |
| 26 | {{ if .Values.global.config.cluster.cassandra.dynamic }} |
| 27 | |
| 28 | storage.backend=cql |
| 29 | storage.hostname={{.Values.global.cassandra.serviceName}} |
| 30 | storage.cql.keyspace=aaigraph |
| 31 | storage.username={{.Values.global.cassandra.username}} |
| 32 | storage.password={{.Values.global.cassandra.password}} |
| 33 | |
| 34 | storage.cql.read-consistency-level=LOCAL_QUORUM |
| 35 | storage.cql.write-consistency-level=LOCAL_QUORUM |
| 36 | storage.cql.replication-factor={{.Values.global.cassandra.replicas}} |
| 37 | storage.cql.only-use-local-consistency-for-system-operations=true |
| 38 | |
| 39 | {{ else }} |
| 40 | |
| 41 | {{ if .Values.global.config.storage }} |
| 42 | |
| 43 | storage.backend={{ .Values.global.config.storage.backend }} |
| 44 | |
| 45 | {{ if eq .Values.global.config.storage.backend "cassandra" }} |
| 46 | |
| 47 | storage.hostname={{ .Values.global.config.storage.hostname }} |
| 48 | storage.cassandra.keyspace={{ .Values.global.config.storage.name }} |
| 49 | |
| 50 | storage.cassandra.read-consistency-level={{ .Values.global.config.storage.cassandra.readConsistency }} |
| 51 | storage.cassandra.write-consistency-level={{ .Values.global.config.storage.cassandra.writeConsistency }} |
| 52 | storage.cassandra.replication-factor={{ .Values.global.config.storage.cassandra.replicationFactor | int }} |
| 53 | storage.cassandra.astyanax.cluster-name= {{ .Values.global.config.storage.clusterName }} |
| 54 | storage.cassandra.astyanax.local-datacenter= {{ .Values.global.config.storage.localDataCenter }} |
| 55 | |
| 56 | storage.connection-timeout={{ .Values.global.config.storage.connectionTimeout | int }} |
| 57 | cache.tx-cache-size={{ .Values.global.config.storage.cacheSize | int }} |
| 58 | log.tx.key-consistent={{ .Values.global.config.storage.keyConsistent }} |
| 59 | |
| 60 | {{ else if eq .Values.global.config.storage.backend "cql" }} |
| 61 | |
| 62 | storage.hostname={{ .Values.global.config.storage.hostname }} |
| 63 | storage.cql.keyspace={{ .Values.global.config.storage.name }} |
| 64 | |
| 65 | storage.cql.read-consistency-level={{ .Values.global.config.storage.cql.readConsistency }} |
| 66 | storage.cql.write-consistency-level={{ .Values.global.config.storage.cql.readConsistency }} |
| 67 | storage.cql.replication-factor={{ .Values.global.config.storage.cql.replicationFactor | int }} |
| 68 | |
| 69 | storage.cql.only-use-local-consistency-for-system-operations={{ .Values.global.config.storage.cql.localConsistencyForSysOps }} |
| 70 | storage.cql.cluster-name={{ .Values.global.config.storage.clusterName }} |
| 71 | storage.cql.local-datacenter={{ .Values.global.config.storage.localDataCenter }} |
| 72 | |
| 73 | storage.connection-timeout={{ .Values.global.config.storage.connectionTimeout | int }} |
| 74 | cache.tx-cache-size={{ .Values.global.config.storage.cacheSize | int }} |
| 75 | log.tx.key-consistent={{ .Values.global.config.storage.keyConsistent }} |
| 76 | |
| 77 | {{ else if eq .Values.global.config.storage.backend "hbase" }} |
| 78 | |
| 79 | storage.hostname={{ .Values.global.config.storage.hostname }} |
| 80 | storage.hbase.table={{ .Values.global.config.storage.name }} |
| 81 | |
| 82 | storage.connection-timeout={{ .Values.global.config.storage.connectionTimeout | int }} |
| 83 | cache.tx-cache-size={{ .Values.global.config.storage.cacheSize | int }} |
| 84 | log.tx.key-consistent={{ .Values.global.config.storage.keyConsistent }} |
| 85 | |
| 86 | {{ end }} |
| 87 | |
| 88 | {{ end }} |
| 89 | |
| 90 | {{ end }} |
| 91 | |
| 92 | storage.lock.wait-time=300 |
Fiete Ostkamp | 40cbf9b | 2024-01-08 16:04:02 +0100 | [diff] [blame] | 93 | |
| 94 | # https://docs.janusgraph.org/operations/cache/#database-level-caching |
| 95 | # Setting db-cache to false will ensure the fastest propagation of changes across servers |
| 96 | # Setting db-cache to true will ensure fastest response times |
| 97 | cache.db-cache={{ .Values.config.janusgraph.caching.enabled }} |
| 98 | {{ if .Values.config.janusgraph.caching.enabled }} |
| 99 | # cache-time in milliseconds |
| 100 | cache.db-cache-time={{ .Values.config.janusgraph.caching.dbCacheTime }} |
| 101 | cache.db-cache-size={{ .Values.config.janusgraph.caching.dbCacheSize }} |
| 102 | cache.db-cache-clean-wait={{ .Values.config.janusgraph.caching.dbCacheCleanWait }} |
| 103 | {{ end }} |
| 104 | |
Sylvain Desbureaux | 7007041 | 2020-11-09 21:58:48 +0100 | [diff] [blame] | 105 | #load graphson file on startup |
| 106 | load.snapshot.file=false |