Feature #41363
open
Allow user to cancel scrub requests
Added by David Zafman over 4 years ago.
Updated almost 4 years ago.
Description
If a user requests multiple scrubs or deep-scrubs, they should be able to cancel the requests. It may be that they notice client performance affects. This is more important for backport once QOS enhancements will keep scrub from having any reduction in client performance.
- Related to Bug #46275: Cancellation of on-going scrubs added
Possible implementations:
1. Cancel command like ceph pg 1.0 cancel-scrub (could cancel any scrub/deep-scrub/repair on pg 1.0)
So we don't need cancel-deep-scrub or cancel-repair
2. When setting noscrub/nodeep-scrub we could cancel running scrubs but allow new user requested scrubs
May need hacky implementation
Not intuitive
How do you cancel a requested scrub after noscrub is already set? So this may lead us to cancel-scrub command
We want to allow manual scrubs while noscrub is set for 2 reasons
Manual scrubbers (set noscrub and nodeep-scrub) use a cronjob and/or running process to start scrubs
A user might want a scrub like repair on a cluster without having to wait if OSDs have other scrub reservations
Set noscrub/nodeep-scrub and then ceph pg x.x repair. Works better with https://tracker.ceph.com/issues/46275.
- Related to Feature #46379: Add a force-scrub commands to bump already running scrubs added
- Related to Feature #39362: ignore osd_max_scrubs for forced repair added
Also available in: Atom
PDF