swift/doc/source/config
Matthew Oliver fb186f6710 Add a config file option to swift-manage-shard-ranges
While working on the shrinking recon drops, we want to display numbers
that directly relate to how tool should behave. But currently all
options of the s-m-s-r tool is driven by cli options.

This creates a disconnect, defining what should be used in the sharder
and in the tool via options are bound for failure. It would be much
better to be able to define the required default options for your
environment in one place that both the sharder and tool could use.

This patch does some refactoring and adding max_shrinking and
max_expanding options to the sharding config. As well as adds a
--config option to the tool.

The --config option expects a config with at '[container-sharder]'
section. It only supports the shard options:
 - max_shrinking
 - max_expanding
 - shard_container_threshold
 - shard_shrink_point
 - shard_merge_point

The latter 2 are used to generate the s-m-s-r's:
 - shrink_threshold
 - expansion_limit
 - rows_per_shard

Use of cli arguments take precedence over that of the config.

Change-Id: I4d0147ce284a1a318b3cd88975e060956d186aec
2021-03-12 10:49:46 +11:00
..
account_server_config.rst Move config option documentation to separate docs 2020-11-05 14:40:05 +00:00
container_server_config.rst Add a config file option to swift-manage-shard-ranges 2021-03-12 10:49:46 +11:00
index.rst Move config option documentation to separate docs 2020-11-05 14:40:05 +00:00
object_server_config.rst Move config option documentation to separate docs 2020-11-05 14:40:05 +00:00
proxy_server_config.rst Move config option documentation to separate docs 2020-11-05 14:40:05 +00:00
swift_common_config.rst Move config option documentation to separate docs 2020-11-05 14:40:05 +00:00