Skip to contentSkip to conversation

osd: new pool flags: noscrub, nodeep-scrub

DISCUSSION Mykola Golub 6 participants 9 messages Sep 11, 2015 – Sep 15, 2015

lore
Share & tools
lore
#0 lore raw

Hi,

I would like to add new pool flags: noscrub and nodeep-scrub, to be able to control scrubbing on per pool basis. In our case it could be helpful in order to disable scrubbing on cache pools, which does not work well right now, but I can imagine other scenarios where it could be useful too.

Before I created a pull request, I would like to see if other people consider this useful or may be have some other suggestions?

Signature · 1 line
Mykola Golub
#1 lore raw
Quoted 7 lines · Mykola Golub

Hi,

I would like to add new pool flags: noscrub and nodeep-scrub, to be able to control scrubbing on per pool basis. In our case it could be helpful in order to disable scrubbing on cache pools, which does not work well right now, but I can imagine other scenarios where it could be useful too.

Can you talk more about this? It sounds to me like maybe you dislike the performance impact of scrubbing, but it's fairly important in terms of data integrity. I don't think we want to permanently disable them. A corruption in the cache pool isn't any less important than in the backing pool — it will eventually get flushed, and it's where all the reads will be handled!
-Greg
--
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

#2 lore raw
Quoted 9 lines · Gregory Farnum
Quoted 7 lines · Mykola Golub

Hi,

I would like to add new pool flags: noscrub and nodeep-scrub, to be able to control scrubbing on per pool basis. In our case it could be helpful in order to disable scrubbing on cache pools, which does not work well right now, but I can imagine other scenarios where it could be useful too.

Quoted 6 lines

Can you talk more about this? It sounds to me like maybe you dislike the performance impact of scrubbing, but it's fairly important in terms of data integrity. I don't think we want to permanently disable them. A corruption in the cache pool isn't any less important than in the backing pool — it will eventually get flushed, and it's where all the reads will be handled!

I was talking about this:

http://tracker.ceph.com/issues/8752

(false-negative on a caching pool). Although the best solution is definitely to fix the bug, I am not sure it will be resolved soon (the bug is open for a year). Still these false-negatives are annoying, as they complicate monitoring for real inconsistent pgs. In this case I might want to disable periodic scrub for caching pools, as a workaround (I could do scrub for them manually though).

This might be not the best example where these flags could be helpful (I just came to the idea when thinking about a workaround for that problem, and this looked useful to me in general). We already have 'ceph osd set no[deep-]scrub', and users use it to temporary resolve high I/O load. Being able to do this per pool looks useful too.

You might have pools of different importance for you, and disabling scrub for some of them might be ok.

Signature · 5 lines
Mykola Golub
--
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
#3 lore raw
Quoted 28 lines · Mykola Golub
Quoted 9 lines · Gregory Farnum
Quoted 7 lines · Mykola Golub

Hi,

I would like to add new pool flags: noscrub and nodeep-scrub, to be able to control scrubbing on per pool basis. In our case it could be helpful in order to disable scrubbing on cache pools, which does not work well right now, but I can imagine other scenarios where it could be useful too.

Quoted 6 lines

Can you talk more about this? It sounds to me like maybe you dislike the performance impact of scrubbing, but it's fairly important in terms of data integrity. I don't think we want to permanently disable them. A corruption in the cache pool isn't any less important than in the backing pool ? it will eventually get flushed, and it's where all the reads will be handled!

I was talking about this:

http://tracker.ceph.com/issues/8752

(false-negative on a caching pool). Although the best solution is definitely to fix the bug, I am not sure it will be resolved soon (the bug is open for a year). Still these false-negatives are annoying, as they complicate monitoring for real inconsistent pgs. In this case I might want to disable periodic scrub for caching pools, as a workaround (I could do scrub for them manually though).

Quoted 8 lines

This might be not the best example where these flags could be helpful (I just came to the idea when thinking about a workaround for that problem, and this looked useful to me in general). We already have 'ceph osd set no[deep-]scrub', and users use it to temporary resolve high I/O load. Being able to do this per pool looks useful too.

You might have pools of different importance for you, and disabling scrub for some of them might be ok.

I wonder if, in addition, we should also allow scrub and deep-scrub intervals to be set on a per-pool basis?

sage

#4 lore raw

I like the idea of being able to control on which pool we want to run scrub on. Some data might deserve better protection than others, it’s really up to the admin.

The default behaviour will be to apply scrub to default pool and every new created pools. The operator can change this behaviour either with a config flag or directly with a ceph mon command.

Quoted 43 lines · Sage Weil
Quoted 28 lines · Mykola Golub
Quoted 9 lines · Gregory Farnum
Quoted 7 lines · Mykola Golub

Hi,

