summary refs log tree commit diff
path: root/changelog.d/9902.feature
diff options
context:
space:
mode:
authorErik Johnston <erik@matrix.org>2021-05-05 16:53:45 +0100
committerGitHub <noreply@github.com>2021-05-05 16:53:45 +0100
commit1fb9a2d0bf2506ca6e5343cb340a441585ca1c07 (patch)
tree20779cc0b54efac7c36412bf49e050ef3557b894 /changelog.d/9902.feature
parentDon't set the external cache if its been done recently (#9905) (diff)
downloadsynapse-1fb9a2d0bf2506ca6e5343cb340a441585ca1c07.tar.xz
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.
Diffstat (limited to 'changelog.d/9902.feature')
-rw-r--r--changelog.d/9902.feature1
1 files changed, 1 insertions, 0 deletions
diff --git a/changelog.d/9902.feature b/changelog.d/9902.feature
new file mode 100644
index 0000000000..4d9f324d4e
--- /dev/null
+++ b/changelog.d/9902.feature
@@ -0,0 +1 @@
+Add limits to how often Synapse will GC, ensuring that large servers do not end up GC thrashing if `gc_thresholds` has not been correctly set.