diff options
author | Richard van der Hoff <1389908+richvdh@users.noreply.github.com> | 2018-06-04 17:19:33 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-06-04 17:19:33 +0100 |
commit | 28b0490dfdce04c584d36ae409abc42b6ac419b2 (patch) | |
tree | 4f42fe1eaf4a2214d8e64721b446930e91ca6863 /synapse/app/synctl.py | |
parent | Fix replication metrics (diff) | |
parent | Add hacky cache factor override system (diff) | |
download | synapse-28b0490dfdce04c584d36ae409abc42b6ac419b2.tar.xz |
Merge pull request #3334 from matrix-org/rav/cache_factor_override
Cache factor override system for specific caches
Diffstat (limited to 'synapse/app/synctl.py')
-rwxr-xr-x | synapse/app/synctl.py | 4 |
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 |