commit 4ec75f429f016ad722b567f4aeee268513fc1818
parent e6a720ef73bd23155a7bc0e84d1ea7845ba8bc29
Author: MTRNord <mtrnord1@gmail.com>
Date: Thu, 17 Aug 2023 16:05:20 +0200
Increase cache factor to 10 as recommended
Diffstat:
2 files changed, 13 insertions(+), 3 deletions(-)
diff --git a/apps/base/matrix/draupnir-synapse/release.yaml b/apps/base/matrix/draupnir-synapse/release.yaml
@@ -45,6 +45,10 @@ spec:
extraEnv:
- name: JAEGER_AGENT_HOST
value: tempo.monitoring.svc.cluster.local
+ - name: LD_PRELOAD
+ value: /usr/lib/x86_64-linux-gnu/libjemalloc.so.2
+ - name: SYNAPSE_CACHE_FACTOR
+ value: "10.0"
extraConfig:
opentracing:
enabled: true
@@ -110,7 +114,7 @@ spec:
- name: LD_PRELOAD
value: /usr/lib/x86_64-linux-gnu/libjemalloc.so.2
- name: SYNAPSE_CACHE_FACTOR
- value: "2"
+ value: "10.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
@@ -51,6 +51,12 @@ spec:
enabled: true
workers:
+ default:
+ extraEnv:
+ - name: LD_PRELOAD
+ value: /usr/lib/x86_64-linux-gnu/libjemalloc.so.2
+ - name: SYNAPSE_CACHE_FACTOR
+ value: "10.0"
federation_reader:
replicaCount: 2
enabled: true
@@ -312,7 +318,7 @@ spec:
- name: LD_PRELOAD
value: /usr/lib/x86_64-linux-gnu/libjemalloc.so.2
- name: SYNAPSE_CACHE_FACTOR
- value: "1.0"
+ value: "10.0"
synapse:
## Liveness probe configuration to use
@@ -338,7 +344,7 @@ spec:
- name: LD_PRELOAD
value: /usr/lib/x86_64-linux-gnu/libjemalloc.so.2
- name: SYNAPSE_CACHE_FACTOR
- value: "2"
+ value: "10"
annotations:
prometheus.io/scrape: "true"
prometheus.io/path: "/_synapse/metrics"