Skip to contentSkip to conversation

slow request problem

DISCUSSION Stefan Priebe - Profihost AG 3 participants 8 messages Jul 12, 2013 – Jul 14, 2013 5 messages not in the archive

lore
Share & tools
lore
#0 lore raw

Hello list,

anyone else here who always has problems bringing back an offline OSD? Since cuttlefish i'm seeing slow requests for the first 2-5 minutes after bringing an OSD oinline again but that's so long that the VMs crash as they think their disk is offline...

Under bobtail i never had any problems with that.

Please HELP!

Greets,
Stefan

#2 lore raw
In reply to a message not in the archive

Hello list,

might this be a problem due to having too much PGs? I've 370 per OSD instead of having 33 / OSD (OSDs*100/3).

Is there any plan for PG merging?

Stefan

Quoted 14 lines

Hello list,

anyone else here who always has problems bringing back an offline OSD? Since cuttlefish i'm seeing slow requests for the first 2-5 minutes after bringing an OSD oinline again but that's so long that the VMs crash as they think their disk is offline...

Under bobtail i never had any problems with that.

Please HELP!

Greets,
Stefan

#4 lore raw
In reply to a message not in the archive
Quoted 4 lines · Stefan Priebe

Hello list,

might this be a problem due to having too much PGs? I've 370 per OSD instead of having 33 / OSD (OSDs*100/3).

That might exacerbate it.

Can you try setting

osd min pg log entries = 50
osd max pg log entries = 100

across your cluster, restarting your osds, and see if that makes a difference? I'm wondering if this is a problem with pg log rewrites after peering. Note that adding that option and restarting isn't enough to trigger the trim; you have to hit the cluster with some IO too, and (if this is the source of your problem) the trim itself might be expensive. So add it, restart, do a bunch of io (to all pools/pgs if you can), and then see if the problem is still present?

Also note that the lower osd min pg log entries means that the osd cannot be down as long without requiring a backfill (50 ios per pg). These probably aren't the values that we want, but I'd like to find out whether the pg log rewrites after peering in cuttlefish are the culprit here.

Thanks!

Quoted 1 line

Is there any plan for PG merging?

