cluster

Infrastructure files for Nordgedanken and Midnightthoughts.
git clone git://archive.git.mtrnord.blog/MTRNord/cluster.git
Log | Files | Refs | README

commit aebfcf68a42a0a035b199e11213e69ddc820621a
parent 3900d9494eccf63dad9fdad357955e26d0f1eab5
Author: MTRNord <mtrnord1@gmail.com>
Date:   Sun, 10 Sep 2023 16:37:49 +0200

Enable cache autotune

Diffstat:
Mapps/base/matrix/draupnir-synapse/release.yaml | 22++++++++++++++++++----
Mapps/base/matrix/synapse/release.yaml | 21+++++++++++++++++++--
2 files changed, 37 insertions(+), 6 deletions(-)

diff --git a/apps/base/matrix/draupnir-synapse/release.yaml b/apps/base/matrix/draupnir-synapse/release.yaml @@ -27,6 +27,15 @@ spec: federation_sender_instances: - federation-sender-1 - federation-sender-2 + event_cache_size: 10K + caches: + global_factor: 10 + expire_caches: true + cache_entry_ttl: 240m + cache_autotuning: + max_cache_memory_usage: 2048M + target_cache_memory_usage: 1024M + min_cache_ttl: 5m wellknown: enabled: true extraData: @@ -50,13 +59,20 @@ spec: value: tempo.monitoring.svc.cluster.local - name: LD_PRELOAD value: /usr/lib/x86_64-linux-gnu/libjemalloc.so.2 - - name: SYNAPSE_CACHE_FACTOR - value: "20.0" extraConfig: opentracing: enabled: true homeserver_whitelist: - "matrix.midnightthoughts.space" + event_cache_size: 10K + caches: + global_factor: 10 + expire_caches: true + cache_entry_ttl: 240m + cache_autotuning: + max_cache_memory_usage: 2048M + target_cache_memory_usage: 1024M + min_cache_ttl: 5m generic_frontend: replicaCount: 2 enabled: true @@ -161,8 +177,6 @@ spec: value: tempo.monitoring.svc.cluster.local - name: LD_PRELOAD value: /usr/lib/x86_64-linux-gnu/libjemalloc.so.2 - - name: SYNAPSE_CACHE_FACTOR - value: "20.0" annotations: prometheus.io/scrape: "true" prometheus.io/path: "/_synapse/metrics" diff --git a/apps/base/matrix/synapse/release.yaml b/apps/base/matrix/synapse/release.yaml @@ -45,6 +45,15 @@ spec: experimental_features: msc2409_to_device_messages_enabled: true msc2716_enabled: true + event_cache_size: 10K + caches: + global_factor: 10 + expire_caches: true + cache_entry_ttl: 240m + cache_autotuning: + max_cache_memory_usage: 2048M + target_cache_memory_usage: 1024M + min_cache_ttl: 5m persistence: size: 30Gi volumePermissions: @@ -55,8 +64,16 @@ spec: extraEnv: - name: LD_PRELOAD value: /usr/lib/x86_64-linux-gnu/libjemalloc.so.2 - - name: SYNAPSE_CACHE_FACTOR - value: "20.0" + extraConfig: + event_cache_size: 10K + caches: + global_factor: 10 + expire_caches: true + cache_entry_ttl: 240m + cache_autotuning: + max_cache_memory_usage: 2048M + target_cache_memory_usage: 1024M + min_cache_ttl: 5m federation_reader: replicaCount: 2 enabled: true