]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
rgw: orphan: introduce a detailed mode (off by default)
authorAbhishek Lekshmanan <abhishek@suse.com>
Wed, 13 Feb 2019 12:45:47 +0000 (13:45 +0100)
committerNathan Cutler <ncutler@suse.com>
Thu, 30 May 2019 13:05:34 +0000 (15:05 +0200)
commit3254b797a5add674f2cc9bbbea9ab4b4f89b3c92
tree06decb415d1cbc28a566d310301605099d424895
parenteb6252a1e2bb1b0869dd508a57d298805c13f9e0
rgw: orphan: introduce a detailed mode (off by default)

We currently stat objects that fit in a head as well and also log them, since we
skip head objects anyway in the rados list output this commit avoids logging
these objects if the object size itself is less than the manifest head size.

Additionally we avoid the stat call itself from the list object output when the
object fits within the chunk size. This behaviour can be unset by setting the
detailed mode which can help in older clusters where the head used to have a
different size.

The old behaviour in both the cases can be turned on by setting the detailed
flag which can be passed on from rgw-admin. Avoiding stat calls and not logging
the head objects significantly reduces the IO activity on clusters which have a
huge percentage of objects that fit in a head.

Signed-off-by: Abhishek Lekshmanan <abhishek@suse.com>
(cherry picked from commit ca12ecbfed0f65f206e8ad05125fac93c5a5ed0f)
src/rgw/rgw_orphan.cc
src/rgw/rgw_orphan.h