Add hacky cache factor override system

This commit is contained in:
Erik Johnston 2018-02-21 20:49:55 +00:00 committed by Richard van der Hoff
parent 5dbf305444
commit 042eedfa2b
4 changed files with 18 additions and 4 deletions

View file

@ -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