From: Mark Kogan Date: Tue, 11 Dec 2018 17:43:32 +0000 (-0500) Subject: rgw: update the "radosgw-admin reshard status" X-Git-Tag: v13.2.7~209^2~1 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=14a35c00d5d712769a0bf77c79042d470a85d2e9;p=ceph.git rgw: update the "radosgw-admin reshard status" command documentation with expected output examples Fixes: http://tracker.ceph.com/issues/37615 Signed-off-by: Mark Kogan (cherry picked from commit 8565ec0db69223ae71766ba000eecc0d2f7d14c2) --- diff --git a/doc/radosgw/dynamicresharding.rst b/doc/radosgw/dynamicresharding.rst index 03eb1fdcc759..db5bc7121741 100644 --- a/doc/radosgw/dynamicresharding.rst +++ b/doc/radosgw/dynamicresharding.rst @@ -83,6 +83,54 @@ Bucket resharding status # radosgw-admin reshard status --bucket +The output is a json array of 3 objects (reshard_status, new_bucket_instance_id, num_shards) per shard. + +For example, the output at different Dynamic Resharding stages is shown below: + +``1. Before resharding occurred:`` +:: + + [ + { + "reshard_status": "CLS_RGW_RESHARD_NONE", + "new_bucket_instance_id": "", + "num_shards": -1 + } + ] + +``2. During resharding:`` +:: + + [ + { + "reshard_status": "CLS_RGW_RESHARD_IN_PROGRESS", + "new_bucket_instance_id": "1179f470-2ebf-4630-8ec3-c9922da887fd.8652.1", + "num_shards": 2 + }, + { + "reshard_status": "CLS_RGW_RESHARD_IN_PROGRESS", + "new_bucket_instance_id": "1179f470-2ebf-4630-8ec3-c9922da887fd.8652.1", + "num_shards": 2 + } + ] + +``3, After resharding completed:`` +:: + + [ + { + "reshard_status": "CLS_RGW_RESHARD_NONE", + "new_bucket_instance_id": "", + "num_shards": -1 + }, + { + "reshard_status": "CLS_RGW_RESHARD_NONE", + "new_bucket_instance_id": "", + "num_shards": -1 + } + ] + + Cancel pending bucket resharding --------------------------------