HA: Starting FreeSWITCH empties the calls table?
Hi, I've been playing about with the HA setup, and have set something up similar to the HA page on the Wiki with two FS boxes using MySQL Master <> Master replication and FreeSWITCH on the secondary box listening on un-mounted IPs. This bit all works very nicely and when both boxes are up I can "fsctl crash" the current active box, then mount the IPs on the soon-to-be-live box then issue "sofia recover", it's all very impressive! What I notice though is that when I bring the "crashed" box back up, starting the freeswitch process causes all calls in the database to be removed which are then replicated across to the active box's database, if I issue a "show calls count" on both boxes the figure goes to 0 immediately after the freeswitch process is started on the secondary.
From what I can see this doesn't affect things on the newly active box, a "status" shows channels in use, much greater than the number of calls, which gradually picks up again.
I'm guessing freeswitch issues something like 'delete from calls' when it starts? For HA setups is this an appropriate thing to do? For reference, I'm currently running FreeSWITCH Version 1.0.head (git-fa3fa30 2011-10-07 11-20-36 -0500). Cheers, Neil. -- View this message in context: http://freeswitch-users.2379917.n2.nabble.com/HA-Starting-FreeSWITCH-empties... Sent from the freeswitch-users mailing list archive at Nabble.com.
it deletes based on hostname= so set the hostname different on the 2 boxes or use the switchname param in switch.conf.xml to give difft virtual hostnames On Thu, Nov 3, 2011 at 7:45 AM, peely <freeswitch@peely.com> wrote:
Hi,
I've been playing about with the HA setup, and have set something up similar to the HA page on the Wiki with two FS boxes using MySQL Master <> Master replication and FreeSWITCH on the secondary box listening on un-mounted IPs.
This bit all works very nicely and when both boxes are up I can "fsctl crash" the current active box, then mount the IPs on the soon-to-be-live box then issue "sofia recover", it's all very impressive!
What I notice though is that when I bring the "crashed" box back up, starting the freeswitch process causes all calls in the database to be removed which are then replicated across to the active box's database, if I issue a "show calls count" on both boxes the figure goes to 0 immediately after the freeswitch process is started on the secondary.
From what I can see this doesn't affect things on the newly active box, a "status" shows channels in use, much greater than the number of calls, which gradually picks up again.
I'm guessing freeswitch issues something like 'delete from calls' when it starts? For HA setups is this an appropriate thing to do?
For reference, I'm currently running FreeSWITCH Version 1.0.head (git-fa3fa30 2011-10-07 11-20-36 -0500).
Cheers,
Neil.
-- View this message in context: http://freeswitch-users.2379917.n2.nabble.com/HA-Starting-FreeSWITCH-empties... Sent from the freeswitch-users mailing list archive at Nabble.com.
FreeSWITCH-users mailing list FreeSWITCH-users@lists.freeswitch.org http://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users http://www.freeswitch.org
-- Anthony Minessale II FreeSWITCH http://www.freeswitch.org/ ClueCon http://www.cluecon.com/ Twitter: http://twitter.com/FreeSWITCH_wire AIM: anthm MSN:anthony_minessale@hotmail.com GTALK/JABBER/PAYPAL:anthony.minessale@gmail.com IRC: irc.freenode.net #freeswitch FreeSWITCH Developer Conference sip:888@conference.freeswitch.org googletalk:conf+888@conference.freeswitch.org pstn:+19193869900
Thanks Anthony, Ah, I mis-understood the requirement for the setting. The Wiki suggests both server MUST have the same name in order for sessions to be resumed on the standby, my boxes have different names to tell them apart but I set switchname to the same value on both boxes because I though I had to. I'll try setting the switchnames to different values and failover to see what happens then. Thanks, Neil. -- View this message in context: http://freeswitch-users.2379917.n2.nabble.com/HA-Starting-FreeSWITCH-empties... Sent from the freeswitch-users mailing list archive at Nabble.com.
OK, that works, keeping the switchnames different doesn't dump the calls table when the other switch starts and issuing a "sofia recover" recovers the calls still on the other box. Can I ask when exactly the "switchname" should be used then? FS 3277: http://jira.freeswitch.org/browse/FS-3277 Suggests it was implemented for the exact reason of keeping the names of two switches in an HA configuration identical, but it seems they are best left separate. I don't mind cleaning up some of the detail in the HA Wiki but would just like to know when the names should be the same and when they should be different i.e. shoudl the names be the same for kind kind of active / active setup? I don't know if Avi Marcus is reading this, maybe you can comment as I know you have a good deal of experience in getting HA setups up and running. Thanks, Neil. -- View this message in context: http://freeswitch-users.2379917.n2.nabble.com/HA-Starting-FreeSWITCH-empties... Sent from the freeswitch-users mailing list archive at Nabble.com.
Hi, That is the reason. I think FS is able to act as a cluster. So many machines act as one and should have the same name... Just an idea. greets.
Can I ask when exactly the "switchname" should be used then?
FS 3277: http://jira.freeswitch.org/browse/FS-3277
Suggests it was implemented for the exact reason of keeping the names of two switches in an HA configuration identical, but it seems they are best >left separate.
I don't mind cleaning up some of the detail in the HA Wiki but would just like to know when the names should be the same and when they should be >different i.e. shoudl the names be the same for kind kind of active / active setup?
was FS 3277: http://jira.freeswitch.org/browse/FS-3277 actually committed? If not, why? Seems like a good addition. On Fri, Nov 4, 2011 at 7:24 AM, <B.Tietz@pinguin.ag> wrote:
Hi,
That is the reason. I think FS is able to act as a cluster. So many machines act as one and should have the same name... Just an idea.
greets.
Can I ask when exactly the "switchname" should be used then?
FS 3277: http://jira.freeswitch.org/browse/FS-3277
Suggests it was implemented for the exact reason of keeping the names of two switches in an HA configuration identical, but it seems they are best >left separate.
I don't mind cleaning up some of the detail in the HA Wiki but would just like to know when the names should be the same and when they should be >different i.e. shoudl the names be the same for kind kind of active / active setup?
FreeSWITCH-users mailing list FreeSWITCH-users@lists.freeswitch.org http://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users http://www.freeswitch.org
It was committed and works, but the point is that using it as described in the Jira commit (i.e. using it in a HA failover cluster) has strange behaviour. As Anthony described, it's actually best not using this and using separate hostnames for each half of the cluster, the failover still works perfectly as both switches read pertinent data from a shared database even though their hostnames are different. There may be other reasons for using a switchname which is different to the machine's hostname and if so, then switchname in switch.conf.xml works as described. I've gone back to my test setup and am re-testing failover in test conditions, when I've put this into a live scenario i.e. everything works I'll look at the Wiki article and see if anything needs updating, although Avi has rightly noted there that the failover works with different hostnames. Neil. -- View this message in context: http://freeswitch-users.2379917.n2.nabble.com/HA-Starting-FreeSWITCH-empties... Sent from the freeswitch-users mailing list archive at Nabble.com.
Is it recommended to set the hostname the same with 2 active FS servers? Where/how do i set this variable? On Mon, Nov 7, 2011 at 12:07 PM, peely <freeswitch@peely.com> wrote:
It was committed and works, but the point is that using it as described in the Jira commit (i.e. using it in a HA failover cluster) has strange behaviour.
As Anthony described, it's actually best not using this and using separate hostnames for each half of the cluster, the failover still works perfectly as both switches read pertinent data from a shared database even though their hostnames are different. There may be other reasons for using a switchname which is different to the machine's hostname and if so, then switchname in switch.conf.xml works as described.
I've gone back to my test setup and am re-testing failover in test conditions, when I've put this into a live scenario i.e. everything works I'll look at the Wiki article and see if anything needs updating, although Avi has rightly noted there that the failover works with different hostnames.
Neil.
-- View this message in context: http://freeswitch-users.2379917.n2.nabble.com/HA-Starting-FreeSWITCH-empties... Sent from the freeswitch-users mailing list archive at Nabble.com.
FreeSWITCH-users mailing list FreeSWITCH-users@lists.freeswitch.org http://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users http://www.freeswitch.org
depend what you call "set the hostname". in FS config, yes, outside FS, no ----- Original Message ----- From: "Vik Killa" <vipkilla@gmail.com> To: "FreeSWITCH Users Help" <freeswitch-users@lists.freeswitch.org> Sent: Monday, November 07, 2011 12:37 PM Subject: Re: [Freeswitch-users] HA: Starting FreeSWITCH empties the callstable?
Is it recommended to set the hostname the same with 2 active FS servers? Where/how do i set this variable?
On Mon, Nov 7, 2011 at 12:07 PM, peely <freeswitch@peely.com> wrote:
It was committed and works, but the point is that using it as described in the Jira commit (i.e. using it in a HA failover cluster) has strange behaviour.
As Anthony described, it's actually best not using this and using separate hostnames for each half of the cluster, the failover still works perfectly as both switches read pertinent data from a shared database even though their hostnames are different. There may be other reasons for using a switchname which is different to the machine's hostname and if so, then switchname in switch.conf.xml works as described.
I've gone back to my test setup and am re-testing failover in test conditions, when I've put this into a live scenario i.e. everything works I'll look at the Wiki article and see if anything needs updating, although Avi has rightly noted there that the failover works with different hostnames.
Neil.
-- View this message in context: http://freeswitch-users.2379917.n2.nabble.com/HA-Starting-FreeSWITCH-empties... Sent from the freeswitch-users mailing list archive at Nabble.com.
FreeSWITCH-users mailing list FreeSWITCH-users@lists.freeswitch.org http://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users http://www.freeswitch.org
FreeSWITCH-users mailing list FreeSWITCH-users@lists.freeswitch.org http://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users http://www.freeswitch.org
i mean in the FS config I know the server's hostnames should different How do you set the hostname inside FS? On Mon, Nov 7, 2011 at 12:53 PM, Madovsky <infos@madovsky.org> wrote:
depend what you call "set the hostname". in FS config, yes, outside FS, no
----- Original Message ----- From: "Vik Killa" <vipkilla@gmail.com> To: "FreeSWITCH Users Help" <freeswitch-users@lists.freeswitch.org> Sent: Monday, November 07, 2011 12:37 PM Subject: Re: [Freeswitch-users] HA: Starting FreeSWITCH empties the callstable?
Is it recommended to set the hostname the same with 2 active FS servers? Where/how do i set this variable?
On Mon, Nov 7, 2011 at 12:07 PM, peely <freeswitch@peely.com> wrote:
It was committed and works, but the point is that using it as described in the Jira commit (i.e. using it in a HA failover cluster) has strange behaviour.
As Anthony described, it's actually best not using this and using separate hostnames for each half of the cluster, the failover still works perfectly as both switches read pertinent data from a shared database even though their hostnames are different. There may be other reasons for using a switchname which is different to the machine's hostname and if so, then switchname in switch.conf.xml works as described.
I've gone back to my test setup and am re-testing failover in test conditions, when I've put this into a live scenario i.e. everything works I'll look at the Wiki article and see if anything needs updating, although Avi has rightly noted there that the failover works with different hostnames.
Neil.
-- View this message in context: http://freeswitch-users.2379917.n2.nabble.com/HA-Starting-FreeSWITCH-empties... Sent from the freeswitch-users mailing list archive at Nabble.com.
FreeSWITCH-users mailing list FreeSWITCH-users@lists.freeswitch.org http://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users http://www.freeswitch.org
FreeSWITCH-users mailing list FreeSWITCH-users@lists.freeswitch.org http://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users http://www.freeswitch.org
FreeSWITCH-users mailing list FreeSWITCH-users@lists.freeswitch.org http://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users http://www.freeswitch.org
use <domain> <param name="force-register-domain" value="$${domain}"/> xml flags like the example in internal.conf.xml ----- Original Message ----- From: "Vik Killa" <vipkilla@gmail.com> To: "FreeSWITCH Users Help" <freeswitch-users@lists.freeswitch.org> Sent: Monday, November 07, 2011 12:59 PM Subject: Re: [Freeswitch-users] HA: Starting FreeSWITCH empties thecallstable?
i mean in the FS config I know the server's hostnames should different
How do you set the hostname inside FS?
On Mon, Nov 7, 2011 at 12:53 PM, Madovsky <infos@madovsky.org> wrote:
depend what you call "set the hostname". in FS config, yes, outside FS, no
----- Original Message ----- From: "Vik Killa" <vipkilla@gmail.com> To: "FreeSWITCH Users Help" <freeswitch-users@lists.freeswitch.org> Sent: Monday, November 07, 2011 12:37 PM Subject: Re: [Freeswitch-users] HA: Starting FreeSWITCH empties the callstable?
Is it recommended to set the hostname the same with 2 active FS servers? Where/how do i set this variable?
On Mon, Nov 7, 2011 at 12:07 PM, peely <freeswitch@peely.com> wrote:
It was committed and works, but the point is that using it as described in the Jira commit (i.e. using it in a HA failover cluster) has strange behaviour.
As Anthony described, it's actually best not using this and using separate hostnames for each half of the cluster, the failover still works perfectly as both switches read pertinent data from a shared database even though their hostnames are different. There may be other reasons for using a switchname which is different to the machine's hostname and if so, then switchname in switch.conf.xml works as described.
I've gone back to my test setup and am re-testing failover in test conditions, when I've put this into a live scenario i.e. everything works I'll look at the Wiki article and see if anything needs updating, although Avi has rightly noted there that the failover works with different hostnames.
Neil.
-- View this message in context: http://freeswitch-users.2379917.n2.nabble.com/HA-Starting-FreeSWITCH-empties... Sent from the freeswitch-users mailing list archive at Nabble.com.
FreeSWITCH-users mailing list FreeSWITCH-users@lists.freeswitch.org http://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users http://www.freeswitch.org
FreeSWITCH-users mailing list FreeSWITCH-users@lists.freeswitch.org http://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users http://www.freeswitch.org
FreeSWITCH-users mailing list FreeSWITCH-users@lists.freeswitch.org http://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users http://www.freeswitch.org
FreeSWITCH-users mailing list FreeSWITCH-users@lists.freeswitch.org http://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users http://www.freeswitch.org
I'm using FS in a multi-tenant env, so i have <param name="force-register-domain" value="$${domain}"/> disabled On Mon, Nov 7, 2011 at 1:10 PM, Madovsky <infos@madovsky.org> wrote:
use <domain> <param name="force-register-domain" value="$${domain}"/> xml flags like the example in internal.conf.xml
----- Original Message ----- From: "Vik Killa" <vipkilla@gmail.com> To: "FreeSWITCH Users Help" <freeswitch-users@lists.freeswitch.org> Sent: Monday, November 07, 2011 12:59 PM Subject: Re: [Freeswitch-users] HA: Starting FreeSWITCH empties thecallstable?
i mean in the FS config I know the server's hostnames should different
How do you set the hostname inside FS?
On Mon, Nov 7, 2011 at 12:53 PM, Madovsky <infos@madovsky.org> wrote:
depend what you call "set the hostname". in FS config, yes, outside FS, no
----- Original Message ----- From: "Vik Killa" <vipkilla@gmail.com> To: "FreeSWITCH Users Help" <freeswitch-users@lists.freeswitch.org> Sent: Monday, November 07, 2011 12:37 PM Subject: Re: [Freeswitch-users] HA: Starting FreeSWITCH empties the callstable?
Is it recommended to set the hostname the same with 2 active FS servers? Where/how do i set this variable?
On Mon, Nov 7, 2011 at 12:07 PM, peely <freeswitch@peely.com> wrote:
It was committed and works, but the point is that using it as described in the Jira commit (i.e. using it in a HA failover cluster) has strange behaviour.
As Anthony described, it's actually best not using this and using separate hostnames for each half of the cluster, the failover still works perfectly as both switches read pertinent data from a shared database even though their hostnames are different. There may be other reasons for using a switchname which is different to the machine's hostname and if so, then switchname in switch.conf.xml works as described.
I've gone back to my test setup and am re-testing failover in test conditions, when I've put this into a live scenario i.e. everything works I'll look at the Wiki article and see if anything needs updating, although Avi has rightly noted there that the failover works with different hostnames.
Neil.
-- View this message in context: http://freeswitch-users.2379917.n2.nabble.com/HA-Starting-FreeSWITCH-empties... Sent from the freeswitch-users mailing list archive at Nabble.com.
FreeSWITCH-users mailing list FreeSWITCH-users@lists.freeswitch.org http://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users http://www.freeswitch.org
FreeSWITCH-users mailing list FreeSWITCH-users@lists.freeswitch.org http://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users http://www.freeswitch.org
FreeSWITCH-users mailing list FreeSWITCH-users@lists.freeswitch.org http://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users http://www.freeswitch.org
FreeSWITCH-users mailing list FreeSWITCH-users@lists.freeswitch.org http://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users http://www.freeswitch.org
FreeSWITCH-users mailing list FreeSWITCH-users@lists.freeswitch.org http://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users http://www.freeswitch.org
switchname param in switch.conf.xml as explained above............... On Mon, Nov 7, 2011 at 12:16 PM, Vik Killa <vipkilla@gmail.com> wrote:
I'm using FS in a multi-tenant env, so i have <param name="force-register-domain" value="$${domain}"/> disabled
On Mon, Nov 7, 2011 at 1:10 PM, Madovsky <infos@madovsky.org> wrote:
use <domain> <param name="force-register-domain" value="$${domain}"/> xml flags like the example in internal.conf.xml
----- Original Message ----- From: "Vik Killa" <vipkilla@gmail.com> To: "FreeSWITCH Users Help" <freeswitch-users@lists.freeswitch.org> Sent: Monday, November 07, 2011 12:59 PM Subject: Re: [Freeswitch-users] HA: Starting FreeSWITCH empties thecallstable?
i mean in the FS config I know the server's hostnames should different
How do you set the hostname inside FS?
On Mon, Nov 7, 2011 at 12:53 PM, Madovsky <infos@madovsky.org> wrote:
depend what you call "set the hostname". in FS config, yes, outside FS, no
----- Original Message ----- From: "Vik Killa" <vipkilla@gmail.com> To: "FreeSWITCH Users Help" <freeswitch-users@lists.freeswitch.org> Sent: Monday, November 07, 2011 12:37 PM Subject: Re: [Freeswitch-users] HA: Starting FreeSWITCH empties the callstable?
Is it recommended to set the hostname the same with 2 active FS servers? Where/how do i set this variable?
On Mon, Nov 7, 2011 at 12:07 PM, peely <freeswitch@peely.com> wrote:
It was committed and works, but the point is that using it as described in the Jira commit (i.e. using it in a HA failover cluster) has strange behaviour.
As Anthony described, it's actually best not using this and using separate hostnames for each half of the cluster, the failover still works perfectly as both switches read pertinent data from a shared database even though their hostnames are different. There may be other reasons for using a switchname which is different to the machine's hostname and if so, then switchname in switch.conf.xml works as described.
I've gone back to my test setup and am re-testing failover in test conditions, when I've put this into a live scenario i.e. everything works I'll look at the Wiki article and see if anything needs updating, although Avi has rightly noted there that the failover works with different hostnames.
Neil.
-- View this message in context:
http://freeswitch-users.2379917.n2.nabble.com/HA-Starting-FreeSWITCH-empties...
Sent from the freeswitch-users mailing list archive at Nabble.com.
FreeSWITCH-users mailing list FreeSWITCH-users@lists.freeswitch.org http://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE: http://lists.freeswitch.org/mailman/options/freeswitch-users http://www.freeswitch.org
FreeSWITCH-users mailing list FreeSWITCH-users@lists.freeswitch.org http://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE: http://lists.freeswitch.org/mailman/options/freeswitch-users http://www.freeswitch.org
FreeSWITCH-users mailing list FreeSWITCH-users@lists.freeswitch.org http://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE: http://lists.freeswitch.org/mailman/options/freeswitch-users http://www.freeswitch.org
FreeSWITCH-users mailing list FreeSWITCH-users@lists.freeswitch.org http://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE: http://lists.freeswitch.org/mailman/options/freeswitch-users http://www.freeswitch.org
FreeSWITCH-users mailing list FreeSWITCH-users@lists.freeswitch.org http://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users http://www.freeswitch.org
FreeSWITCH-users mailing list FreeSWITCH-users@lists.freeswitch.org http://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users http://www.freeswitch.org
-- Anthony Minessale II FreeSWITCH http://www.freeswitch.org/ ClueCon http://www.cluecon.com/ Twitter: http://twitter.com/FreeSWITCH_wire AIM: anthm MSN:anthony_minessale@hotmail.com GTALK/JABBER/PAYPAL:anthony.minessale@gmail.com IRC: irc.freenode.net #freeswitch FreeSWITCH Developer Conference sip:888@conference.freeswitch.org googletalk:conf+888@conference.freeswitch.org pstn:+19193869900
I didn't see an explanation or example of how to set it anywhere but i added <param name="switchname" value="yourmom.com"/> to autoload_configs/switch.conf.xml under <settings> and it set the FS hostname to yourmom.com Thanks! <snip> On Mon, Nov 7, 2011 at 2:47 PM, Anthony Minessale <anthony.minessale@gmail.com> wrote:
switchname param in switch.conf.xml as explained above...............
It was committed and works, but the point is that using it as described in the Jira commit (i.e. using it in a HA failover cluster) has strange behaviour. As Anthony described, it's actually best not using this and using separate hostnames for each half of the cluster, the failover still works perfectly as both switches read pertinent data from a shared database even though their hostnames are different. There may be other reasons for using a switchname which is different to the machine's hostname and if so, then switchname in switch.conf.xml works as described. I've gone back to my test setup and am re-testing failover in test conditions, when I've put this into a live scenario i.e. everything works I'll look at the Wiki article and see if anything needs updating, although Avi has rightly noted there that the failover works with different hostnames. Neil. -- View this message in context: http://freeswitch-users.2379917.n2.nabble.com/HA-Starting-FreeSWITCH-empties... Sent from the freeswitch-users mailing list archive at Nabble.com.
It was committed and works, but the point is that using it as described in the Jira commit (i.e. using it in a HA failover cluster) has strange behaviour. As Anthony described, it's actually best not using this and using separate hostnames for each half of the cluster, the failover still works perfectly as both switches read pertinent data from a shared database even though their hostnames are different. There may be other reasons for using a switchname which is different to the machine's hostname and if so, then switchname in switch.conf.xml works as described. I've gone back to my test setup and am re-testing failover in test conditions, when I've put this into a live scenario i.e. everything works I'll look at the Wiki article and see if anything needs updating, although Avi has rightly noted there that the failover works with different hostnames. Neil. -- View this message in context: http://freeswitch-users.2379917.n2.nabble.com/HA-Starting-FreeSWITCH-empties... Sent from the freeswitch-users mailing list archive at Nabble.com.
It was committed and works, but the point is that using it as described in the Jira commit (i.e. using it in a HA failover cluster) has strange behaviour. As Anthony described, it's actually best not using this and using separate hostnames for each half of the cluster, the failover still works perfectly as both switches read pertinent data from a shared database even though their hostnames are different. There may be other reasons for using a switchname which is different to the machine's hostname and if so, then switchname in switch.conf.xml works as described. I've gone back to my test setup and am re-testing failover in test conditions, when I've put this into a live scenario i.e. everything works I'll look at the Wiki article and see if anything needs updating, although Avi has rightly noted there that the failover works with different hostnames. Neil. -- View this message in context: http://freeswitch-users.2379917.n2.nabble.com/HA-Starting-FreeSWITCH-empties... Sent from the freeswitch-users mailing list archive at Nabble.com.
cluster principle is a group of nodes. each node has a different name of course.. ----- Original Message ----- From: "Vik Killa" <vipkilla@gmail.com> To: "FreeSWITCH Users Help" <freeswitch-users@lists.freeswitch.org> Sent: Monday, November 07, 2011 9:08 AM Subject: Re: [Freeswitch-users] HA: Starting FreeSWITCH empties the callstable?
was FS 3277: http://jira.freeswitch.org/browse/FS-3277 actually committed? If not, why? Seems like a good addition.
On Fri, Nov 4, 2011 at 7:24 AM, <B.Tietz@pinguin.ag> wrote:
Hi,
That is the reason. I think FS is able to act as a cluster. So many machines act as one and should have the same name... Just an idea.
greets.
Can I ask when exactly the "switchname" should be used then?
FS 3277: http://jira.freeswitch.org/browse/FS-3277
Suggests it was implemented for the exact reason of keeping the names of two switches in an HA configuration identical, but it seems they are best
left separate.
I don't mind cleaning up some of the detail in the HA Wiki but would just like to know when the names should be the same and when they should be
different i.e. shoudl the names be the same for kind kind of active / active setup?
FreeSWITCH-users mailing list FreeSWITCH-users@lists.freeswitch.org http://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users http://www.freeswitch.org
FreeSWITCH-users mailing list FreeSWITCH-users@lists.freeswitch.org http://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users http://www.freeswitch.org
The main use for it was a way to supersede pulling the hostname off the machine so you could set any value you wish that would be treated as if it were the hostname for the purposes of the many things that are intentionally kept separate based on hostname. The best practice is to have different hostnames because any data that should be shared over the database intentionally does not consider the hostname. On Fri, Nov 4, 2011 at 6:06 AM, peely <freeswitch@peely.com> wrote:
OK, that works, keeping the switchnames different doesn't dump the calls table when the other switch starts and issuing a "sofia recover" recovers the calls still on the other box.
Can I ask when exactly the "switchname" should be used then?
FS 3277: http://jira.freeswitch.org/browse/FS-3277
Suggests it was implemented for the exact reason of keeping the names of two switches in an HA configuration identical, but it seems they are best left separate.
I don't mind cleaning up some of the detail in the HA Wiki but would just like to know when the names should be the same and when they should be different i.e. shoudl the names be the same for kind kind of active / active setup?
I don't know if Avi Marcus is reading this, maybe you can comment as I know you have a good deal of experience in getting HA setups up and running.
Thanks,
Neil.
-- View this message in context: http://freeswitch-users.2379917.n2.nabble.com/HA-Starting-FreeSWITCH-empties... Sent from the freeswitch-users mailing list archive at Nabble.com.
FreeSWITCH-users mailing list FreeSWITCH-users@lists.freeswitch.org http://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users http://www.freeswitch.org
-- Anthony Minessale II FreeSWITCH http://www.freeswitch.org/ ClueCon http://www.cluecon.com/ Twitter: http://twitter.com/FreeSWITCH_wire AIM: anthm MSN:anthony_minessale@hotmail.com GTALK/JABBER/PAYPAL:anthony.minessale@gmail.com IRC: irc.freenode.net #freeswitch FreeSWITCH Developer Conference sip:888@conference.freeswitch.org googletalk:conf+888@conference.freeswitch.org pstn:+19193869900
participants (5)
-
Anthony Minessale
-
B.Tietz@pinguin.ag
-
Madovsky
-
peely
-
Vik Killa