I would like to add new pool flags: noscrub and nodeep-scrub, to be able to control scrubbing on per pool basis. In our case it could be helpful in order to disable scrubbing on cache pools, which does not work well right now, but I can imagine other scenarios where it could be useful too.

Quoted 6 lines

Can you talk more about this? It sounds to me like maybe you dislike the performance impact of scrubbing, but it's fairly important in terms of data integrity. I don't think we want to permanently disable them. A corruption in the cache pool isn't any less important than in the backing pool ? it will eventually get flushed, and it's where all the reads will be handled!

I was talking about this:

http://tracker.ceph.com/issues/8752

(false-negative on a caching pool). Although the best solution is definitely to fix the bug, I am not sure it will be resolved soon (the bug is open for a year). Still these false-negatives are annoying, as they complicate monitoring for real inconsistent pgs. In this case I might want to disable periodic scrub for caching pools, as a workaround (I could do scrub for them manually though).

Quoted 8 lines

This might be not the best example where these flags could be helpful (I just came to the idea when thinking about a workaround for that problem, and this looked useful to me in general). We already have 'ceph osd set no[deep-]scrub', and users use it to temporary resolve high I/O load. Being able to do this per pool looks useful too.

You might have pools of different importance for you, and disabling scrub for some of them might be ok.

I wonder if, in addition, we should also allow scrub and deep-scrub intervals to be set on a per-pool basis?

Quoted 6 lines

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

Cheers.
––––
Sébastien Han
Senior Cloud Architect

"Always give 100%. Unless you're giving blood."

Mail: [email protected]
Address: 11 bis, rue Roquépine - 75008 Paris

#5 lore raw
Quoted 3 lines · Sebastien Han

I like the idea of being able to control on which pool we want to run scrub on. Some data might deserve better protection than others, it’s really up to the admin.

Indeed. Let the admin be in control. If he/she doesn't want that pool to be scrubbed Ceph shouldn't care.

Same like you can mount a filesystem with nobarrier if you want to. Not that it is a wise thing to do.

Quoted 59 lines

The default behaviour will be to apply scrub to default pool and every new created pools. The operator can change this behaviour either with a config flag or directly with a ceph mon command.

Quoted 43 lines · Sage Weil
Quoted 28 lines · Mykola Golub
Quoted 9 lines · Gregory Farnum
Quoted 7 lines · Mykola Golub

Hi,

I would like to add new pool flags: noscrub and nodeep-scrub, to be able to control scrubbing on per pool basis. In our case it could be helpful in order to disable scrubbing on cache pools, which does not work well right now, but I can imagine other scenarios where it could be useful too.

Quoted 6 lines

Can you talk more about this? It sounds to me like maybe you dislike the performance impact of scrubbing, but it's fairly important in terms of data integrity. I don't think we want to permanently disable them. A corruption in the cache pool isn't any less important than in the backing pool ? it will eventually get flushed, and it's where all the reads will be handled!

I was talking about this:

http://tracker.ceph.com/issues/8752

(false-negative on a caching pool). Although the best solution is definitely to fix the bug, I am not sure it will be resolved soon (the bug is open for a year). Still these false-negatives are annoying, as they complicate monitoring for real inconsistent pgs. In this case I might want to disable periodic scrub for caching pools, as a workaround (I could do scrub for them manually though).

Quoted 8 lines

This might be not the best example where these flags could be helpful (I just came to the idea when thinking about a workaround for that problem, and this looked useful to me in general). We already have 'ceph osd set no[deep-]scrub', and users use it to temporary resolve high I/O load. Being able to do this per pool looks useful too.

You might have pools of different importance for you, and disabling scrub for some of them might be ok.

I wonder if, in addition, we should also allow scrub and deep-scrub intervals to be set on a per-pool basis?

Quoted 6 lines

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

Cheers.
––––
Sébastien Han
Senior Cloud Architect

Quoted 5 lines

"Always give 100%. Unless you're giving blood."

Mail: [email protected]
Address: 11 bis, rue Roquépine - 75008 Paris

--
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

#6 lore raw
In reply to Sage Weil
Quoted 2 lines · Sage Weil

I wonder if, in addition, we should also allow scrub and deep-scrub intervals to be set on a per-pool basis?

ceph osd pool set <pool> [deep-]scrub_interval N ?

I could do this too.

Signature · 1 line
Mykola Golub
#7 lore raw
Quoted 6 lines · Mykola Golub
Quoted 2 lines · Sage Weil

I wonder if, in addition, we should also allow scrub and deep-scrub intervals to be set on a per-pool basis?

ceph osd pool set <pool> [deep-]scrub_interval N ?

BTW it would be absolutely lovely to see a copy-aware scrubs, e.g. parallel (deep-) scrubs on a non-intersecting set of PGs. Currently as far as I can see if the scrub starts, the max_scrubs is in effect only for a primary OSD, allowing situations when two scrubs, primary and non-primary, can land on a same OSD.