commit fbafd26041898c7095075516f93632a3c92ba35a
parent ac0fe563ed1d46e082592fc7c7c0fe3f300eb17c
Author: MTRNord <mtrnord1@gmail.com>
Date: Tue, 23 Jan 2024 10:58:24 +0100
Some cleanup
Diffstat:
1 file changed, 7 insertions(+), 157 deletions(-)
diff --git a/apps/base/matrix/synapse/release.yaml b/apps/base/matrix/synapse/release.yaml
@@ -41,18 +41,18 @@ spec:
- maunium.net
enable_media_repo: false
allow_public_rooms_without_auth: false
- allow_public_rooms_over_federation: true
+ allow_public_rooms_over_federation: false
experimental_features:
msc2409_to_device_messages_enabled: true
msc2716_enabled: true
- event_cache_size: 10K
+ #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
+ max_cache_memory_usage: 4069M
+ target_cache_memory_usage: 2048M
min_cache_ttl: 5m
persistence:
size: 30Gi
@@ -73,14 +73,14 @@ spec:
#- name: SYNAPSE_ASYNC_IO_REACTOR
# value: "true"
extraConfig:
- event_cache_size: 10K
+ #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
+ max_cache_memory_usage: 4069M
+ target_cache_memory_usage: 2048M
min_cache_ttl: 5m
federation_reader:
replicaCount: 2
@@ -102,16 +102,6 @@ spec:
enabled: true
generic: true
- synchrotron:
- enabled: false
- generic: true
- listeners: [client]
- csPaths:
- - "/_matrix/client/(v2_alpha|r0|v3)/sync"
- - "/_matrix/client/(api/v1|v2_alpha|r0|v3)/events"
- - "/_matrix/client/(api/v1|r0|v3)/initialSync"
- - "/_matrix/client/(api/v1|r0|v3)/rooms/[^/]+/initialSync"
-
generic_frontend:
replicaCount: 2
enabled: true
@@ -188,106 +178,6 @@ spec:
# The presence event stream
# - /_matrix/client/(api/v1|r0|v3|unstable)/presence/
- generic_worker:
- replicaCount: 2
- enabled: false
- generic: true
- listeners: [client, federation]
- csPaths:
- # Sync requests
- - "/_matrix/client/(r0|v3)/sync$"
- - "/_matrix/client/(api/v1|r0|v3)/events$"
- - "/_matrix/client/(api/v1|r0|v3)/initialSync$"
- - "/_matrix/client/(api/v1|r0|v3)/rooms/[^/]+/initialSync$/_matrix/client/(api/v1|r0|v3)/rooms/[^/]+/initialSync$"
-
- # Client API requests
- - "/_matrix/client/(api/v1|r0|v3|unstable)/createRoom$"
- - "/_matrix/client/(api/v1|r0|v3|unstable)/publicRooms$"
- - "/_matrix/client/(api/v1|r0|v3|unstable)/rooms/.*/joined_members$"
- - "/_matrix/client/(api/v1|r0|v3|unstable)/rooms/.*/context/.*$"
- - "/_matrix/client/(api/v1|r0|v3|unstable)/rooms/.*/members$"
- - "/_matrix/client/(api/v1|r0|v3|unstable)/rooms/.*/state$"
- - "/_matrix/client/v1/rooms/.*/hierarchy$"
- - "/_matrix/client/(v1|unstable)/rooms/.*/relations/"
- - "/_matrix/client/v1/rooms/.*/threads$"
- - "/_matrix/client/unstable/org.matrix.msc2716/rooms/.*/batch_send$"
- - "/_matrix/client/unstable/im.nheko.summary/rooms/.*/summary$"
- - "/_matrix/client/(r0|v3|unstable)/account/3pid$"
- - "/_matrix/client/(r0|v3|unstable)/account/whoami$"
- - "/_matrix/client/(r0|v3|unstable)/devices$"
- - "/_matrix/client/versions$"
- - "/_matrix/client/(api/v1|r0|v3|unstable)/voip/turnServer$"
- - "/_matrix/client/(api/v1|r0|v3|unstable)/rooms/.*/event/"
- - "/_matrix/client/(api/v1|r0|v3|unstable)/joined_rooms$"
- - "/_matrix/client/v1/rooms/.*/timestamp_to_event$"
- - "/_matrix/client/(api/v1|r0|v3|unstable/.*)/rooms/.*/aliases"
- - "/_matrix/client/(api/v1|r0|v3|unstable)/search$"
- - "/_matrix/client/(r0|v3|unstable)/user/.*/filter(/|$)"
-
- # Encryption requests
- - "/_matrix/client/(r0|v3|unstable)/keys/query$"
- - "/_matrix/client/(r0|v3|unstable)/keys/changes$"
- - "/_matrix/client/(r0|v3|unstable)/keys/claim$"
- - "/_matrix/client/(r0|v3|unstable)/room_keys/"
- - "/_matrix/client/(r0|v3|unstable)/keys/upload/"
-
- # Registration/login requests
- - "/_matrix/client/(api/v1|r0|v3|unstable)/login$"
- - "/_matrix/client/(r0|v3|unstable)/register$"
- - "/_matrix/client/(r0|v3|unstable)/register/available$"
- - "/_matrix/client/v1/register/m.login.registration_token/validity$"
-
- # Event sending requests
- - "/_matrix/client/(api/v1|r0|v3|unstable)/rooms/.*/redact"
- - "/_matrix/client/(api/v1|r0|v3|unstable)/rooms/.*/send"
- - "/_matrix/client/(api/v1|r0|v3|unstable)/rooms/.*/state/"
- # - "/_matrix/client/(api/v1|r0|v3|unstable)/rooms/.*/(join|invite|leave|ban|unban|kick)$"
- # - "/_matrix/client/(api/v1|r0|v3|unstable)/join/"
- # - "/_matrix/client/(api/v1|r0|v3|unstable)/knock/"
- - "/_matrix/client/(api/v1|r0|v3|unstable)/profile/"
-
- # # User directory search requests
- # - /_matrix/client/(r0|v3|unstable)/user_directory/search$
-
- # Worker event streams
- # See https://matrix-org.github.io/synapse/latest/workers.html#stream-writers
- #
-
- # The account_data event stream
- # - /_matrix/client/(r0|v3|unstable)/.*/tags
- # - /_matrix/client/(r0|v3|unstable)/.*/account_data
-
- # The receipts event stream
- # - /_matrix/client/(r0|v3|unstable)/rooms/.*/receipt
- # - /_matrix/client/(r0|v3|unstable)/rooms/.*/read_markers
-
- # The presence event stream
- # - /_matrix/client/(api/v1|r0|v3|unstable)/presence/
-
- paths:
- # Federation requests
- - "/_matrix/federation/v1/state_ids/"
- - "/_matrix/federation/v1/state/"
- - "/_matrix/federation/v1/event/"
- - "/_matrix/federation/v1/backfill/"
- - "/_matrix/federation/v1/get_missing_events/"
- - "/_matrix/federation/v1/publicRooms"
- - "/_matrix/federation/v1/query/"
- - "/_matrix/federation/v1/make_join/"
- - "/_matrix/federation/v1/make_leave/"
- - "/_matrix/federation/(v1|v2)/send_join/"
- - "/_matrix/federation/(v1|v2)/send_leave/"
- - "/_matrix/federation/(v1|v2)/invite/"
- - "/_matrix/federation/v1/event_auth/"
- - "/_matrix/federation/v1/timestamp_to_event/"
- - "/_matrix/federation/v1/exchange_third_party_invite/"
- - "/_matrix/federation/v1/user/devices/"
- - "/_matrix/key/v2/query"
- - "/_matrix/federation/v1/hierarchy/"
-
- # # Inbound federation transaction request
- # - /_matrix/federation/v1/send/
-
pusher:
enabled: true
appservice:
@@ -306,46 +196,6 @@ spec:
app: federation_sender
name: federation-sender-2
enabled: true
- #federation_sender_3:
- # app: federation_sender
- # name: federation-sender-3
- # enabled: true
- # federation_sender_4:
- # app: federation_sender
- # name: federation-sender-4
- # enabled: true
- # federation_sender_5:
- # app: federation_sender
- # name: federation-sender-5
- # enabled: true
- # federation_sender_6:
- # app: federation_sender
- # name: federation-sender-6
- # enabled: true
- user_dir:
- enabled: false
- name: userdir
- listeners: [client]
- csPaths:
- - /_matrix/client/(r0|v3|unstable)/user_directory/search$
- frontend_proxy:
- enabled: false
- listeners: [client]
- csPaths:
- - "/_matrix/client/(api/v1|r0|v3|unstable)/keys/upload"
- - "/_matrix/client/(api/v1|r0|v3|unstable)/presence/[^/]+/status"
-
- annotations:
- prometheus.io/scrape: "true"
- prometheus.io/path: "/_synapse/metrics"
- prometheus.io/port: "9090"
- extraEnv:
- - name: LD_PRELOAD
- value: /usr/lib/x86_64-linux-gnu/libjemalloc.so.2
- - name: SYNAPSE_CACHE_FACTOR
- value: "20.0"
- #- name: SYNAPSE_ASYNC_IO_REACTOR
- # value: "true"
synapse:
tolerations: