<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META content="text/html; charset=iso-8859-1" http-equiv=Content-Type>
<META name=GENERATOR content="MSHTML 8.00.6001.18939">
<STYLE></STYLE>
</HEAD>
<BODY bgColor=#ffffff>
<DIV><FONT size=2>Avi,</FONT></DIV>
<DIV><FONT size=2></FONT> </DIV>
<DIV><FONT size=2>I think this thread is more related to
HB/Pacemaker.</FONT></DIV>
<DIV><FONT size=2>they have a lot of doc of how to create a
cluster.</FONT></DIV>
<DIV><FONT size=2>Maybe go to check it, because as I said to you you
can't</FONT></DIV>
<DIV><FONT size=2>build a cluster with only a thread in Freeswitchy</FONT></DIV>
<BLOCKQUOTE
style="BORDER-LEFT: #000000 2px solid; PADDING-LEFT: 5px; PADDING-RIGHT: 0px; MARGIN-LEFT: 5px; MARGIN-RIGHT: 0px">
<DIV style="FONT: 10pt arial">----- Original Message ----- </DIV>
<DIV
style="FONT: 10pt arial; BACKGROUND: #e4e4e4; font-color: black"><B>From:</B>
<A title=Avi@aMarcus.com href="mailto:Avi@aMarcus.com">Avi Marcus</A> </DIV>
<DIV style="FONT: 10pt arial"><B>To:</B> <A
title=freeswitch-users@lists.freeswitch.org
href="mailto:freeswitch-users@lists.freeswitch.org">FreeSWITCH Users Help</A>
</DIV>
<DIV style="FONT: 10pt arial"><B>Sent:</B> Sunday, January 02, 2011 10:38
AM</DIV>
<DIV style="FONT: 10pt arial"><B>Subject:</B> Re: [Freeswitch-users]
FreeSWITCH & Heartbeat / Pacemaker - Please Help setting up</DIV>
<DIV><BR></DIV>
<DIV dir=ltr>Yes, yes: fs_cli -x "sofia recover"
I understand the freeswitch parts.
<DIV>Now how does that get set up with heartbeat/pacemaker?</DIV>
<DIV><BR></DIV>
<DIV>You seem to assume I have a working pacemaker understanding, which I do
not. I wouldn't mind learning about it *if I saw any docs that made
sense.*</DIV>
<DIV>-Avi<BR><BR>
<DIV class=gmail_quote>On Sun, Jan 2, 2011 at 12:31 PM, Steven Ayre <SPAN
dir=ltr><<A
href="mailto:steveayre@gmail.com">steveayre@gmail.com</A>></SPAN>
wrote:<BR>
<BLOCKQUOTE
style="BORDER-LEFT: #ccc 1px solid; MARGIN: 0px 0px 0px 0.8ex; PADDING-LEFT: 1ex"
class=gmail_quote>It's an API command that you can run via ESL. You can do
that from a<BR>script using fs_cli and its -x/--execute
option.<BR><BR>Something like this:<BR><BR>fs_cli --host=otherhost
--password=secretpasswd --execute="sofia recover"<BR><BR>-Steve<BR>
<DIV>
<DIV></DIV>
<DIV class=h5><BR><BR>On 2 January 2011 09:43, Avi Marcus <<A
href="mailto:Avi@amarcus.com">Avi@amarcus.com</A>> wrote:<BR>> Thanks,
I noticed the -nonat already.<BR>> What do you mean by running sofia
recover from my init script? I<BR>> don't understand how that
would be triggered by heartbeat/pacemaker. Any<BR>> explanatory docs on
the issue would be nice, but everything I've seen was<BR>> explaining
exact parts and nothing ever seemed to explain the general syntax<BR>> of
everything.<BR>> Does anyone have a working example that they can wikify
and explain?<BR>> Thanks,<BR>> Avi<BR>><BR>> On Sun, Jan 2, 2011
at 4:06 AM, Seven Du <<A
href="mailto:dujinfang@gmail.com">dujinfang@gmail.com</A>>
wrote:<BR>>><BR>>> the wiki page already said you can start the
spare FS ahead to speed<BR>>> switch over up.<BR>>><BR>>>
it means if you use ip_nonlocal_bind and start the spare FS ahead,
you<BR>>> only need to run sofia recover in you init script without
waiting for<BR>>> the actually FS start
process.<BR>>><BR>>> On Sun, Jan 2, 2011 at 7:58 AM, Steven Ayre
<<A href="mailto:steveayre@gmail.com">steveayre@gmail.com</A>>
wrote:<BR>>> > 1) It seems freeswitch takes 8 seconds to restart.
So if it crashes<BR>>> > (unlikely) calls
should immediately get shunted over to the other box.<BR>>>
> How<BR>>> > do I set that up?<BR>>> ><BR>>>
> Just a tip, I start fs with -nonat and find that makes it start
faster.<BR>>> ><BR>>> > Steve on iPhone<BR>>> >
On 1 Jan 2011, at 20:20, Avi Marcus <Avi@aMarcus.com>
wrote:<BR>>> ><BR>>> > Hi - I'm setting up 2 parallel
computers for a HA setup. (low volume so<BR>>> > far,<BR>>>
> no need to load balance.)<BR>>> > I already have heartbeat
able to grab the public IP if the first box<BR>>> >
goes<BR>>> > down, but since I'm basically completely unfamiar with
pacemaker, I'd<BR>>> > like<BR>>> > some help.<BR>>>
> I'd imagine I'm not the only one doing this, there should be no
reason<BR>>> > for<BR>>> > me to recreate the
wheel.<BR>>> > Info should be on: <A
href="http://wiki.freeswitch.org/wiki/Freeswitch_HA"
target=_blank>http://wiki.freeswitch.org/wiki/Freeswitch_HA</A><BR>>>
> Specifically:<BR>>> > 1) It seems freeswitch takes 8 seconds
to restart. So if it crashes<BR>>> > (unlikely) calls
should immediately get shunted over to the other box.<BR>>>
> How<BR>>> > do I set that up?<BR>>> > 2) How do I
automatically trigger a sofia recover? I know via commanline<BR>>>
> it's "fs_cli -x "sofia recover" but where do I tell pacemaker to
do<BR>>> > that?<BR>>> > And I suppose a reload_xml before
(maybe after?) is a good idea, too.<BR>>> > Also, can I
put <param name="track-calls" value="true"/> in a
global<BR>>> > file,<BR>>> > or does it need to be in the
actual profile files?<BR>>> > And anything else I may be
overlooking.<BR>>> > Thanks guys!<BR>>> > -Avi
Marcus<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>>> >
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>>> About:
<A href="http://about.me/dujinfang"
target=_blank>http://about.me/dujinfang</A><BR>>> Blog: <A
href="http://www.dujinfang.com"
target=_blank>http://www.dujinfang.com</A><BR>>> Proj: <A
href="http://www.freeswitch.org.cn"
target=_blank>http://www.freeswitch.org.cn</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>> 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></DIV></DIV></BLOCKQUOTE></DIV><BR></DIV></DIV>
<P>
<HR>
<P></P>_______________________________________________<BR>FreeSWITCH-users
mailing
list<BR>FreeSWITCH-users@lists.freeswitch.org<BR>http://lists.freeswitch.org/mailman/listinfo/freeswitch-users<BR>UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users<BR>http://www.freeswitch.org<BR></BLOCKQUOTE></BODY></HTML>