<div dir="ltr">In the git contrib there's /ledr/ha.d/ but it has a haresources file which isn't how I've set up anything. Threre's a FSSofia batch file to use ESL to check if certain profile are running, but I don't get how it all fits together.<div>
I've got the IPAddr2 but no integration into actual freeswitch.</div><div>The "anything" resource says it's supposed to be a bin file that keeps running, not just a script that exits.</div><div><br></div>
<div>-Avi<br><br><div class="gmail_quote">On Sun, Jan 2, 2011 at 6:27 PM, Steven Ayre <span dir="ltr"><<a href="mailto:steveayre@gmail.com">steveayre@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
You would create a new fs resource agent<br>
<a href="http://www.linux-ha.org/wiki/Resource_Agents" target="_blank">http://www.linux-ha.org/wiki/Resource_Agents</a><br>
<br>
Essentially, they're programs (can be a shell script) given run with<br>
start stop etc arguments when an action needs to be done. You can run<br>
other commands such as fs_cli from there.<br>
<br>
I haven't written one from scratch myself though, I just use IPAddr2.<br>
Perhaps it would be useful for someone to create an example one in<br>
trunk or contrib?<br>
<br>
-Steve<br>
<div><div></div><div class="h5"><br>
<br>
On 2 January 2011 16:16, Avi Marcus <<a href="mailto:Avi@amarcus.com">Avi@amarcus.com</a>> wrote:<br>
> Where would that go?<br>
> /me is confused.<br>
><br>
> On Sun, Jan 2, 2011 at 5:36 PM, Ghulam Mustafa <<a href="http://mustafa.pk" target="_blank">mustafa.pk</a>@<a href="http://gmail.com" target="_blank">gmail.com</a>> wrote:<br>
>><br>
>> Hi, for testing purposes i modified IPaddr ocf script on both nodes<br>
>> and added following line at the end of start_ipaddr.<br>
>> /opt/switch/bin/fs_cli -x "sofia recover"<br>
>><br>
>> On 1/2/11, Steven Ayre <<a href="mailto:steveayre@gmail.com">steveayre@gmail.com</a>> wrote:<br>
>> > 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<br>
>> > recover"<br>
>> ><br>
>> > -Steve<br>
>> ><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.<br>
>> >> Any<br>
>> >> explanatory docs on the issue would be nice, but everything I've seen<br>
>> >> was<br>
>> >> explaining exact parts and nothing ever seemed to explain the general<br>
>> >> 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>><br>
>> >>> 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<br>
>> >>> > 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<br>
>> >>> > 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<br>
>> >>> > 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,<br>
>> >>> > I'd<br>
>> >>> > like<br>
>> >>> > some help.<br>
>> >>> > I'd imagine I'm not the only one doing this, there should be no<br>
>> >>> > 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<br>
>> >>> > box.<br>
>> >>> > How<br>
>> >>> > do I set that up?<br>
>> >>> > 2) How do I automatically trigger a sofia recover? I know via<br>
>> >>> > 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,<br>
>> >>> > 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>
>> >>> ><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>
>> >>> ><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>
>> >>><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>
>> >><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>
>> 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>
> 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>