diff options
author | Rory& <root@rory.gay> | 2024-09-10 02:09:56 +0200 |
---|---|---|
committer | Rory& <root@rory.gay> | 2024-09-10 02:09:56 +0200 |
commit | f1fd6bf1fdff9b701e48f6088d7fcd03e93667d1 (patch) | |
tree | a9c622f96fea935f6ece48d77401fbf159d75592 | |
parent | Synapse worker changes (diff) | |
download | Rory-Open-Architecture-f1fd6bf1fdff9b701e48f6088d7fcd03e93667d1.tar.xz |
Synapse worker changes
5 files changed, 8 insertions, 5 deletions
diff --git a/host/Rory-nginx/services/matrix/synapse/caches.nix b/host/Rory-nginx/services/matrix/synapse/caches.nix index 16fe0fc..9fa735e 100644 --- a/host/Rory-nginx/services/matrix/synapse/caches.nix +++ b/host/Rory-nginx/services/matrix/synapse/caches.nix @@ -13,8 +13,8 @@ caches = { global_factor = 500000.0; cache_entry_ttl = "24h"; - expire_caches = false; - sync_response_cache_duration = "15s"; + expire_caches = true; + sync_response_cache_duration = "15m"; cache_autotuning = { max_cache_memory_usage = "65536M"; target_cache_memory_usage = "32768M"; diff --git a/host/Rory-nginx/services/matrix/synapse/synapse-main.nix b/host/Rory-nginx/services/matrix/synapse/synapse-main.nix index 3bc185b..68ad7d6 100755 --- a/host/Rory-nginx/services/matrix/synapse/synapse-main.nix +++ b/host/Rory-nginx/services/matrix/synapse/synapse-main.nix @@ -52,6 +52,9 @@ # rooms_to_exclude_from_sync - default=[] - room ids... # third_party_event_rules - https://github.com/element-hq/synapse/blob/develop/synapse/config/third_party_event_rules.py - ??? # default_power_level_content_override - default=None - https://github.com/element-hq/synapse/blob/develop/synapse/config/room.py#L73 + + dummy_devents_treshold = 2; + cleanup_extremities_with_dummy_events = true; enable_registration = true; registration_requires_token = true; diff --git a/host/Rory-nginx/services/matrix/synapse/workers/client-reader.nix b/host/Rory-nginx/services/matrix/synapse/workers/client-reader.nix index 60c48a2..9a0aafa 100644 --- a/host/Rory-nginx/services/matrix/synapse/workers/client-reader.nix +++ b/host/Rory-nginx/services/matrix/synapse/workers/client-reader.nix @@ -2,7 +2,7 @@ let cfg = config.services.matrix-synapse; - dbGroup = "small"; + dbGroup = "medium"; workers = lib.range 0 (cfg.clientReaders - 1); workerName = "client_reader"; workerRoutes = { diff --git a/host/Rory-nginx/services/matrix/synapse/workers/federation-sender.nix b/host/Rory-nginx/services/matrix/synapse/workers/federation-sender.nix index 07af127..468916e 100644 --- a/host/Rory-nginx/services/matrix/synapse/workers/federation-sender.nix +++ b/host/Rory-nginx/services/matrix/synapse/workers/federation-sender.nix @@ -1,7 +1,7 @@ { config, lib, ... }: let cfg = config.services.matrix-synapse; - dbGroup = "solo"; + dbGroup = "medium"; workers = lib.range 0 (cfg.federationSenders - 1); workerName = "federation_sender"; workerRoutes = { diff --git a/host/Rory-nginx/services/matrix/synapse/workers/sync.nix b/host/Rory-nginx/services/matrix/synapse/workers/sync.nix index 6892847..3fd07da 100644 --- a/host/Rory-nginx/services/matrix/synapse/workers/sync.nix +++ b/host/Rory-nginx/services/matrix/synapse/workers/sync.nix @@ -4,7 +4,7 @@ let cfg = config.services.matrix-synapse; dbGroup = "small"; workers = lib.range 0 (cfg.syncWorkers - 1); - workerName = "sync"; + workerName = "medium"; workerRoutes = { client = [ "~ ^/_matrix/client/(v2_alpha|r0|v3)/sync$" |