<div dir="ltr">Linode has some great guides for setting it up:<div><meta http-equiv="content-type" content="text/html; charset=utf-8"><a href="http://library.linode.com/linux-ha/">http://library.linode.com/linux-ha/</a></div>
<div><br></div><div><a href="http://library.linode.com/linux-ha/"></a>I'm going with master-master mysql for now because I don't want the second machine to be completely passive, I'd like the ability to do something with it if I wished.</div>
<div>-Avi<br><br><div class="gmail_quote">On Thu, Dec 30, 2010 at 8:21 PM, Madovsky <span dir="ltr"><<a href="mailto:infos@madovsky.org">infos@madovsky.org</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
it needs to compile the kernel with drbd module...<br>
<div><div></div><div class="h5"><br>
----- Original Message -----<br>
From: "Giovanni Maruzzelli" <<a href="mailto:gmaruzz@gmail.com">gmaruzz@gmail.com</a>><br>
To: "FreeSWITCH Users Help" <<a href="mailto:freeswitch-users@lists.freeswitch.org">freeswitch-users@lists.freeswitch.org</a>><br>
Sent: Thursday, December 30, 2010 1:00 PM<br>
Subject: Re: [Freeswitch-users] FreeSWITCH SBC Setup (HA mode)<br>
<br>
<br>
DRBD is a very interesting and very performing way to replicate a<br>
block device between two or more machine, usally in an active-passive<br>
way. And is very HA aware.<br>
<br>
In classic configuration, you have two machines that control each<br>
other state via heartbeat, and a floating IP address that is assigned<br>
to the "active" machine (in addition to the "real" IP address).<br>
<br>
The "active" machine is accessed from the HA application through the<br>
floating IP.<br>
<br>
The "passive" machine is there idle, but ready to take over in case<br>
the "active" goes down (for failure or maintenance). In that case the<br>
"passive" machine automatically becomes the "active", eg: gets the<br>
floating IP.<br>
<br>
The only drawback I can see in this setup (DRBD+nativesqlite instead<br>
of odbc) is that if the FS instance or the machine itself crashes very<br>
badly, maybe will trash the db, and because the sqlite db is<br>
replicated at filesystem level via DRDB to the other machine, you'll<br>
end up with a trashed sqlite db on the "new active" machine too.<br>
<br>
Having instead a logic SQL replica (mysql, postgres, whatever) between<br>
the two machines, spares you this possible point of failure.<br>
<br>
Also, if you use another heartbeat and another floating IP address<br>
dedicated to the odbc database access, you get HA database too<br>
(meaning: you can do an upgrade of the database engine on the "active"<br>
FS machine, because you moved only the floating IP of the dabase<br>
access to the other machine).<br>
<br>
-giovanni<br>
<br>
On Thu, Dec 30, 2010 at 6:07 PM, Sam <<a href="mailto:u2nsam@gmail.com">u2nsam@gmail.com</a>> wrote:<br>
> Can use Sqlite replication in between 2 instances by sqlite3_update_hook.<br>
><br>
> Regds<br>
> Sam<br>
><br>
> On Thu, Dec 30, 2010 at 9:57 PM, Avi Marcus <<a href="mailto:Avi@amarcus.com">Avi@amarcus.com</a>> wrote:<br>
>><br>
>> The other option for failover I was considering is the default sqlite -<br>
>> set up a job to rsync it to/from the slave constantly.<br>
>> Perhaps even throw that into a ramdisk, if that makes a difference (the<br>
>> kernal may be caching it anyway).<br>
>> -Avi<br>
>> On Thu, Dec 30, 2010 at 2:14 PM, Ghulam Mustafa <<a href="http://mustafa.pk" target="_blank">mustafa.pk</a>@<a href="http://gmail.com" target="_blank">gmail.com</a>><br>
>> wrote:<br>
>>><br>
>>> Hi everyone,<br>
>>> i am trying to setup FreeSWITCH as a SBC in ha mode; for this purpose i<br>
>>> have setup two FS boxes(identical) in HA mode using heartbeat, mysql as<br>
>>> odbc<br>
>>> backend and enabled track-calls in both sip profiles. Everything is<br>
>>> working<br>
>>> as expected i.e sip sessions successfully recovered during failover in<br>
>>> both<br>
>>> directions.<br>
>>> i am just curious and would like to know should i go for odbc or is it<br>
>>> possible to avoid odbc and use drbd for /opt/switch/db directory to keep<br>
>>> .db<br>
>>> files in sync between two fs boxes. is it likely to work?<br>
>>> another question is related to performance when track-calls is enabled,<br>
>>> we are supposed to handle ~300 sip concurrent calls around the clock in<br>
>>> proxy_media mode, coming from our sip provider (on external profile) and<br>
>>> forwarding to our call-center server (configured as internal sip<br>
>>> gateway),<br>
>>> we have plenty of good hardware (quad-core Xeon servers with 8Gigs ram),<br>
>>> is<br>
>>> it good to go :) or can raise alarms?<br>
>>><br>
>>> Thanks and best regards,<br>
>>> --<br>
>>> Ghulam Mustafa<br>
>>> cell: +92 333.611.7681<br>
>>> sip: <a href="mailto:cyrenity@ekiga.net">cyrenity@ekiga.net</a><br>
>>> mail: <a href="http://mustafa.pk" target="_blank">mustafa.pk</a>@<a href="http://gmail.com" target="_blank">gmail.com</a><br>
>>> web: <a href="http://cyrenity.wordpress.com" target="_blank">cyrenity.wordpress.com</a><br>
>>><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>
>><br>
>><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>
><br>
><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>
><br>
<br>
<br>
<br>
--<br>
Sincerely,<br>
<br>
Giovanni Maruzzelli<br>
Cell : +39-347-2665618<br>
<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>
<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>
</div></div></blockquote></div><br></div></div>