summary refs log tree commit diff
path: root/synapse/app/synchrotron.py
diff options
context:
space:
mode:
authorMark Haines <mark.haines@matrix.org>2016-06-17 11:48:12 +0100
committerMark Haines <mark.haines@matrix.org>2016-06-17 11:48:12 +0100
commit8c75040c25495bf29f4c76ca0fcc032975210012 (patch)
treea2fda0c2d2057830837613f5a102bc774300ce1d /synapse/app/synchrotron.py
parentMerge pull request #874 from matrix-org/markjh/worker_config (diff)
downloadsynapse-8c75040c25495bf29f4c76ca0fcc032975210012.tar.xz
Fix setting gc thresholds in the workers
Diffstat (limited to 'synapse/app/synchrotron.py')
-rw-r--r--synapse/app/synchrotron.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/synapse/app/synchrotron.py b/synapse/app/synchrotron.py
index 160db8637e..8cf5bbbb6d 100644
--- a/synapse/app/synchrotron.py
+++ b/synapse/app/synchrotron.py
@@ -56,6 +56,7 @@ from daemonize import Daemonize
 import sys
 import logging
 import contextlib
+import gc
 import ujson as json
 
 logger = logging.getLogger("synapse.app.synchrotron")
@@ -436,7 +437,7 @@ def start(config_options):
             logger.info("Running")
             change_resource_limit(config.soft_file_limit)
             if config.gc_thresholds:
-                ss.set_threshold(config.gc_thresholds)
+                gc.set_threshold(*config.gc_thresholds)
             reactor.run()
 
     def start():