summary refs log tree commit diff
path: root/synapse/config/state_compressor.py
diff options
context:
space:
mode:
authorAzrenbeth <7782548+Azrenbeth@users.noreply.github.com>2021-09-28 13:50:57 +0100
committerAzrenbeth <7782548+Azrenbeth@users.noreply.github.com>2021-09-28 13:50:57 +0100
commitd6b511e669eeefeb1dfa634c20bb6f1e552a9931 (patch)
tree27aa217bb202066c75c08e03c1cd07e085796a82 /synapse/config/state_compressor.py
parentBetter search for state database (diff)
downloadsynapse-d6b511e669eeefeb1dfa634c20bb6f1e552a9931.tar.xz
Tidy up documentation a bit
Diffstat (limited to 'synapse/config/state_compressor.py')
-rw-r--r--synapse/config/state_compressor.py5
1 files changed, 3 insertions, 2 deletions
diff --git a/synapse/config/state_compressor.py b/synapse/config/state_compressor.py

index 40390fbf52..92a0b7e533 100644 --- a/synapse/config/state_compressor.py +++ b/synapse/config/state_compressor.py
@@ -36,7 +36,7 @@ class StateCompressorConfig(Config): raise ConfigError from e self.compressor_chunk_size = compressor_config.get("chunk_size") or 500 - self.compressor_number_of_chunks = compressor_config.get("number_of_chunks") or 50 + self.compressor_number_of_chunks = compressor_config.get("number_of_chunks") or 100 self.compressor_default_levels = ( compressor_config.get("default_levels") or "100,50,25" ) @@ -67,7 +67,7 @@ class StateCompressorConfig(Config): # #chunk_size: 1000 - # The number of chunks to compress on each run. Defaults to 50. + # The number of chunks to compress on each run. Defaults to 100. # #number_of_chunks: 1 @@ -87,6 +87,7 @@ _STATE_COMPRESSOR_SCHEMA = { "properties": { "enabled": {"type": "boolean"}, "chunk_size": {"type": "number"}, + "number_of_chunks": {"type": "number"}, "default_levels": {"type": "string"}, "time_between_runs": {"type": "string"}, },