commit 65711aa148727f5847aa7a7decb0a851ca8222e9
parent 58ce19ca6382491f40a71de0dcfd17dbbeb60e8e
Author: MTRNord <mtrnord1@gmail.com>
Date: Sat, 9 Sep 2023 15:33:11 +0200
Add some workers to d4all synapse
Diffstat:
2 files changed, 21 insertions(+), 7 deletions(-)
diff --git a/apps/base/matrix/draupnir-synapse/release.yaml b/apps/base/matrix/draupnir-synapse/release.yaml
@@ -17,10 +17,13 @@ spec:
retries: 3
values:
extraConfig:
+ stream_writers:
+ events: event_persister
+ run_background_tasks_on: background_worker
opentracing:
enabled: true
homeserver_whitelist:
- - "draupnir4all.matrix.svc.cluster.local"
+ - "matrix.midnightthoughts.space"
federation_sender_instances:
- federation-sender-1
- federation-sender-2
@@ -48,12 +51,12 @@ spec:
- name: LD_PRELOAD
value: /usr/lib/x86_64-linux-gnu/libjemalloc.so.2
- name: SYNAPSE_CACHE_FACTOR
- value: "10.0"
+ value: "20.0"
extraConfig:
opentracing:
enabled: true
homeserver_whitelist:
- - "draupnir4all.matrix.svc.cluster.local"
+ - "matrix.midnightthoughts.space"
federation_reader:
replicaCount: 2
enabled: true
@@ -77,6 +80,17 @@ spec:
app: federation_sender
name: federation-sender-2
enabled: true
+ background_worker:
+ name: background_worker
+ replicaCount: 1
+ enabled: true
+ generic: true
+ event_persister:
+ name: event_persister
+ replicaCount: 1
+ enabled: true
+ generic: true
+ listeners: [replication]
# default:
# tolerations:
# - key: "arch"
@@ -114,7 +128,7 @@ spec:
- name: LD_PRELOAD
value: /usr/lib/x86_64-linux-gnu/libjemalloc.so.2
- name: SYNAPSE_CACHE_FACTOR
- value: "10.0"
+ 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
@@ -56,7 +56,7 @@ spec:
- name: LD_PRELOAD
value: /usr/lib/x86_64-linux-gnu/libjemalloc.so.2
- name: SYNAPSE_CACHE_FACTOR
- value: "10.0"
+ value: "20.0"
federation_reader:
replicaCount: 2
enabled: true
@@ -318,7 +318,7 @@ spec:
- name: LD_PRELOAD
value: /usr/lib/x86_64-linux-gnu/libjemalloc.so.2
- name: SYNAPSE_CACHE_FACTOR
- value: "10.0"
+ value: "20.0"
synapse:
## Liveness probe configuration to use
@@ -344,7 +344,7 @@ spec:
- name: LD_PRELOAD
value: /usr/lib/x86_64-linux-gnu/libjemalloc.so.2
- name: SYNAPSE_CACHE_FACTOR
- value: "10"
+ value: "20"
annotations:
prometheus.io/scrape: "true"
prometheus.io/path: "/_synapse/metrics"