Skip to content

Commit d4ede8f

Browse files
committed
caches configuration
1 parent 96a629d commit d4ede8f

File tree

3 files changed

+19
-1
lines changed

3 files changed

+19
-1
lines changed

charts/synapse/Chart.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
---
22
name: synapse
3-
version: 0.34.0
3+
version: 0.35.0

charts/synapse/templates/synapse-configmap.yaml

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -291,6 +291,15 @@ data:
291291
enabled: true
292292
{{- end }}
293293
{{- end }}
294+
caches:
295+
expire_caches: true
296+
global_factor: {{ $.Values.synapse.caches.globalFactor }}
297+
cache_entry_ttl: {{ $.Values.synapse.caches.cacheEntryTtl }}
298+
sync_response_cache_duration: {{ $.Values.synapse.caches.syncResponseCacheDuration }}
299+
cache_autotuning:
300+
max_cache_memory_usage: {{ $.Values.synapse.cacheAutotuning.maxCacheMemoryUsage }}
301+
target_cache_memory_usage: {{ $.Values.synapse.cacheAutotuning.targetCacheMemoryUsage }}
302+
min_cache_ttl: {{ $.Values.synapse.cacheAutotuning.minCacheTtl }}
294303
295304
log.config: |
296305
---

charts/synapse/values.yaml

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -199,6 +199,15 @@ synapse:
199199
interval: 12h
200200
- shortest_max_lifetime: 3d
201201
interval: 1d
202+
# https://element-hq.github.io/synapse/latest/usage/configuration/config_documentation.html#caches
203+
caches:
204+
globalFactor: 1.0
205+
cacheEntryTtl: '30m'
206+
syncResponseCacheDuration: '2m'
207+
cacheAutotuning:
208+
maxCacheMemoryUsage: '1024M'
209+
targetCacheMemoryUsage: '512M'
210+
minCacheTtl: '5m'
202211

203212
rc_message:
204213
per_second: 100

0 commit comments

Comments
 (0)