]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
rgw: in bucket reshard list, clarify new num shards is tentative 45504/head
authorJ. Eric Ivancich <ivancich@redhat.com>
Wed, 22 Dec 2021 19:45:59 +0000 (14:45 -0500)
committerCory Snyder <csnyder@iland.com>
Thu, 17 Mar 2022 13:42:46 +0000 (09:42 -0400)
commitcdaabd04cf9e3550de619e3dadc596106fdebae2
tree876b2685f310048cf54d46a83f5f589c6ee102af
parentbf57e1631607dfb8446e9a2061a855c6cab4c09b
rgw: in bucket reshard list, clarify new num shards is tentative

With dynamic bucket index resharding, when the average number of
objects per shard exceeds the configured value, that bucket is
scheduled for reshard. That bucket may receive more new objects before
the resharding takes place. As a result, the existing code
re-calculates the number of new shards just prior to resharding,
rather than waste a resharding opportunity with too low a value.

The same holds true for a user-scheduled resharding.

A user reported confusion that the number reported in `radosgw-admin
reshard list` wasn't the number that the reshard operation ultimately
used. This commit makes it clear that the new number of shards is
"tentative". And test_rgw_reshard.py is updated to reflect this
altered output.

Additionally this commit adds some modernization and efficiency to the
"reshard list" subcommand.

Signed-off-by: J. Eric Ivancich <ivancich@redhat.com>
(cherry picked from commit aa0071ce8b8594b92c0bed2be7a9bf35bfff8cac)
qa/workunits/rgw/test_rgw_reshard.py
src/cls/rgw/cls_rgw_types.cc
src/rgw/rgw_admin.cc