Skip to content
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

osd: add snap trim reservation and re-implement osd_snap_trim_sleep #13594

Merged
merged 4 commits into from Feb 24, 2017

Conversation

athanatos
Copy link
Contributor

This patch introduces an AsyncReserver for snap trimming to limit the
number of pgs on any single OSD which can be trimming, as with backfill.
Unlike backfill, we don't take remote reservations on the assumption
that the set of pgs with trimming work to do is already well
distributed, so it doesn't seem worth the implementation overhead to get
reservations from the peers as well.

Signed-off-by: Samuel Just <sjust@redhat.com>
Signed-off-by: Samuel Just <sjust@redhat.com>
Signed-off-by: Samuel Just <sjust@redhat.com>
Rather than blocking the main op queue, just pause for that amount of
time between state machine cycles.

Also, add osd_snap_trim_sleep to a few of the thrasher yamls.

Signed-off-by: Samuel Just <sjust@redhat.com>
@athanatos athanatos changed the title Wip snap trim sleep osd: add snap trim reservation and re-implement osd_snap_trim_sleep Feb 22, 2017
Copy link
Member

@jdurgin jdurgin left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

looks good. now that snap trimming is a visible state, we should make a small sleep the default too

@athanatos athanatos merged commit 44b26f6 into ceph:master Feb 24, 2017
@stevetaylor-stc
Copy link

Is there any plan to backport this PR to Jewel? I might be interested in utilizing it in Jewel. I could contribute to the effort if necessary. And by contributing I mean I would be willing to do it if there isn't anyone else already doing it, though I would likely need some guidance.

@jdurgin
Copy link
Member

jdurgin commented Mar 9, 2017

@stevetaylor-stc yes, we should backport this. The backport team will pick this up now that there's an issue for it: http://tracker.ceph.com/issues/19241

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
3 participants