From 773b63311871075a9b29999ecd59e6d62dd8ffa1 Mon Sep 17 00:00:00 2001 From: Tim Burke Date: Tue, 29 May 2018 10:48:51 -0700 Subject: [PATCH] Change default sharding threshold to 1,000,000 objects ...instead of 10,000,000. The sample configs were already using one million, all of our testing with non-SAIO containers was done with one million, and the resulting container DBs were around 100MB which seems like a comfortable size. Pretty sure this was just a typo during some code cleanup. Change-Id: Icd31f9d8efaac2d5dc0f021cad550687859558b9 --- swift/container/sharder.py | 2 +- test/unit/container/test_sharder.py | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/swift/container/sharder.py b/swift/container/sharder.py index 06c2b6d9db..d282d7b6da 100644 --- a/swift/container/sharder.py +++ b/swift/container/sharder.py @@ -287,7 +287,7 @@ class CleavingContext(object): self.max_row == self.cleave_to_row)) -DEFAULT_SHARD_CONTAINER_THRESHOLD = 10000000 +DEFAULT_SHARD_CONTAINER_THRESHOLD = 1000000 DEFAULT_SHARD_SHRINK_POINT = 25 DEFAULT_SHARD_MERGE_POINT = 75 diff --git a/test/unit/container/test_sharder.py b/test/unit/container/test_sharder.py index 353d980bbf..751b621ed5 100644 --- a/test/unit/container/test_sharder.py +++ b/test/unit/container/test_sharder.py @@ -135,8 +135,8 @@ class TestSharder(BaseTestSharder): 'reclaim_age': 86400 * 7, 'shard_shrink_point': 0.25, 'shrink_merge_point': 0.75, - 'shard_container_threshold': 10000000, - 'split_size': 5000000, + 'shard_container_threshold': 1000000, + 'split_size': 500000, 'cleave_batch_size': 2, 'scanner_batch_size': 10, 'rcache': '/var/cache/swift/container.recon',