]> git.apps.os.sepia.ceph.com Git - ceph-ci.git/commit
rgw: in bucket reshard list, clarify new num shards is tentative
authorJ. Eric Ivancich <ivancich@redhat.com>
Wed, 22 Dec 2021 19:45:59 +0000 (14:45 -0500)
committerJ. Eric Ivancich <ivancich@redhat.com>
Fri, 28 Jan 2022 17:05:54 +0000 (12:05 -0500)
commitaa0071ce8b8594b92c0bed2be7a9bf35bfff8cac
treea55b62c82d30079d3f50febe3c363e349393ccfa
parentbe82f81503417c3dc5d4dad90828f47a423444e5
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>
qa/workunits/rgw/test_rgw_reshard.py
src/cls/rgw/cls_rgw_types.cc
src/rgw/rgw_admin.cc