<div dir="ltr">Eliot, for those of us not running our own network, which datacenters/colos offer multiple networks/nics?<div>e.g. amazon, rackspace, linode, softlayer..?<br><div><br></div><div>It's not something I recall seeing mentioned...</div>
<div><br></div><div><span style="font-family:Verdana,Arial,Helvetica,sans-serif">-Avi</span><br><br><div class="gmail_quote">On Wed, Feb 13, 2013 at 1:18 AM, Eliot Gable <span dir="ltr"><<a href="mailto:egable+freeswitch@gmail.com" target="_blank">egable+freeswitch@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div class="im">On Tue, Feb 12, 2013 at 5:21 PM, Marcin Gozdalik <span dir="ltr"><<a href="mailto:gozdal@gmail.com" target="_blank">gozdal@gmail.com</a>></span> wrote:<br>
</div><div class="gmail_quote"><div class="im"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
I did some, I got some anecdotes from people running them. It<br>
certainly is possible to handle *some* failure cases, but there are<br>
some *other* cases that will be not handled correctly.<br>
<br></blockquote><div><br></div></div><div>I have actually used Sonus, Genband, both of which seamlessly and gracefully handle failures. In fact, I cannot think of a single time where either of them failed to migrate calls over to an alternative system when the one handling calls had even one thing go wrong which prevented them from handling calls properly. And, as I mentioned earlier, I have also used P + C to build a multi-city, 6-node FS cluster (three iterations of it, actually) which could do essentially the same thing. While I don't have the resource agent I wrote for that cluster which handled the vast majority of failure conditions (including the two I mentioned earlier where you turn off ARP on the interface or set the speed/duplex wrong), I could fairly easily update my newly written resource agent to cover such scenarios (if someone wanted to pay for my time to do it). </div>
<div class="im">
<div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Personally I've observed OpenSIPS that run out of some internal memory<br>
and anyhow you wanted to monitor it it will reply it is alive. It will<br>
even route your simple call scenarios well! Unfortunately the "real"<br>
calls were *usually* timing out, but always. Sorry, but I can't<br>
imagine how you can automatically handle that, i.e. discover that this<br>
node is "bad" and fail-over to some other. Even if you do that<br>
correctly your monitoring tool can check that this node is operating<br>
perfectly well (because after all the traffic is diverted from the<br>
faulty node it begins to work well) and will want to move the traffic<br>
back.<br></blockquote><div><br></div></div><div>Just because you cannot imagine how it would work, it does not mean everyone else has the same limitations. You are consistently referring to a node (let's call it node A) telling one or more other nodes (B, C, whatever) about its state and ability to handle calls. You are taking the wrong approach entirely. You cannot have a failed node reliably report it's state! What you can do is have Node A broadcast its state many times per second. Nodes B, C, etc, all listen for that state. They keep track of the state and when they *stop seeing* Node A, they know *something* failed. It's that simple. </div>
<div><br></div><div>At this point, it is up to those nodes to determine *what* failed. They have to do things like check whether *they* failed, check whether the *network* failed, etc. There are very simple and sane ways they can do each of those things. Eventually, they can conclude that *Node A* failed. They can do this determination very quickly. Think microseconds or maybe 1 - 2 milliseconds quickly. At this point, nobody tells them what to do. They know already what they need to do. They have already pre-negotiated what will happen in the event of a failure, or they have very specific programmatic instructions on what to do, and so they act immediately. </div>
<div class="im">
<div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
By "impossible" I mean handling all such gray areas. Certainly if<br>
you'll power down the box or unplug Ethernet it is possible to migrate<br>
live calls to some other box.<br></blockquote><div><br></div></div><div>There are no such "gray" areas. That is just a fantasy you have. Everything in computing is black or white, true or false. If you don't know, you test and become certain. If you are prevented from accurately testing because (for example) you cannot see the node at all anymore or interact with it in any way, you assume the worst and nuke the box (STONITH). </div>
<div><br></div><div>Let's say the FS box runs out of memory. Great! I designed mod_ha_cluster to cause FS to segfault if it runs out of memory. Heartbeats stopped, other node takes over. No gray area. Wait. Did the IP get removed from the box? No? Don't know? STONITH. Did that fail? Seriously? You deployed the system wrong; don't blame me for your mistakes.</div>
<div><br></div><div>Did the hard drive go away? Great! I have a test for that and a way to tell the other nodes I need to be STONITH'd if I cannot reboot myself.</div><div><br></div><div>Did FS deadlock? Great! No more heartbeats. Other node takes over. STONITH.</div>
<div><br></div><div>Did a module in FS take an event from the eventing thread and get stuck spinning, never to return? Great! No more heartbeats. Other node takes over. STONITH.</div><div><br></div><div>Did a module in FS launch 128 threads, all of which want to use 100% CPU? Great! Untimely heartbeat delivery, other node takes over. STONITH.</div>
<div><br></div><div>Did your dual-router network have the connection between the two routers go down leaving you with a split network? Great! If you have that secondary network I talked about, it's all properly detected and handled for you! If not, well, don't blame me for your failures.</div>
<div><br></div><div>Did someone slap a firewall rule on the box and we suddenly cannot accept SIP messages? Great! One of the other nodes in the cluster will be sending us test SIP traffic on occasion and when we see it doesn't work anymore, we shut down and another node takes over.</div>
<div class="im">
<div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
I'd just like to have HA that works everytime and everywhere and try<br></blockquote><div> </div></div><div>So does everyone else. That is why I want to write mod_ha_cluster. Because what is there right now is overly complex, difficult to configure and test, and does not and cannot catch all of the possible ways in which a FS system can fail.</div>
<div><br></div><div><br></div></div>
<br>_________________________________________________________________________<br>
Professional FreeSWITCH Consulting Services:<br>
<a href="mailto:consulting@freeswitch.org">consulting@freeswitch.org</a><br>
<a href="http://www.freeswitchsolutions.com" target="_blank">http://www.freeswitchsolutions.com</a><br>
<br>
FreeSWITCH-powered IP PBX: The CudaTel Communication Server<br>
<a href="http://www.cudatel.com" target="_blank">http://www.cudatel.com</a><br>
<br>
Official FreeSWITCH Sites<br>
<a href="http://www.freeswitch.org" target="_blank">http://www.freeswitch.org</a><br>
<a href="http://wiki.freeswitch.org" target="_blank">http://wiki.freeswitch.org</a><br>
<a href="http://www.cluecon.com" target="_blank">http://www.cluecon.com</a><br>
<br>
FreeSWITCH-users mailing list<br>
<a href="mailto:FreeSWITCH-users@lists.freeswitch.org">FreeSWITCH-users@lists.freeswitch.org</a><br>
<a href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/listinfo/freeswitch-users</a><br>
UNSUBSCRIBE:<a href="http://lists.freeswitch.org/mailman/options/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/options/freeswitch-users</a><br>
<a href="http://www.freeswitch.org" target="_blank">http://www.freeswitch.org</a><br>
<br></blockquote></div><br></div></div></div>