summary refs log tree commit diff
path: root/synapse/app/synctl.py
diff options
context:
space:
mode:
authorErik Johnston <erik@matrix.org>2018-02-21 20:49:55 +0000
committerRichard van der Hoff <richard@matrix.org>2018-06-04 15:39:28 +0100
commit042eedfa2b56caef0d4873583e768ca3664a881f (patch)
tree304633d21c65ea0f861dad8f3b22fe51dbccded5 /synapse/app/synctl.py
parentPut python's logs into Trial when running unit tests (#3319) (diff)
downloadsynapse-042eedfa2b56caef0d4873583e768ca3664a881f.tar.xz
Add hacky cache factor override system
Diffstat (limited to 'synapse/app/synctl.py')
-rwxr-xr-xsynapse/app/synctl.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/synapse/app/synctl.py b/synapse/app/synctl.py
index 712dfa870e..56ae086128 100755
--- a/synapse/app/synctl.py
+++ b/synapse/app/synctl.py
@@ -171,6 +171,10 @@ def main():
     if cache_factor:
         os.environ["SYNAPSE_CACHE_FACTOR"] = str(cache_factor)
 
+    cache_factors = config.get("synctl_cache_factors", {})
+    for cache_name, factor in cache_factors.iteritems():
+        os.environ["SYNAPSE_CACHE_FACTOR_" + cache_name.upper()] = str(factor)
+
     worker_configfiles = []
     if options.worker:
         start_stop_synapse = False