Skip to contentSkip to conversation

cluster down during backfilling, Jewel tunables and client IO optimisations

DISCUSSION Gregory Farnum 4 participants 7 messages Jun 20, 2016 – Jun 22, 2016 7 messages not in the archive

lore
Share & tools
lore

A message that is not in the archive (sent off-list or not yet received): [email protected]

A message that is not in the archive (sent off-list or not yet received): [email protected]

A message that is not in the archive (sent off-list or not yet received): [email protected]

A message that is not in the archive (sent off-list or not yet received): [email protected]

#4 lore raw
Quoted 22 lines · Daniel Swarbrick

We have just updated our third cluster from Infernalis to Jewel, and are experiencing similar issues.

We run a number of KVM virtual machines (qemu 2.5) with RBD images, and have seen a lot of D-state processes and even jbd/2 timeouts and kernel stack traces inside the guests. At first I thought the VMs were being starved of IO, but this is still happening after throttling back the recovery with:

osd_max_backfills = 1
osd_recovery_max_active = 1
osd_recovery_op_priority = 1

After upgrading the cluster to Jewel, I changed our crushmap to use the newer straw2 algorithm, which resulted in a little data movment, but no problems at that stage.

Once the cluster had settled down again, I set tunables to optimal (hammer profile -> jewel profile), which has triggered between 50% and 70% misplaced PGs on our clusters. This is when the trouble started each time, and when we had cascading failures of VMs.

Quoted 6 lines

However, after performing hard shutdowns on the VMs and restarting them, they seemed to be OK.

At this stage, I have a strong suspicion that it is the introduction of "require_feature_tunables5 = 1" in the tunables. This seems to require all RADOS connections to be re-established.

Do you have any evidence of that besides the one restart?

I guess it's possible that we aren't kicking requests if the crush map but not the rest of the osdmap changes, but I'd be surprised. -Greg

Quoted 39 lines · Andrei Mikhailovsky
Quoted 4 lines

Hi Oliver,

I am also seeing this as a strange behavriour indeed! I was going through the logs and I was not able to find any errors or issues. There was also no slow/blocked requests that I could see during the recovery process.

Quoted 26 lines

Does anyone has an idea what could be the issue here? I don't want to shut down all vms every time there is a new release with updated tunable values.

Andrei

----- Original Message -----

Quoted 18 lines

From: "Oliver Dzombic" <[email protected]>
To: "andrei" <[email protected]>, "ceph-users" <[email protected]>
Sent: Sunday, 19 June, 2016 10:14:35
Subject: Re: [ceph-users] cluster down during backfilling, Jewel tunables and client IO optimisations

Hi,

so far the key values for that are:

osd_client_op_priority = 63 ( anyway default, but i set it to remember it ) osd_recovery_op_priority = 1

In addition i set:

osd_max_backfills = 1
osd_recovery_max_active = 1

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

A message that is not in the archive (sent off-list or not yet received): CAJ4mKGb28W-jPK7Z7wMzm7fC8Q5YPmqr+PeGS=Bz7jky4GfxuA-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org

#6 lore raw

Hi,

People ran into this when there were some changes in tunables that caused 70-100% movement, the solution was to find out what values that changed and increment them in the smallest steps possible.

I've found that with major rearrangement in ceph the VMs does not neccesarily survive ( last time on a ssd cluster ), so linux and timeouts doesn't work well os my assumption. Which is true with any other storage backend out there ;)

Regards,
Josef

Quoted 79 lines · On Mon, 20 Jun 2016, 19:51 Gregory Farnum…
Quoted 22 lines · Daniel Swarbrick

We have just updated our third cluster from Infernalis to Jewel, and are experiencing similar issues.

We run a number of KVM virtual machines (qemu 2.5) with RBD images, and have seen a lot of D-state processes and even jbd/2 timeouts and kernel stack traces inside the guests. At first I thought the VMs were being starved of IO, but this is still happening after throttling back the recovery with:

osd_max_backfills = 1
osd_recovery_max_active = 1
osd_recovery_op_priority = 1

