auto stop of scrubbing and deep scrubbing while backfilling or recovering
Hello,
i'm wondering if anybody has already thought about automatically stopping srub and deep-scrub in case of backfilling or recovering. I've seen several situations where scrubbing massivly raises the latency while doing backfilling or recovering.
Greets,
Stefan
Quoted 11 lines
Op 8 november 2016 om 9:35 schreef Stefan Priebe - Profihost AG <[email protected]>:
Hello,
i'm wondering if anybody has already thought about automatically stopping srub and deep-scrub in case of backfilling or recovering. I've seen several situations where scrubbing massivly raises the latency while doing backfilling or recovering.
Seems like a sane change to me, but maybe a dev has a better option. I don't think a stop is easy, but a 'noscrub' flag could be set inside the OSD.
Maybe a config option: osd_scrub_during_recovery
Defaults to true, but can be set to false by the admin.
Before a scrub starts the OSD will check if there is recovery / backfilling active on the OSD and if so it will not initiate the scrub.
Wido
Quoted 6 lines
Greets,
Stefan
--
To unsubscribe from this list: send the line "unsubscribe ceph-devel" in the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html
Quoted 15 lines · Wido den Hollander
Quoted 10 lines
Op 8 november 2016 om 9:35 schreef Stefan Priebe - Profihost AG <[email protected]>:
Hello,
i'm wondering if anybody has already thought about automatically stopping srub and deep-scrub in case of backfilling or recovering. I've seen several situations where scrubbing massivly raises the latency while doing backfilling or recovering.
Seems like a sane change to me, but maybe a dev has a better option. I don't think a stop is easy, but a 'noscrub' flag could be set inside the OSD.
Quoted 6 lines
Maybe a config option:
osd_scrub_during_recoveryDefaults to true, but can be set to false by the admin.
Before a scrub starts the OSD will check if there is recovery / backfilling active on the OSD and if so it will not initiate the scrub.
Yeah, it seems reasonable. I think there are two basic options:
- Disable scrubbing locally on each OSD if it has scrubbing PGs. Two unrelated OSDs would be free to scrub and backfill at the same time.
- Disable scrubbing globally if any pgs are backfilling. The reasoning here is that if backfilling is increasing the latency on some PGs, we don't want to increase the latency on others (by scrubbing) too.
The other consideration is that if backfil is happening it probably doesn't mean we want to prevent scrubbing indefinitely. Instead, I'd suggest increasing the scrub intervals by some factor (e.g., 2x).
The first option would probably be a change in the scrub scheduling in the OSD.
The latter could be accomplished by having the mon publish a scrub interval scaling factor in the OSDMap...
sage
Quoted 36 lines
Op 8 november 2016 om 15:19 schreef Sage Weil <[email protected]>:
Quoted 15 lines · Wido den Hollander
Quoted 10 lines
Op 8 november 2016 om 9:35 schreef Stefan Priebe - Profihost AG <[email protected]>:
Hello,
i'm wondering if anybody has already thought about automatically stopping srub and deep-scrub in case of backfilling or recovering. I've seen several situations where scrubbing massivly raises the latency while doing backfilling or recovering.
Seems like a sane change to me, but maybe a dev has a better option. I don't think a stop is easy, but a 'noscrub' flag could be set inside the OSD.
Quoted 6 lines
Maybe a config option:
osd_scrub_during_recoveryDefaults to true, but can be set to false by the admin.
Before a scrub starts the OSD will check if there is recovery / backfilling active on the OSD and if so it will not initiate the scrub.
Yeah, it seems reasonable. I think there are two basic options:
- Disable scrubbing locally on each OSD if it has scrubbing PGs. Two unrelated OSDs would be free to scrub and backfill at the same time.
- Disable scrubbing globally if any pgs are backfilling. The reasoning here is that if backfilling is increasing the latency on some PGs, we don't want to increase the latency on others (by scrubbing) too.
Quoted 7 lines
The other consideration is that if backfil is happening it probably doesn't mean we want to prevent scrubbing indefinitely. Instead, I'd suggest increasing the scrub intervals by some factor (e.g., 2x).
The first option would probably be a change in the scrub scheduling in the OSD.
I would go for the first one. Imagine a large cluster where one backfill is busy, that would otherwise halt all scrubs while only a few OSDs are involved.
Option one isn't that hard to implement either I think.
Wido
Quoted 8 lines
The latter could be accomplished by having the mon publish a scrub interval scaling factor in the OSDMap...
sage
--
To unsubscribe from this list: send the line "unsubscribe ceph-devel" in the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html
Quoted 39 lines · Wido den Hollander
Quoted 39 lines
Op 8 november 2016 om 15:19 schreef Sage Weil <[email protected]>:
Quoted 15 lines · Wido den Hollander
Quoted 10 lines
Op 8 november 2016 om 9:35 schreef Stefan Priebe - Profihost AG <[email protected]>:
Hello,
i'm wondering if anybody has already thought about automatically stopping srub and deep-scrub in case of backfilling or recovering. I've seen several situations where scrubbing massivly raises the latency while doing backfilling or recovering.
Seems like a sane change to me, but maybe a dev has a better option. I don't think a stop is easy, but a 'noscrub' flag could be set inside the OSD.
Quoted 6 lines
Maybe a config option:
osd_scrub_during_recoveryDefaults to true, but can be set to false by the admin.
Before a scrub starts the OSD will check if there is recovery / backfilling active on the OSD and if so it will not initiate the scrub.
Yeah, it seems reasonable. I think there are two basic options:
- Disable scrubbing locally on each OSD if it has scrubbing PGs. Two unrelated OSDs would be free to scrub and backfill at the same time.
- Disable scrubbing globally if any pgs are backfilling. The reasoning here is that if backfilling is increasing the latency on some PGs, we don't want to increase the latency on others (by scrubbing) too.
The other consideration is that if backfil is happening it probably doesn't mean we want to prevent scrubbing indefinitely. Instead, I'd suggest increasing the scrub intervals by some factor (e.g., 2x).
Quoted 7 lines
Quoted 3 lines
The first option would probably be a change in the scrub scheduling in the OSD.
I would go for the first one. Imagine a large cluster where one backfill is busy, that would otherwise halt all scrubs while only a few OSDs are involved.
Option one isn't that hard to implement either I think.
I added a card to trello: https://trello.com/b/ugTc2QFH/ceph-backlog
Thanks!
sage
Quoted 48 lines
Op 8 november 2016 om 21:30 schreef Sage Weil <[email protected]>:
Quoted 43 lines · Wido den Hollander
Quoted 42 lines
Op 8 november 2016 om 15:19 schreef Sage Weil <[email protected]>:
Quoted 15 lines · Wido den Hollander
Quoted 10 lines
Op 8 november 2016 om 9:35 schreef Stefan Priebe - Profihost AG <[email protected]>:
Hello,
i'm wondering if anybody has already thought about automatically stopping srub and deep-scrub in case of backfilling or recovering. I've seen several situations where scrubbing massivly raises the latency while doing backfilling or recovering.
Seems like a sane change to me, but maybe a dev has a better option. I don't think a stop is easy, but a 'noscrub' flag could be set inside the OSD.
Quoted 6 lines
Maybe a config option:
osd_scrub_during_recoveryDefaults to true, but can be set to false by the admin.
Before a scrub starts the OSD will check if there is recovery / backfilling active on the OSD and if so it will not initiate the scrub.
Yeah, it seems reasonable. I think there are two basic options:
- Disable scrubbing locally on each OSD if it has scrubbing PGs. Two unrelated OSDs would be free to scrub and backfill at the same time.
- Disable scrubbing globally if any pgs are backfilling. The reasoning here is that if backfilling is increasing the latency on some PGs, we don't want to increase the latency on others (by scrubbing) too.
The other consideration is that if backfil is happening it probably doesn't mean we want to prevent scrubbing indefinitely. Instead, I'd suggest increasing the scrub intervals by some factor (e.g., 2x).
The first option would probably be a change in the scrub scheduling in the OSD.
Quoted 6 lines
Quoted 3 lines
I would go for the first one. Imagine a large cluster where one backfill is busy, that would otherwise halt all scrubs while only a few OSDs are involved.
Option one isn't that hard to implement either I think.
I added a card to trello: https://trello.com/b/ugTc2QFH/ceph-backlog
Wouldn't this be enough?
https://github.com/ceph/ceph/pull/11874
Wido
Quoted 6 lines
Thanks!
sage
--
To unsubscribe from this list: send the line "unsubscribe ceph-devel" in the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html
Quoted 54 lines
Op 9 november 2016 om 16:19 schreef Wido den Hollander <[email protected]>:
Quoted 49 lines
Op 8 november 2016 om 21:30 schreef Sage Weil <[email protected]>:
Quoted 45 lines · Wido den Hollander
Quoted 35 lines
Op 8 november 2016 om 15:19 schreef Sage Weil <[email protected]>:
Quoted 15 lines · Wido den Hollander
Quoted 10 lines
Op 8 november 2016 om 9:35 schreef Stefan Priebe - Profihost AG <[email protected]>:
Hello,
i'm wondering if anybody has already thought about automatically stopping srub and deep-scrub in case of backfilling or recovering. I've seen several situations where scrubbing massivly raises the latency while doing backfilling or recovering.
Seems like a sane change to me, but maybe a dev has a better option. I don't think a stop is easy, but a 'noscrub' flag could be set inside the OSD.
Quoted 6 lines
Maybe a config option:
osd_scrub_during_recoveryDefaults to true, but can be set to false by the admin.
Before a scrub starts the OSD will check if there is recovery / backfilling active on the OSD and if so it will not initiate the scrub.
Yeah, it seems reasonable. I think there are two basic options:
- Disable scrubbing locally on each OSD if it has scrubbing PGs. Two unrelated OSDs would be free to scrub and backfill at the same time.
- Disable scrubbing globally if any pgs are backfilling. The reasoning here is that if backfilling is increasing the latency on some PGs, we don't want to increase the latency on others (by scrubbing) too.
Quoted 7 lines
The other consideration is that if backfil is happening it probably doesn't mean we want to prevent scrubbing indefinitely. Instead, I'd suggest increasing the scrub intervals by some factor (e.g., 2x).
The first option would probably be a change in the scrub scheduling in the OSD.
I would go for the first one. Imagine a large cluster where one backfill is busy, that would otherwise halt all scrubs while only a few OSDs are involved.
Quoted 8 lines
Quoted 4 lines
Quoted 1 line
Option one isn't that hard to implement either I think.
I added a card to trello: https://trello.com/b/ugTc2QFH/ceph-backlog
Wouldn't this be enough?
Merged! See: https://github.com/ceph/ceph/commit/9100d3362a9ffdd26afc7ee1962c013931cc9e58
By setting osd_scrub_during_recovery to false (defaults to true) you can disable scrubs while recovery threads are active.
This means no NEW scrub will be iniated by the OSD while there are recovery ops active. Any running scrubs will keep running.
Wido
Quoted 13 lines
Wido
Quoted 6 lines
Thanks!
sage
--
To unsubscribe from this list: send the line "unsubscribe ceph-devel" in the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html--
To unsubscribe from this list: send the line "unsubscribe ceph-devel" in the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html
A message that is not in the archive (sent off-list or not yet received): [email protected]
Quoted 6 lines
Op 12 november 2016 om 16:13 schreef Stefan Priebe - Profihost AG <[email protected]>:
Great, does this apply for scrub AND deep scrub?
Yes. No scrub will be scheduled when recovery is active. The sched_scrub function takes care of both types.
Wido
Quoted 90 lines
Stefan
Excuse my typo sent from my mobile phone.
Quoted 86 lines
Am 12.11.2016 um 15:40 schrieb Wido den Hollander <[email protected]>:
Quoted 53 lines
Op 9 november 2016 om 16:19 schreef Wido den Hollander <[email protected]>:
Quoted 49 lines
Op 8 november 2016 om 21:30 schreef Sage Weil <[email protected]>:
Quoted 45 lines · Wido den Hollander
Quoted 35 lines
Op 8 november 2016 om 15:19 schreef Sage Weil <[email protected]>:
Quoted 15 lines · Wido den Hollander
Quoted 10 lines
Op 8 november 2016 om 9:35 schreef Stefan Priebe - Profihost AG <[email protected]>:
Hello,
i'm wondering if anybody has already thought about automatically stopping srub and deep-scrub in case of backfilling or recovering. I've seen several situations where scrubbing massivly raises the latency while doing backfilling or recovering.
Seems like a sane change to me, but maybe a dev has a better option. I don't think a stop is easy, but a 'noscrub' flag could be set inside the OSD.
Quoted 6 lines
Maybe a config option:
osd_scrub_during_recoveryDefaults to true, but can be set to false by the admin.
Before a scrub starts the OSD will check if there is recovery / backfilling active on the OSD and if so it will not initiate the scrub.
Yeah, it seems reasonable. I think there are two basic options:
- Disable scrubbing locally on each OSD if it has scrubbing PGs. Two unrelated OSDs would be free to scrub and backfill at the same time.
- Disable scrubbing globally if any pgs are backfilling. The reasoning here is that if backfilling is increasing the latency on some PGs, we don't want to increase the latency on others (by scrubbing) too.
Quoted 7 lines
The other consideration is that if backfil is happening it probably doesn't mean we want to prevent scrubbing indefinitely. Instead, I'd suggest increasing the scrub intervals by some factor (e.g., 2x).
The first option would probably be a change in the scrub scheduling in the OSD.
I would go for the first one. Imagine a large cluster where one backfill is busy, that would otherwise halt all scrubs while only a few OSDs are involved.
Quoted 8 lines
Quoted 4 lines
Quoted 1 line
Option one isn't that hard to implement either I think.
I added a card to trello: https://trello.com/b/ugTc2QFH/ceph-backlog
Wouldn't this be enough?
Merged! See: https://github.com/ceph/ceph/commit/9100d3362a9ffdd26afc7ee1962c013931cc9e58
By setting
osd_scrub_during_recoveryto false (defaults to true) you can disable scrubs while recovery threads are active.This means no NEW scrub will be iniated by the OSD while there are recovery ops active. Any running scrubs will keep running.
Wido
Quoted 13 lines
Wido
Quoted 6 lines
Thanks!
sage
--
To unsubscribe from this list: send the line "unsubscribe ceph-devel" in the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html--
To unsubscribe from this list: send the line "unsubscribe ceph-devel" in the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html