Feature #15789
closedGive requested scrubs a higher priority
0%
Description
It seems like requested scrubs will wait behind scheduled scrubs, that's not great. Since requested scrubs are already inserted into sched_scrub_pg with an immediate deadline they will be the next to start. Since we can't currently interrupt a scrub which is already in progress there is nothing more to do there. Later in the process we schedule actions with the same priority as regular scrubs. Increasing the priority should be helpful.
Updated by Wanlong Gao almost 8 years ago
Samuel Just wrote:
It seems like requested scrubs will wait behind scheduled scrubs, that's not great.
Samuel, do you mean requested replica scrub map? I find that the priority of requested replica scrub map op is PRIO_DEFAULT(127), it is higher than default scrub priority(5). So the requested scrub map will be processed first. But what do you mean? would you explain more? thank you. ;)
Updated by Wanlong Gao over 7 years ago
Wanlong Gao wrote:
Samuel Just wrote:
It seems like requested scrubs will wait behind scheduled scrubs, that's not great.
Samuel, do you mean requested replica scrub map? I find that the priority of requested replica scrub map op is PRIO_DEFAULT(127), it is higher than default scrub priority(5). So the requested scrub map will be processed first. But what do you mean? would you explain more? thank you. ;)
Ah, sorry, I understand the requested scrubs means "must_scrub".
Updated by Wanlong Gao over 7 years ago
Trying to fix by PR: https://github.com/ceph/ceph/pull/10426 (closed)
Updated by David Zafman about 7 years ago
- Status changed from New to In Progress
- Assignee set to David Zafman
Updated by David Zafman about 7 years ago
- Subject changed from make requested scrubs jump the queue to Give requested scrubs a higher priority
- Description updated (diff)
Updated by David Zafman about 7 years ago
- Status changed from In Progress to Pending Backport
- Backport set to kraken, jewel
Updated by Nathan Cutler about 7 years ago
- Copied to Backport #19685: kraken: Give requested scrubs a higher priority added
Updated by Nathan Cutler about 7 years ago
- Copied to Backport #19686: jewel: Give requested scrubs a higher priority added
Updated by Nathan Cutler almost 7 years ago
- Status changed from Pending Backport to Resolved