New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
rgw: create a tool for orphaned objects cleanup #5717
Merged
Merged
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
ghost
self-assigned this
Aug 30, 2015
ghost
added this to the hammer milestone
Aug 30, 2015
ghost
pushed a commit
that referenced
this pull request
Aug 30, 2015
…anup Reviewed-by: Loic Dachary <ldachary@redhat.com>
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 <pavan.rallabhandi@sandisk.com> (cherry picked from commit b3c3a24)
Signed-off-by: Pavan Rallabhandi <pavan.rallabhandi@sandisk.com> (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 <yehuda@redhat.com> (cherry picked from commit 767fc29)
for the orphan search tool Signed-off-by: Yehuda Sadeh <yehuda@redhat.com> (cherry picked from commit 16a2dbd)
An async functionality that stats object. Signed-off-by: Yehuda Sadeh <yehuda@redhat.com> (cherry picked from commit 13adf3c)
Read objects manifest. So that we could keep the relevant info later. Signed-off-by: Yehuda Sadeh <yehuda@redhat.com> (cherry picked from commit 05a953d)
Signed-off-by: Yehuda Sadeh <yehuda@redhat.com> (cherry picked from commit 7c1aa83)
only keep part of the oid name if it is in a namespace. Signed-off-by: Yehuda Sadeh <yehuda@redhat.com> (cherry picked from commit 75902fd)
Signed-off-by: Yehuda Sadeh <yehuda@redhat.com> (cherry picked from commit f19b2f0)
Signed-off-by: Yehuda Sadeh <yehuda@redhat.com> (cherry picked from commit 1bc63d9)
Now works with multipart uploads. Signed-off-by: Yehuda Sadeh <yehuda@redhat.com> (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 <yehuda@redhat.com> (cherry picked from commit 20bd490)
Signed-off-by: Yehuda Sadeh <yehuda@redhat.com> (cherry picked from commit d7d1171)
Signed-off-by: Yehuda Sadeh <yehuda@redhat.com> (cherry picked from commit f899310)
A command to remove orphans data Signed-off-by: Yehuda Sadeh <yehuda@redhat.com> (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 <yehuda@redhat.com> (cherry picked from commit 66b0090)
No need for --init-search Signed-off-by: Yehuda Sadeh <yehuda@redhat.com> (cherry picked from commit 4980cbd)
Signed-off-by: Yehuda Sadeh <yehuda@redhat.com> (cherry picked from commit d8ce04d)
Signed-off-by: Yehuda Sadeh <yehuda@redhat.com> (cherry picked from commit cac57ca)
Signed-off-by: Yehuda Sadeh <yehuda@redhat.com> (cherry picked from commit 5528f21)
Signed-off-by: Yehuda Sadeh <yehuda@redhat.com> (cherry picked from commit 47edec3)
Signed-off-by: Yehuda Sadeh <yehuda@redhat.com> (cherry picked from commit 7cf1f37)
ghost
pushed a commit
that referenced
this pull request
Aug 30, 2015
…anup Reviewed-by: Loic Dachary <ldachary@redhat.com>
ghost
pushed a commit
that referenced
this pull request
Aug 30, 2015
…anup Reviewed-by: Loic Dachary <ldachary@redhat.com>
ghost
pushed a commit
that referenced
this pull request
Aug 31, 2015
…anup Reviewed-by: Loic Dachary <ldachary@redhat.com>
ghost
pushed a commit
that referenced
this pull request
Aug 31, 2015
…anup Reviewed-by: Loic Dachary <ldachary@redhat.com>
ghost
pushed a commit
that referenced
this pull request
Aug 31, 2015
…anup Reviewed-by: Loic Dachary <ldachary@redhat.com>
ghost
mentioned this pull request
Sep 1, 2015
ghost
pushed a commit
that referenced
this pull request
Sep 1, 2015
…anup Reviewed-by: Loic Dachary <ldachary@redhat.com>
ghost
pushed a commit
that referenced
this pull request
Sep 2, 2015
…anup Reviewed-by: Loic Dachary <ldachary@redhat.com>
@oritwas does this backport look good to merge ? It passed a run of the hammer rgw suite ( see http://pulpito.ceph.com/loic-2015-09-01_17:25:32-rgw-hammer-backports---basic-multi/ ). |
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 <owasserm@redhat.com>
This pull request was closed.
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
http://tracker.ceph.com/issues/12591