Not right now. :( I'll talk to Sam, though, to see how difficult it would be given the split approach we settled on.

Thanks!
sage

Quoted 22 lines

Stefan

Quoted 7 lines

Hello list,

anyone else here who always has problems bringing back an offline OSD? Since cuttlefish i'm seeing slow requests for the first 2-5 minutes after bringing an OSD oinline again but that's so long that the VMs crash as they think their disk is offline...

Quoted 7 lines

Under bobtail i never had any problems with that.

Please HELP!

Greets,
Stefan

_______________________________________________
ceph-users mailing list [email protected]
http://lists.ceph.com/listinfo.cgi/ceph-users-ceph.com

#6 lore raw
In reply to a message not in the archive

Hi sage,

Am 14.07.2013 um 17:01 schrieb Sage Weil <[email protected]>:

Quoted 6 lines · Stefan Priebe
Quoted 4 lines

Hello list,

might this be a problem due to having too much PGs? I've 370 per OSD instead of having 33 / OSD (OSDs*100/3).

Quoted 6 lines

That might exacerbate it.

Can you try setting

osd min pg log entries = 50
osd max pg log entries = 100

What does that exactly do? And why is a restart of all osds needed. Thanks!

Quoted 7 lines

across your cluster, restarting your osds, and see if that makes a difference? I'm wondering if this is a problem with pg log rewrites after peering. Note that adding that option and restarting isn't enough to trigger the trim; you have to hit the cluster with some IO too, and (if this is the source of your problem) the trim itself might be expensive. So add it, restart, do a bunch of io (to all pools/pgs if you can), and then see if the problem is still present?

Will try can't produce a write to every pg. it's a prod. Cluster with KVM rbd. But it has 800-1200 iop/s per second.

Quoted 40 lines

Also note that the lower osd min pg log entries means that the osd cannot be down as long without requiring a backfill (50 ios per pg). These probably aren't the values that we want, but I'd like to find out whether the pg log rewrites after peering in cuttlefish are the culprit here.

Thanks!

Quoted 1 line

Is there any plan for PG merging?

Not right now. :( I'll talk to Sam, though, to see how difficult it would be given the split approach we settled on.

Thanks!
sage

Quoted 21 lines

Stefan

Quoted 7 lines

Hello list,

anyone else here who always has problems bringing back an offline OSD? Since cuttlefish i'm seeing slow requests for the first 2-5 minutes after bringing an OSD oinline again but that's so long that the VMs crash as they think their disk is offline...

Quoted 6 lines

Under bobtail i never had any problems with that.

Please HELP!

Greets,
Stefan

_______________________________________________
ceph-users mailing list [email protected]
http://lists.ceph.com/listinfo.cgi/ceph-users-ceph.com

#8 lore raw
In reply to a message not in the archive
Quoted 10 lines · Stefan Priebe - Profihost AG

Hi sage,

Am 14.07.2013 um 17:01 schrieb Sage Weil <[email protected]>:

Quoted 6 lines · Stefan Priebe
Quoted 4 lines

Hello list,

might this be a problem due to having too much PGs? I've 370 per OSD instead of having 33 / OSD (OSDs*100/3).

Quoted 8 lines
Quoted 6 lines

That might exacerbate it.

Can you try setting

osd min pg log entries = 50
osd max pg log entries = 100

What does that exactly do? And why is a restart of all osds needed. Thanks!

This limits the size of the pg log.

Quoted 11 lines
Quoted 8 lines

across your cluster, restarting your osds, and see if that makes a difference? I'm wondering if this is a problem with pg log rewrites after peering. Note that adding that option and restarting isn't enough to trigger the trim; you have to hit the cluster with some IO too, and (if this is the source of your problem) the trim itself might be expensive. So add it, restart, do a bunch of io (to all pools/pgs if you can), and then see if the problem is still present?

Will try can't produce a write to every pg. it's a prod. Cluster with KVM rbd. But it has 800-1200 iop/s per second.

Hmm, if this is a production cluster, I would be careful, then! Setting the pg logs too short can lead to backfill, which is very expensive (as you know).

The defaults are 3000 / 10000, so maybe try something less aggressive like changing min to 500?

Also, I think

ceph osd tell \* injectargs '--osd-min-pg-log-entries 500'

should work as well. But again, be aware that lowering the value will incur a trim that may in itself be a bit expensive (if this is the source of the problem).

It is probably worth watching ceph pg dump | grep $some_random_pg and watching the 'v' column over time (say, a minute or two) to see how quickly pg events are being generated on your cluster. This will give you a sense of how much time 500 (or however many) pg log entries covers!

sage

Quoted 43 lines
Quoted 41 lines

Also note that the lower osd min pg log entries means that the osd cannot be down as long without requiring a backfill (50 ios per pg). These probably aren't the values that we want, but I'd like to find out whether the pg log rewrites after peering in cuttlefish are the culprit here.

Thanks!

Quoted 1 line

Is there any plan for PG merging?

Not right now. :( I'll talk to Sam, though, to see how difficult it would be given the split approach we settled on.

Thanks!
sage

Quoted 21 lines

Stefan

Quoted 7 lines

Hello list,

anyone else here who always has problems bringing back an offline OSD? Since cuttlefish i'm seeing slow requests for the first 2-5 minutes after bringing an OSD oinline again but that's so long that the VMs crash as they think their disk is offline...

Quoted 6 lines

Under bobtail i never had any problems with that.

Please HELP!

Greets,
Stefan

_______________________________________________
ceph-users mailing list [email protected]
http://lists.ceph.com/listinfo.cgi/ceph-users-ceph.com

#9 lore raw

Am 14.07.2013 18:19, schrieb Sage Weil:

Quoted 34 lines · Stefan Priebe - Profihost AG
Quoted 10 lines

Hi sage,

Am 14.07.2013 um 17:01 schrieb Sage Weil <[email protected]>:

Quoted 6 lines · Stefan Priebe
Quoted 4 lines

Hello list,

might this be a problem due to having too much PGs? I've 370 per OSD instead of having 33 / OSD (OSDs*100/3).

Quoted 8 lines
Quoted 6 lines

That might exacerbate it.

Can you try setting

osd min pg log entries = 50
osd max pg log entries = 100

What does that exactly do? And why is a restart of all osds needed. Thanks!

This limits the size of the pg log.

Quoted 11 lines
Quoted 8 lines

across your cluster, restarting your osds, and see if that makes a difference? I'm wondering if this is a problem with pg log rewrites after peering. Note that adding that option and restarting isn't enough to trigger the trim; you have to hit the cluster with some IO too, and (if this is the source of your problem) the trim itself might be expensive. So add it, restart, do a bunch of io (to all pools/pgs if you can), and then see if the problem is still present?

Will try can't produce a write to every pg. it's a prod. Cluster with KVM rbd. But it has 800-1200 iop/s per second.

Quoted 6 lines

Hmm, if this is a production cluster, I would be careful, then! Setting the pg logs too short can lead to backfill, which is very expensive (as you know).

The defaults are 3000 / 10000, so maybe try something less aggressive like changing min to 500?

I've lowered the values to 500 / 1500 and it seems to lower the impact but does not seem to solve that one.

Stefan

Quoted 64 lines

Also, I think

ceph osd tell \* injectargs '--osd-min-pg-log-entries 500'

should work as well. But again, be aware that lowering the value will incur a trim that may in itself be a bit expensive (if this is the source of the problem).

It is probably worth watching ceph pg dump | grep $some_random_pg and watching the 'v' column over time (say, a minute or two) to see how quickly pg events are being generated on your cluster. This will give you a sense of how much time 500 (or however many) pg log entries covers!

sage

Quoted 33 lines
Quoted 33 lines

Also note that the lower osd min pg log entries means that the osd cannot be down as long without requiring a backfill (50 ios per pg). These probably aren't the values that we want, but I'd like to find out whether the pg log rewrites after peering in cuttlefish are the culprit here.

Thanks!

Quoted 1 line

Is there any plan for PG merging?

Not right now. :( I'll talk to Sam, though, to see how difficult it would be given the split approach we settled on.

Thanks!
sage

Quoted 13 lines

Stefan

Quoted 11 lines

Hello list,

anyone else here who always has problems bringing back an offline OSD? Since cuttlefish i'm seeing slow requests for the first 2-5 minutes after bringing an OSD oinline again but that's so long that the VMs crash as they think their disk is offline...

Under bobtail i never had any problems with that.

Please HELP!

Quoted 10 lines
Quoted 8 lines
Quoted 8 lines
Quoted 2 lines

Greets,
Stefan

_______________________________________________
ceph-users mailing list
[email protected]
http://lists.ceph.com/listinfo.cgi/ceph-users-ceph.com

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

#11 lore raw
In reply to a message not in the archive
Quoted 42 lines · Stefan Priebe

Am 14.07.2013 18:19, schrieb Sage Weil:

Quoted 41 lines · Stefan Priebe - Profihost AG
Quoted 13 lines

Hi sage,

Am 14.07.2013 um 17:01 schrieb Sage Weil <[email protected]>:

Quoted 9 lines · Stefan Priebe
Quoted 5 lines

Hello list,

might this be a problem due to having too much PGs? I've 370 per OSD instead
of having 33 / OSD (OSDs*100/3).

That might exacerbate it.

Quoted 7 lines
Quoted 4 lines

Can you try setting

osd min pg log entries = 50
osd max pg log entries = 100

What does that exactly do? And why is a restart of all osds needed. Thanks!

This limits the size of the pg log.

Quoted 10 lines
Quoted 9 lines

across your cluster, restarting your osds, and see if that makes a difference? I'm wondering if this is a problem with pg log rewrites after
peering. Note that adding that option and restarting isn't enough to trigger the trim; you have to hit the cluster with some IO too, and (if this is the source of your problem) the trim itself might be expensive. So add it, restart, do a bunch of io (to all pools/pgs if you can), and then see if the problem is still present?

Quoted 2 lines

Will try can't produce a write to every pg. it's a prod. Cluster with KVM rbd. But it has 800-1200 iop/s per second.

Hmm, if this is a production cluster, I would be careful, then! Setting the pg logs too short can lead to backfill, which is very expensive (as you know).

Quoted 5 lines
Quoted 2 lines

The defaults are 3000 / 10000, so maybe try something less aggressive like changing min to 500?

I've lowered the values to 500 / 1500 and it seems to lower the impact but does not seem to solve that one.

This suggests that the problem is the pg log rewrites that are an inherent part of cuttlefish. This is replaced with improved rewrite logic in 0.66 or so, so dumpling will be better. I suspect that having a large number of pgs is exacerbating the issue for you.

We think there is still a different peering performance problem that Sam and paravoid have been trying to track down, but I believe in that case reducing the pg log sizes didn't have much effect. (Maybe one of them can chime in here.)

This was unfortunately something we failed to catch before cuttlefish was released. One of the main focuses right now is in creating large clusters and observing peering and recovery to make sure we don't repeat the same sort of mistake for dumpling!

sage

Quoted 72 lines

Stefan

Quoted 67 lines

Also, I think

ceph osd tell \* injectargs '--osd-min-pg-log-entries 500'

should work as well. But again, be aware that lowering the value will incur a trim that may in itself be a bit expensive (if this is the source of the problem).

It is probably worth watching ceph pg dump | grep $some_random_pg and watching the 'v' column over time (say, a minute or two) to see how quickly pg events are being generated on your cluster. This will give you a sense of how much time 500 (or however many) pg log entries covers!

sage

Quoted 36 lines
Quoted 36 lines

Also note that the lower osd min pg log entries means that the osd cannot
be down as long without requiring a backfill (50 ios per pg). These probably aren't the values that we want, but I'd like to find out whether
the pg log rewrites after peering in cuttlefish are the culprit here.

Thanks!

Quoted 1 line

Is there any plan for PG merging?

Not right now. :( I'll talk to Sam, though, to see how difficult it would be given the split approach we settled on.

Thanks!
sage

Quoted 14 lines

Stefan

Quoted 12 lines

Hello list,

anyone else here who always has problems bringing back an offline OSD?
Since cuttlefish i'm seeing slow requests for the first 2-5 minutes after bringing an OSD oinline again but that's so long that the VMs crash as they think their disk is offline...

Under bobtail i never had any problems with that.

Please HELP!

Quoted 10 lines
Quoted 8 lines
Quoted 8 lines
Quoted 2 lines

Greets,
Stefan

_______________________________________________
ceph-users mailing list [email protected]
http://lists.ceph.com/listinfo.cgi/ceph-users-ceph.com

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

#12 lore raw

Am 14.07.2013 21:05, schrieb Sage Weil:

Quoted 59 lines · Stefan Priebe
Quoted 42 lines

Am 14.07.2013 18:19, schrieb Sage Weil:

Quoted 41 lines · Stefan Priebe - Profihost AG
Quoted 13 lines

Hi sage,

Am 14.07.2013 um 17:01 schrieb Sage Weil <[email protected]>:

Quoted 9 lines · Stefan Priebe
Quoted 5 lines

Hello list,

might this be a problem due to having too much PGs? I've 370 per OSD instead
of having 33 / OSD (OSDs*100/3).

That might exacerbate it.

Quoted 7 lines
Quoted 4 lines

Can you try setting

osd min pg log entries = 50
osd max pg log entries = 100

What does that exactly do? And why is a restart of all osds needed. Thanks!

This limits the size of the pg log.

Quoted 10 lines
Quoted 9 lines

across your cluster, restarting your osds, and see if that makes a difference? I'm wondering if this is a problem with pg log rewrites after
peering. Note that adding that option and restarting isn't enough to trigger the trim; you have to hit the cluster with some IO too, and (if this is the source of your problem) the trim itself might be expensive. So add it, restart, do a bunch of io (to all pools/pgs if you can), and then see if the problem is still present?

Quoted 2 lines

Will try can't produce a write to every pg. it's a prod. Cluster with KVM rbd. But it has 800-1200 iop/s per second.

Hmm, if this is a production cluster, I would be careful, then! Setting the pg logs too short can lead to backfill, which is very expensive (as you know).

Quoted 5 lines
Quoted 2 lines

The defaults are 3000 / 10000, so maybe try something less aggressive like changing min to 500?

I've lowered the values to 500 / 1500 and it seems to lower the impact but does not seem to solve that one.

This suggests that the problem is the pg log rewrites that are an inherent part of cuttlefish. This is replaced with improved rewrite logic in 0.66 or so, so dumpling will be better. I suspect that having a large number of pgs is exacerbating the issue for you.

We think there is still a different peering performance problem that Sam and paravoid have been trying to track down, but I believe in that case reducing the pg log sizes didn't have much effect. (Maybe one of them can chime in here.)

Quoted 4 lines

This was unfortunately something we failed to catch before cuttlefish was released. One of the main focuses right now is in creating large clusters and observing peering and recovery to make sure we don't repeat the same sort of mistake for dumpling!

Thanks Sage for these information. I had some OSD restarts which went better with the new settings but others which don't. But it's hard to measure and compare restart OSD.X with OSD.Y.

Do you have any recommandations for me? Wait for dumpling and hope that nothing fails until then? Or upgrading to 0.66? Or trying to move all data to a new pool having fewer PGs?

Thanks!

Greets,
Stefan