Skip to contentSkip to conversation

SCTP versus OpenAIS/corosync time-outs

Cluster-devel Lars Marowsky-Bree 4 participants 5 messages Oct 31, 2009 – Nov 5, 2009

lore
Share & tools
lore
#0 lore raw

Hi all, David,

I'm contemplating SCTP versus OpenAIS/corosync. Is dlm_controld(.pcmk) pro-actively informed if a single ring/link goes down, as to trigger faster SCTP recovery - or is it left for SCTP to time out on its own and proceed?

If the latter - is there a way to auto-tune the SCTP time-outs to make sure the DLM doesn't stall longer than that? I'm wondering whether there's any chance for higher-level time-outs, ie a monitor operation on a filesystem-using service.

RFC 5061 seems to support dynamic reconfiguration in such a fashion. If I'm reading http://tools.ietf.org/html/rfc4960#page-87 correctly, SCTP multi-homing is "active/passive", so there's some latency on the fail-over at least. If several links go down at once, SCTP might try them in sequence and pick the one surviving link last, incurring a large latency.

No concurrently active transmission ("rrp_mode active") - I wonder if it is possible to put SCTP into such an mode, or, vice-versa, if this means the DLM might be better off directly opening several TCP connections on its own (and using them all at once, simply discarding duplicate messages)?

I'm not sure what kind of problems exist, if any, but this may be a worth-while thing to consider or at least contemplate. I welcome feedback ;-)

Regards,
Lars

Signature · 3 lines
Architect Storage/HA, OPS Engineering, Novell, Inc.
SUSE LINUX Products GmbH, GF: Markus Rex, HRB 16746 (AG N?rnberg)
"Experience is the name everyone gives to their mistakes." -- Oscar Wilde
#1 lore raw
Quoted 6 lines · Lars Marowsky-Bree

Hi all, David,

I'm contemplating SCTP versus OpenAIS/corosync. Is dlm_controld(.pcmk) pro-actively informed if a single ring/link goes down, as to trigger faster SCTP recovery - or is it left for SCTP to time out on its own and proceed?

Corosync tells no-one, apart from syslog, if a link goes down. I imagine its possible for the CFG subsystem to inform applications of link state changes but it doesn't currently do so.

Quoted 4 lines

If the latter - is there a way to auto-tune the SCTP time-outs to make sure the DLM doesn't stall longer than that? I'm wondering whether there's any chance for higher-level time-outs, ie a monitor operation on a filesystem-using service.

I imagine it's possible to tell SCTP the cman values for timeouts. It doesn't happen at the moment but perhaps it should. There is a lot of score for more auto-configuration of things in clustering I think.

Quoted 7 lines

RFC 5061 seems to support dynamic reconfiguration in such a fashion. If I'm reading http://tools.ietf.org/html/rfc4960#page-87 correctly, SCTP multi-homing is "active/passive", so there's some latency on the fail-over at least. If several links go down at once, SCTP might try them in sequence and pick the one surviving link last, incurring a large latency.

Quoted 5 lines

No concurrently active transmission ("rrp_mode active") - I wonder if it is possible to put SCTP into such an mode, or, vice-versa, if this means the DLM might be better off directly opening several TCP connections on its own (and using them all at once, simply discarding duplicate messages)?

If you want to add TCP multi-homing code to the DLM, feel free. But it'll be complicated and messy I promise. And it seems pointless to reimplement all the sort of failover code that's already in SCTP for free.

Quoted 3 lines

I'm not sure what kind of problems exist, if any, but this may be a worth-while thing to consider or at least contemplate. I welcome feedback ;-)

To be honest, RRP & DLM/SCTP is not well tested or used. There are probably lots of things that could be done to improve it. In particular the failover aspect of it (the most important part of course) has probably not been tried under any sort of serious load ... though i could be wrong.

Chrissie

#2 lore raw
Quoted 5 lines · Christine Caulfield

To be honest, RRP & DLM/SCTP is not well tested or used. There are probably lots of things that could be done to improve it. In particular the failover aspect of it (the most important part of course) has probably not been tried under any sort of serious load ... though i could be wrong.

Yep, I dusted off dlm/sctp a few weeks ago to see what kind of condition it was in. Fixed a couple bugs, and then found that it's noticably slower than tcp (using single sctp connections.) I spent a bit of timing trying to understand why but didn't. Someone more familiar with those networking layers could probably diagnose things much faster... not sure when I'll get back to looking at it again.

Dave

#3 lore raw
In reply to Christine Caulfield
Quoted 8 lines · Christine Caulfield
Quoted 5 lines

No concurrently active transmission ("rrp_mode active") - I wonder if it is possible to put SCTP into such an mode, or, vice-versa, if this means the DLM might be better off directly opening several TCP connections on its own (and using them all at once, simply discarding duplicate messages)?

If you want to add TCP multi-homing code to the DLM, feel free. But it'll be complicated and messy I promise. And it seems pointless to reimplement all the sort of failover code that's already in SCTP for free.

Well, the thing is that active/active doesn't seem to be something SCTP actually _can_ do, while quite obviously being the thing we'd want. I'd love to be proven wrong about SCTP, of course, that'd make things easier.

Quoted 7 lines
Quoted 3 lines

I'm not sure what kind of problems exist, if any, but this may be a worth-while thing to consider or at least contemplate. I welcome feedback ;-)

To be honest, RRP & DLM/SCTP is not well tested or used. There are probably lots of things that could be done to improve it. In particular the failover aspect of it (the most important part of course) has probably not been tried under any sort of serious load ... though i could be wrong.

Yeah, I'm trying to scope what needs to be tested and improved.

(Having OpenAIS+DLM run over bonding is mostly fine, but bonding is sometimes the problem, and doesn't support all topologies; hence the need to explore SCTP, or if SCTP can't do that, some alternative.)

A quite different trick for redundant networking would be to assign static addresses to lo:X and run OSPF over all links, and having DLM connect to the static IPs. That's quite trivial to setup, give us "resilient" TCP (w/o needing to mess with SCTP, bonding, or anything).

Comments?

Regards,
Lars

Signature · 3 lines
Architect Storage/HA, OPS Engineering, Novell, Inc.
SUSE LINUX Products GmbH, GF: Markus Rex, HRB 16746 (AG N?rnberg)
"Experience is the name everyone gives to their mistakes." -- Oscar Wilde
#4 lore raw
Quoted 9 lines · Lars Marowsky-Bree

On 2009-11-02T08:41:43, Christine Caulfield <[email protected]> wrote:

A quite different trick for redundant networking would be to assign static addresses to lo:X and run OSPF over all links, and having DLM connect to the static IPs. That's quite trivial to setup, give us "resilient" TCP (w/o needing to mess with SCTP, bonding, or anything).

Comments?

OSPF timings to converge networks can be very long as it involves link UP/DOWN events, flapping protection and so on and so forth... IMHO, while the idea is valid, it introduces a new whole set of timeouts to take into account.

IMHO it?s a lot simpler to do something like this:

monitor the links status, if UP assign a static route with different metric so that one link is always preferred over another. On link DOWN event, remove the static route, flush the route cache (speed up kernel look ups into the new route with higher or lower metric), and traffic will flow very quickly again on the new link.

I use a very similar setup using a patched version of vtun (we clearly don?t want or need that), and the response time is in the order of a couple of seconds (it could be a lot lower with proper trimming to the setup).

Fabio