After upgrading the cluster to Jewel, I changed our crushmap to use the newer straw2 algorithm, which resulted in a little data movment, but no problems at that stage.

Once the cluster had settled down again, I set tunables to optimal (hammer profile -> jewel profile), which has triggered between 50% and 70% misplaced PGs on our clusters. This is when the trouble started each time, and when we had cascading failures of VMs.

Quoted 6 lines

However, after performing hard shutdowns on the VMs and restarting them, they seemed to be OK.

At this stage, I have a strong suspicion that it is the introduction of "require_feature_tunables5 = 1" in the tunables. This seems to require all RADOS connections to be re-established.

Do you have any evidence of that besides the one restart?

I guess it's possible that we aren't kicking requests if the crush map but not the rest of the osdmap changes, but I'd be surprised. -Greg

Quoted 6 lines · Andrei Mikhailovsky
Quoted 3 lines

Hi Oliver,

I am also seeing this as a strange behavriour indeed! I was going

through the logs and I was not able to find any errors or issues. There was also no slow/blocked requests that I could see during the recovery process.

Quoted 2 lines
Quoted 2 lines

Does anyone has an idea what could be the issue here? I don't want to

shut down all vms every time there is a new release with updated tunable values.

Quoted 9 lines
Quoted 9 lines

Andrei

----- Original Message -----

Quoted 2 lines

From: "Oliver Dzombic" <[email protected]>
To: "andrei" <[email protected]>, "ceph-users" <

[email protected]>

Quoted 2 lines
Quoted 2 lines
Quoted 2 lines

Sent: Sunday, 19 June, 2016 10:14:35
Subject: Re: [ceph-users] cluster down during backfilling, Jewel

tunables and client IO optimisations

Quoted 6 lines
Quoted 6 lines
Quoted 6 lines

Hi,

so far the key values for that are:

osd_client_op_priority = 63 ( anyway default, but i set it to remember

it )

Quoted 10 lines
Quoted 8 lines
Quoted 8 lines

osd_recovery_op_priority = 1

In addition i set:

osd_max_backfills = 1
osd_recovery_max_active = 1

Quoted 9 lines
Quoted 4 lines

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

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

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

A message that is not in the archive (sent off-list or not yet received): CAOnYue9FR5amxPkZ-5v6bntq9WN=YkDUGu0U4MSdj2k_eNiuWA-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org

#8 lore raw

Hi Josef,

are you saying that there is no ceph config option that can be used to provide IO to the vms while the ceph cluster is in heavy data move? I am really struggling to understand that this could be the case. I've read so much about ceph being the solution to the modern storage needs and that all of its components were designed to be redundant to provide an always on availability of the storage in case of upgrades and hardware failures. Has something been overlooked?

Also, judging by a low number of people with similar issues I am thinking that there are a lot of ceph users which are still using non optimal profile, either because they don't want to risk the downtime or simply they don't know about the latest crush tunables.

For any future updates, should I be scheduling a maintenance day or two and shutdown all vms prior to upgrading the cluster? It so seems like the backwards approach of the 90s and early 2000s (((

Cheers

Andrei

Quoted 108 lines

From: "Josef Johansson" <[email protected]>
To: "Gregory Farnum" <[email protected]>, "Daniel Swarbrick" <[email protected]>
Cc: "ceph-users" <[email protected]>, "ceph-devel" <[email protected]>
Sent: Monday, 20 June, 2016 20:22:02
Subject: Re: [ceph-users] cluster down during backfilling, Jewel tunables and client IO optimisations

Hi,

People ran into this when there were some changes in tunables that caused 70-100% movement, the solution was to find out what values that changed and increment them in the smallest steps possible.

I've found that with major rearrangement in ceph the VMs does not neccesarily survive ( last time on a ssd cluster ), so linux and timeouts doesn't work well os my assumption. Which is true with any other storage backend out there ;)

Regards,
Josef

Quoted 76 lines · On Mon, 20 Jun 2016, 19:51 Gregory Farnum, <…
Quoted 22 lines · Daniel Swarbrick

We have just updated our third cluster from Infernalis to Jewel, and are experiencing similar issues.

We run a number of KVM virtual machines (qemu 2.5) with RBD images, and have seen a lot of D-state processes and even jbd/2 timeouts and kernel stack traces inside the guests. At first I thought the VMs were being starved of IO, but this is still happening after throttling back the recovery with:

osd_max_backfills = 1
osd_recovery_max_active = 1
osd_recovery_op_priority = 1

After upgrading the cluster to Jewel, I changed our crushmap to use the newer straw2 algorithm, which resulted in a little data movment, but no problems at that stage.

Once the cluster had settled down again, I set tunables to optimal (hammer profile -> jewel profile), which has triggered between 50% and 70% misplaced PGs on our clusters. This is when the trouble started each time, and when we had cascading failures of VMs.

Quoted 6 lines

However, after performing hard shutdowns on the VMs and restarting them, they seemed to be OK.

At this stage, I have a strong suspicion that it is the introduction of "require_feature_tunables5 = 1" in the tunables. This seems to require all RADOS connections to be re-established.

Do you have any evidence of that besides the one restart?

I guess it's possible that we aren't kicking requests if the crush map but not the rest of the osdmap changes, but I'd be surprised. -Greg

Quoted 34 lines · Andrei Mikhailovsky
Quoted 33 lines

Hi Oliver,

I am also seeing this as a strange behavriour indeed! I was going through the logs and I was not able to find any errors or issues. There was also no slow/blocked requests that I could see during the recovery process.

Does anyone has an idea what could be the issue here? I don't want to shut down all vms every time there is a new release with updated tunable values.

Andrei

----- Original Message -----

Quoted 18 lines

From: "Oliver Dzombic" < [email protected] >
To: "andrei" < [email protected] >, "ceph-users" < [email protected] >
Sent: Sunday, 19 June, 2016 10:14:35
Subject: Re: [ceph-users] cluster down during backfilling, Jewel tunables and
client IO optimisations

Hi,

so far the key values for that are:

osd_client_op_priority = 63 ( anyway default, but i set it to remember it ) osd_recovery_op_priority = 1

In addition i set:

osd_max_backfills = 1
osd_recovery_max_active = 1

Quoted 8 lines
Quoted 4 lines

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

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

Quoted 4 lines

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

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

#9 lore raw
In reply to a message not in the archive
Quoted 11 lines · Gregory Farnum

On Mon, Jun 20, 2016 at 8:33 AM, Daniel Swarbrick

Quoted 4 lines

At this stage, I have a strong suspicion that it is the introduction of "require_feature_tunables5 = 1" in the tunables. This seems to require all RADOS connections to be re-established.

Do you have any evidence of that besides the one restart?

I guess it's possible that we aren't kicking requests if the crush map but not the rest of the osdmap changes, but I'd be surprised. -Greg

I think the key fact to take note of is that we had long-running Qemu processes that had been started a few months ago, using Infernalis librbd shared libs.

If Infernalis had no concept of require_feature_tunables5, then it seems logical that these clients would block if the cluster were upgraded to Jewel and this tunable became mandatory.

I have just upgraded our fourth and final cluster to Jewel. Prior to applying optimal tunables, we upgraded our hypervisor nodes' librbd also, and migrated all VMs at least once, to start a fresh Qemu process for each (using the updated librbd).

We're seeing ~65% data movement due to chooseleaf_stable 0 => 1, but other than that, so far so good. No clients are blocking indefinitely.

#10 lore raw

Hi Daniel,

Many thanks for your useful tests and your results.

How much IO wait do you have on your client vms? Has it significantly increased or not?

Many thanks

Andrei

----- Original Message -----

Quoted 39 lines

From: "Daniel Swarbrick" <[email protected]>
To: "ceph-users" <[email protected]>
Cc: "ceph-devel" <[email protected]>
Sent: Wednesday, 22 June, 2016 13:43:37
Subject: Re: [ceph-users] cluster down during backfilling, Jewel tunables and client IO optimisations

Quoted 11 lines · Gregory Farnum

On Mon, Jun 20, 2016 at 8:33 AM, Daniel Swarbrick

Quoted 4 lines

At this stage, I have a strong suspicion that it is the introduction of "require_feature_tunables5 = 1" in the tunables. This seems to require all RADOS connections to be re-established.

Do you have any evidence of that besides the one restart?

I guess it's possible that we aren't kicking requests if the crush map but not the rest of the osdmap changes, but I'd be surprised. -Greg

I think the key fact to take note of is that we had long-running Qemu processes that had been started a few months ago, using Infernalis librbd shared libs.

If Infernalis had no concept of require_feature_tunables5, then it seems logical that these clients would block if the cluster were upgraded to Jewel and this tunable became mandatory.

I have just upgraded our fourth and final cluster to Jewel. Prior to applying optimal tunables, we upgraded our hypervisor nodes' librbd also, and migrated all VMs at least once, to start a fresh Qemu process for each (using the updated librbd).

We're seeing ~65% data movement due to chooseleaf_stable 0 => 1, but other than that, so far so good. No clients are blocking indefinitely.

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

A message that is not in the archive (sent off-list or not yet received): 829216253.136015.1466610890998.JavaMail.zimbra-930XJYlnu5nQT0dZR+AlfA@public.gmane.org

#12 lore raw
Quoted 6 lines · Andrei Mikhailovsky

Hi Daniel,

Many thanks for your useful tests and your results.

How much IO wait do you have on your client vms? Has it significantly increased or not?

Hi Andrei,

Bearing in mind that this cluster is tiny (four nodes, each with four OSDs), our metrics may not be that meaningful. However, on a VM that is running ElasticSearch, collecting logs from Graylog, we're seeing no more than about 5% iowait for a 5s period, and most of the time it's below 1%. This VM is really not writing a lot of data though.

The cluster as a whole is peaking at only about 1200 write op/s, according to ceph -w.

Executing a "sync" in a VM does of course have a noticeable delay due to the recovery happening in the background, but nothing is waiting for IO long enough to trigger the kernel's 120s timer / warning.

The recovery has been running for about four hours now, and is down to 20% misplaced objects. So far we have not had any clients block indefinitely, so I think the migration of VMs to Jewel-capable hypervisors did the trick.

Best,
Daniel

#13 lore raw

Hi Daniel,

Many thanks, I will keep this in mind while performing the updates in the future.

Note to documentation manager - perhaps it makes sens to add this solution as a note/tip to the Upgrade section of the release notes?

Andrei

----- Original Message -----

Quoted 42 lines

From: "Daniel Swarbrick" <[email protected]>
To: "ceph-users" <[email protected]>
Cc: "ceph-devel" <[email protected]>
Sent: Wednesday, 22 June, 2016 17:09:48
Subject: Re: [ceph-users] cluster down during backfilling, Jewel tunables and client IO optimisations

Quoted 7 lines · Andrei Mikhailovsky

Hi Daniel,

Many thanks for your useful tests and your results.

How much IO wait do you have on your client vms? Has it significantly increased or not?

Hi Andrei,

Bearing in mind that this cluster is tiny (four nodes, each with four OSDs), our metrics may not be that meaningful. However, on a VM that is running ElasticSearch, collecting logs from Graylog, we're seeing no more than about 5% iowait for a 5s period, and most of the time it's below 1%. This VM is really not writing a lot of data though.

The cluster as a whole is peaking at only about 1200 write op/s, according to ceph -w.

Executing a "sync" in a VM does of course have a noticeable delay due to the recovery happening in the background, but nothing is waiting for IO long enough to trigger the kernel's 120s timer / warning.

The recovery has been running for about four hours now, and is down to 20% misplaced objects. So far we have not had any clients block indefinitely, so I think the migration of VMs to Jewel-capable hypervisors did the trick.

Best,
Daniel

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