Skip to content

rgw: create a tool for orphaned objects cleanup - #5717

Merged
22 commits merged into
hammerfrom
unknown repository
Sep 3, 2015
Merged

22 commits merged into
hammerfrom
unknown repository

Conversation

@ghost ghost self-assigned this Aug 30, 2015
@ghost ghost added this to the hammer milestone Aug 30, 2015
@ghost ghost added bug-fix rgw labels Aug 30, 2015
@ghost

ghost commented Aug 30, 2015

Copy link
Copy Markdown
Author

depends on the 7c43e06 commit from #5612 which is included in this pull request as 8da2fb1

Pavan Rallabhandi and others added 22 commits August 30, 2015 17:27
Having a configurable number of RADOS handles is resulting
in significant performance boost for all types of workloads.
Each RGW worker thread would now get to pick a RADOS handle
for its lifetime, from the available bunch.

Signed-off-by: Pavan Rallabhandi <[email protected]>
(cherry picked from commit b3c3a24)
Signed-off-by: Pavan Rallabhandi <[email protected]>
(cherry picked from commit 7476e94)
So far doesn't do much, iterate through all objects in a specific pool
data, store it in a sharded index.

Signed-off-by: Yehuda Sadeh <[email protected]>
(cherry picked from commit 767fc29)
for the orphan search tool

Signed-off-by: Yehuda Sadeh <[email protected]>
(cherry picked from commit 16a2dbd)
An async functionality that stats object.

Signed-off-by: Yehuda Sadeh <[email protected]>
(cherry picked from commit 13adf3c)
Read objects manifest. So that we could keep the relevant info later.

Signed-off-by: Yehuda Sadeh <[email protected]>
(cherry picked from commit 05a953d)
Signed-off-by: Yehuda Sadeh <[email protected]>
(cherry picked from commit 7c1aa83)
only keep part of the oid name if it is in a namespace.

Signed-off-by: Yehuda Sadeh <[email protected]>
(cherry picked from commit 75902fd)
Signed-off-by: Yehuda Sadeh <[email protected]>
(cherry picked from commit f19b2f0)
Signed-off-by: Yehuda Sadeh <[email protected]>
(cherry picked from commit 1bc63d9)
Now works with multipart uploads.

Signed-off-by: Yehuda Sadeh <[email protected]>
(cherry picked from commit fa61ea2)
list_objects() now uses parse_raw_oid(), so that it can set the correct
namespace. It only affects users of the function that want to get all
objects in bucket, regardless to the namespace associated with it. This
makes it so that the orphan code actually works now with namespaced
objects, and with special named objects (namely, start with underscore).

Signed-off-by: Yehuda Sadeh <[email protected]>
(cherry picked from commit 20bd490)
Signed-off-by: Yehuda Sadeh <[email protected]>
(cherry picked from commit d7d1171)
Signed-off-by: Yehuda Sadeh <[email protected]>
(cherry picked from commit f899310)
A command to remove orphans data

Signed-off-by: Yehuda Sadeh <[email protected]>
(cherry picked from commit 55d6f5e)
We don't want to report new objects as leaked, because they might just
be written, and waiting to be linked to a new object. The number of
seconds prior to the job initialization can be cofigured through
--orphan-stale-secs (by default it's 24h).

Signed-off-by: Yehuda Sadeh <[email protected]>
(cherry picked from commit 66b0090)
No need for --init-search

Signed-off-by: Yehuda Sadeh <[email protected]>
(cherry picked from commit 4980cbd)
Signed-off-by: Yehuda Sadeh <[email protected]>
(cherry picked from commit d8ce04d)
Signed-off-by: Yehuda Sadeh <[email protected]>
(cherry picked from commit cac57ca)
Signed-off-by: Yehuda Sadeh <[email protected]>
(cherry picked from commit 5528f21)
Signed-off-by: Yehuda Sadeh <[email protected]>
(cherry picked from commit 47edec3)
Signed-off-by: Yehuda Sadeh <[email protected]>
(cherry picked from commit 7cf1f37)
ghost pushed a commit that referenced this pull request Aug 30, 2015
ghost pushed a commit that referenced this pull request Aug 31, 2015
ghost pushed a commit that referenced this pull request Aug 31, 2015
ghost pushed a commit that referenced this pull request Sep 1, 2015
ghost pushed a commit that referenced this pull request Sep 2, 2015
@ghost

ghost commented Sep 2, 2015

Copy link
Copy Markdown
Author

@oritwas

oritwas commented Sep 3, 2015

Copy link
Copy Markdown
Member

looks good to merge

ghost pushed a commit that referenced this pull request Sep 3, 2015
rgw: create a tool for orphaned objects cleanup

Reviewed-by: Orit Wasserman <[email protected]>
@ghost
ghost merged commit 6b02be7 into ceph:hammer Sep 3, 2015
This pull request was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants