Skip to contentSkip to conversation

ECONNREFUSED implies OSD definitely failed

DISCUSSION Sage Weil 4 participants 6 messages Apr 22, 2016 – Apr 29, 2016

lore
Share & tools
lore

Sage Weil

author
#0 lore raw

Piotr has a PR at

	https://github.com/ceph/ceph/pull/8558

that changes the messenger and OSD logic so that if we get an ECONNREFUSED trying to talk to another OSD we can definitively conclude that the OSD is down/failed, without waiting for the normal heartbeat timeout.

I think this is true in normal networking environments. My only concern is that there might be cases where the OSD isn't actually down and some transient network issue could cause ECONNREFUSED. Like... some firewally magic networky thing. If a transient ECONNREFUSED was possible, it could cause some ugly flapping.

Can anyone think of something that might cause this? Even if it is something obscure, it means we should have a config option to disable this new behavior (we probably should anyway).

sage

#1 lore raw
Quoted 14 lines · Sage Weil

Piotr has a PR at

	https://github.com/ceph/ceph/pull/8558

that changes the messenger and OSD logic so that if we get an ECONNREFUSED trying to talk to another OSD we can definitively conclude that the OSD is down/failed, without waiting for the normal heartbeat timeout.

I think this is true in normal networking environments. My only concern is that there might be cases where the OSD isn't actually down and some transient network issue could cause ECONNREFUSED. Like... some firewally magic networky thing. If a transient ECONNREFUSED was possible, it could cause some ugly flapping.

Quoted 3 lines

Can anyone think of something that might cause this? Even if it is something obscure, it means we should have a config option to disable this new behavior (we probably should anyway).

Exactly this - the system reconfiguring it's network interfaces and firewall rules (in a suboptimal fashion; it should drop, not reject, but ...).

Or a duplicate IP address (with a node that isn't running ceph-osd). Again, not supposed to happen.

Signature · 7 lines
SUSE Linux GmbH, GF: Felix Imendörffer, Jane Smithard, Graham Norton, HRB 21284 (AG Nürnberg)
"Experience is the name everyone gives to their mistakes." -- Oscar Wilde

--
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 16 lines · Lars Marowsky-Bree
Quoted 14 lines · Sage Weil

Piotr has a PR at

	https://github.com/ceph/ceph/pull/8558

that changes the messenger and OSD logic so that if we get an ECONNREFUSED trying to talk to another OSD we can definitively conclude that the OSD is down/failed, without waiting for the normal heartbeat timeout.

I think this is true in normal networking environments. My only concern is that there might be cases where the OSD isn't actually down and some transient network issue could cause ECONNREFUSED. Like... some firewally magic networky thing. If a transient ECONNREFUSED was possible, it could cause some ugly flapping.

Quoted 7 lines
Quoted 3 lines

Can anyone think of something that might cause this? Even if it is something obscure, it means we should have a config option to disable this new behavior (we probably should anyway).

Exactly this - the system reconfiguring it's network interfaces and firewall rules (in a suboptimal fashion; it should drop, not reject, but ...).

I'm not convinced that we should care about this. I think that probability of (re)connect event occurrence during firewall reconfiguration is quite low.

Quoted 2 lines

Or a duplicate IP address (with a node that isn't running ceph-osd). Again, not supposed to happen.

That will cause a lot of other things to fail, and having ceph-osd get downed faster gives a greater chance of getting someone's attention.

Signature · 7 lines
Piotr Dałek
[email protected]
http://blog.predictor.org.pl
--
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 21 lines · Piotr Dałek
Quoted 20 lines · Lars Marowsky-Bree
Quoted 17 lines · Sage Weil

Piotr has a PR at

	https://github.com/ceph/ceph/pull/8558

that changes the messenger and OSD logic so that if we get an ECONNREFUSED trying to talk to another OSD we can definitively conclude that the OSD is down/failed, without waiting for the normal heartbeat timeout.

I think this is true in normal networking environments. My only concern is that there might be cases where the OSD isn't actually down and some transient network issue could cause ECONNREFUSED. Like... some firewally magic networky thing. If a transient ECONNREFUSED was possible, it could cause some ugly flapping.

Can anyone think of something that might cause this? Even if it is something obscure, it means we should have a config option to disable this new behavior (we probably should anyway).

Quoted 7 lines
Quoted 3 lines

Exactly this - the system reconfiguring it's network interfaces and firewall rules (in a suboptimal fashion; it should drop, not reject, but ...).

I'm not convinced that we should care about this. I think that probability of (re)connect event occurrence during firewall reconfiguration is quite low.

Yeah, I tend to agree.

Let's just add a config option to control the new behavior so that if, for some reason, there is an environment where this does happen the fast-fail can be disabled.

sage

#4 lore raw
Quoted 8 lines · Sage Weil
Quoted 3 lines

I'm not convinced that we should care about this. I think that probability of (re)connect event occurrence during firewall reconfiguration is quite low.

Yeah, I tend to agree.

Let's just add a config option to control the new behavior so that if, for some reason, there is an environment where this does happen the fast-fail can be disabled.

Also agreed. Just wanted to add the cases where I've seen these happen
- and indeed, they are pretty obscure cases that shouldn't happen.

Signature · 7 lines
SUSE Linux GmbH, GF: Felix Imendörffer, Jane Smithard, Graham Norton, HRB 21284 (AG Nürnberg)
"Experience is the name everyone gives to their mistakes." -- Oscar Wilde

--
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
#5 lore raw
In reply to Sage Weil
Quoted 10 lines · Sage Weil
Quoted 8 lines · Piotr Dałek
Quoted 3 lines · Lars Marowsky-Bree

Exactly this - the system reconfiguring it's network interfaces and firewall rules (in a suboptimal fashion; it should drop, not reject, but ...).

I'm not convinced that we should care about this. I think that probability of (re)connect event occurrence during firewall reconfiguration is quite low.

Quoted 5 lines

Yeah, I tend to agree.

Let's just add a config option to control the new behavior so that if, for some reason, there is an environment where this does happen the fast-fail can be disabled.

Sure, that's not a problem.

Signature · 7 lines
Piotr Dałek
[email protected]
http://blog.predictor.org.pl
--
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