synapse-product/synapse/app
Erik Johnston 1fb9a2d0bf
Limit how often GC happens by time. (#9902)
Synapse can be quite memory intensive, and unless care is taken to tune
the GC thresholds it can end up thrashing, causing noticable performance
problems for large servers. We fix this by limiting how often we GC a
given generation, regardless of current counts/thresholds.

This does not help with the reverse problem where the thresholds are set
too high, but that should only happen in situations where they've been
manually configured.

Adds a `gc_min_seconds_between` config option to override the defaults.

Fixes #9890.
2021-05-05 16:53:45 +01:00
..
__init__.py Remove redundant "coding: utf-8" lines (#9786) 2021-04-14 15:34:27 +01:00
_base.py Improved validation for received requests (#9817) 2021-04-23 19:20:44 +01:00
admin_cmd.py Improved validation for received requests (#9817) 2021-04-23 19:20:44 +01:00
appservice.py Remove redundant "coding: utf-8" lines (#9786) 2021-04-14 15:34:27 +01:00
client_reader.py Remove redundant "coding: utf-8" lines (#9786) 2021-04-14 15:34:27 +01:00
event_creator.py Remove redundant "coding: utf-8" lines (#9786) 2021-04-14 15:34:27 +01:00
federation_reader.py Remove redundant "coding: utf-8" lines (#9786) 2021-04-14 15:34:27 +01:00
federation_sender.py Remove redundant "coding: utf-8" lines (#9786) 2021-04-14 15:34:27 +01:00
frontend_proxy.py Remove redundant "coding: utf-8" lines (#9786) 2021-04-14 15:34:27 +01:00
generic_worker.py Limit how often GC happens by time. (#9902) 2021-05-05 16:53:45 +01:00
homeserver.py Limit how often GC happens by time. (#9902) 2021-05-05 16:53:45 +01:00
media_repository.py Remove redundant "coding: utf-8" lines (#9786) 2021-04-14 15:34:27 +01:00
phone_stats_home.py Add phone home stats for encrypted messages. (#9283) 2021-02-01 17:06:22 +00:00
pusher.py Remove redundant "coding: utf-8" lines (#9786) 2021-04-14 15:34:27 +01:00
synchrotron.py Remove redundant "coding: utf-8" lines (#9786) 2021-04-14 15:34:27 +01:00
user_dir.py Remove redundant "coding: utf-8" lines (#9786) 2021-04-14 15:34:27 +01:00