sharder: support rows_per_shard in config file
Make rows_per_shard an option that can be configured in the [container-sharder] section of a config file. For auto-sharding, this option was previously hard-coded to shard_container_threshold // 2. The swift-manage-shard-ranges command line tool already supported rows_per_shard on the command line and will now also load it from a config file if specified. Any value given on the command line takes precedence over any value found in a config file. Change-Id: I820e133a4e24400ed1e6a87ebf357f7dac463e38
This commit is contained in:
6 changed files with 45 additions and 18 deletions
@@ -319,13 +319,15 @@ shard_container_threshold 1000000 This defines the
enabled will start to
shard. This also
indirectly determines the
initial nominal size of
shard containers, which
is shard_container_threshold//2,
as well as determining
the thresholds for
shrinking and merging
shard containers.
the defaults for
rows_per_shard,
shrink_threshold and
expansion_limit.
rows_per_shard 500000 This defines the initial
nominal size of shard
containers. The default
is shard_container_threshold // 2.
shrink_threshold This defines the
object count below which
Reference in New Issue
Block a user
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.