Skip to content
This repository has been archived by the owner on Apr 26, 2024. It is now read-only.

Commit

Permalink
Master process needs to apply cache config too.
Browse files Browse the repository at this point in the history
  • Loading branch information
David Robertson committed May 11, 2022
1 parent f6e1394 commit 55963ac
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
3 changes: 3 additions & 0 deletions synapse/app/_base.py
Original file line number Diff line number Diff line change
Expand Up @@ -430,6 +430,9 @@ def run_sighup(*args: Any, **kwargs: Any) -> None:
register_sighup(refresh_certificate, hs)
register_sighup(reload_cache_config, hs.config)

# Apply the cache config.
hs.config.caches.resize_all_caches()

# Load the certificate from disk.
refresh_certificate(hs)

Expand Down
1 change: 0 additions & 1 deletion synapse/app/generic_worker.py
Original file line number Diff line number Diff line change
Expand Up @@ -459,7 +459,6 @@ def start(config_options: List[str]) -> None:

synapse.events.USE_FROZEN_DICTS = config.server.use_frozen_dicts
synapse.util.caches.TRACK_MEMORY_USAGE = config.caches.track_memory_usage
config.caches.resize_all_caches()

if config.server.gc_seconds:
synapse.metrics.MIN_TIME_BETWEEN_GCS = config.server.gc_seconds
Expand Down

0 comments on commit 55963ac

Please sign in to comment.