Re: [asterisk-users] Asterisk HA with heartbeat and systemd
2015-10-19 22:05 GMT+02:00 Telium Technical Support: > If you’re still in the planning stage, there’s a lot more to think about. > Your Asterisk failure detection will be very simplistic (is the process > dead). Synchronization of data – without risking synchronization of > corrupt data to a peer. Prevent a deteriorating/failing peer corruption > from corrupted the other peer (i.e. now shared resources). Awareness of > upstream (e.g.: route/network) failures making the peer unavailable – and > how to detect that. Etc. etc. > > > > Here’s a good checklist of things to consider in your design: > http://www.voip-info.org/wiki/view/Asterisk+High+Availability+Design > Yes I read this document and found it very informative. I don't think I'll be able to detect Asterisk failures automatically so basically I'll rely on a manual processes to either move from one server to the other or to sync configs (in fact, I'll keep both configs as independant as possible to avoid one machine's config to corrupt the other). > > > If you are building a small/home office HA then the free version of > commercial tools may be the way to go. If have a $0 budget but for a > larger installation, use the design guide above to help figure out which > compromises to make. (Heartbeat / Linux HA is better than nothing). > > > > -M- > > -- > _ > -- Bandwidth and Colocation Provided by http://www.api-digital.com -- > New to Asterisk? Join us for a live introductory webinar every Thurs: >http://www.asterisk.org/hello > > asterisk-users mailing list > To UNSUBSCRIBE or update options visit: >http://lists.digium.com/mailman/listinfo/asterisk-users > -- _ -- Bandwidth and Colocation Provided by http://www.api-digital.com -- New to Asterisk? Join us for a live introductory webinar every Thurs: http://www.asterisk.org/hello asterisk-users mailing list To UNSUBSCRIBE or update options visit: http://lists.digium.com/mailman/listinfo/asterisk-users
Re: [asterisk-users] Asterisk HA with heartbeat and systemd
My machines have both a /usr/lib/ocf/resource.d/heartbeat/asterisk file (from resource-agents package, it seems). If I'm not mistaken, this file is not run when asterisk is started/stopped by hb_standby/hb_takeover commands (I added a touch /tmp/foobar line in /usr/lib/ocf/resource.d/heartbeat/asterisk to check this). How does this script compare with rc.debian.asterisk that can be found in contrib/init.d directory ? Is this file maintained by Asterisk community and closely following Asterisk evolution or is it rather independant from Asterisk development team ? What would you recommend on this subject ? 2015-10-19 20:11 GMT+02:00 Olivier: > Hello, > > I'm setting up an active-passive Asterisk solution on Debian Jessie > platforms. > I'm using heartbeat package. > > As I'm not yet familiar with either systemd or heartbeat, I've got a > couple of questions: > > 1. At the moment, I'm using /usr/share/heartbeat/hb_standby or > /usr/share/heartbeat/hb_takeover scripts to both : > - allocate "floating" IP addresses to active server > - start/stop asterisk daemon. > > Is this appropriate ? What would you recommand instead ? > > > 2. My /etc/ha.d/haresources file contains: > machine1 192.168.1.3 asterisk > > With this, I can see that asterisk daemon is correctly started and stopped > when hb_standby/hb_takeover commands are typed but "service > asterisk,status" is a bit misleading with: > > service asterisk status > ● asterisk.service - LSB: Asterisk PBX >Loaded: loaded (/etc/init.d/asterisk) >Active: active (exited) since lun. 2015-10-19 18:02:58 CEST; 41min ago > Process: 19576 ExecStop=/etc/init.d/asterisk stop (code=exited, > status=0/SUCCESS) > Process: 19583 ExecStart=/etc/init.d/asterisk start (code=exited, > status=0/SUCCESS) > > How can I best improve this and configure heartbeat to use "service > asterisk start/stop" ? > > Regards > > -- _ -- Bandwidth and Colocation Provided by http://www.api-digital.com -- New to Asterisk? Join us for a live introductory webinar every Thurs: http://www.asterisk.org/hello asterisk-users mailing list To UNSUBSCRIBE or update options visit: http://lists.digium.com/mailman/listinfo/asterisk-users
Re: [asterisk-users] Asterisk HA with heartbeat and systemd
If you’re still in the planning stage, there’s a lot more to think about. Your Asterisk failure detection will be very simplistic (is the process dead). Synchronization of data – without risking synchronization of corrupt data to a peer. Prevent a deteriorating/failing peer corruption from corrupted the other peer (i.e. now shared resources). Awareness of upstream (e.g.: route/network) failures making the peer unavailable – and how to detect that. Etc. etc. Here’s a good checklist of things to consider in your design: http://www.voip-info.org/wiki/view/Asterisk+High+Availability+Design If you are building a small/home office HA then the free version of commercial tools may be the way to go. If have a $0 budget but for a larger installation, use the design guide above to help figure out which compromises to make. (Heartbeat / Linux HA is better than nothing). -M- -- _ -- Bandwidth and Colocation Provided by http://www.api-digital.com -- New to Asterisk? Join us for a live introductory webinar every Thurs: http://www.asterisk.org/hello asterisk-users mailing list To UNSUBSCRIBE or update options visit: http://lists.digium.com/mailman/listinfo/asterisk-users
[asterisk-users] Asterisk HA with heartbeat and systemd
Hello, I'm setting up an active-passive Asterisk solution on Debian Jessie platforms. I'm using heartbeat package. As I'm not yet familiar with either systemd or heartbeat, I've got a couple of questions: 1. At the moment, I'm using /usr/share/heartbeat/hb_standby or /usr/share/heartbeat/hb_takeover scripts to both : - allocate "floating" IP addresses to active server - start/stop asterisk daemon. Is this appropriate ? What would you recommand instead ? 2. My /etc/ha.d/haresources file contains: machine1 192.168.1.3 asterisk With this, I can see that asterisk daemon is correctly started and stopped when hb_standby/hb_takeover commands are typed but "service asterisk,status" is a bit misleading with: service asterisk status ● asterisk.service - LSB: Asterisk PBX Loaded: loaded (/etc/init.d/asterisk) Active: active (exited) since lun. 2015-10-19 18:02:58 CEST; 41min ago Process: 19576 ExecStop=/etc/init.d/asterisk stop (code=exited, status=0/SUCCESS) Process: 19583 ExecStart=/etc/init.d/asterisk start (code=exited, status=0/SUCCESS) How can I best improve this and configure heartbeat to use "service asterisk start/stop" ? Regards -- _ -- Bandwidth and Colocation Provided by http://www.api-digital.com -- New to Asterisk? Join us for a live introductory webinar every Thurs: http://www.asterisk.org/hello asterisk-users mailing list To UNSUBSCRIBE or update options visit: http://lists.digium.com/mailman/listinfo/asterisk-users
Re: [asterisk-users] Asterisk HA
On 6/6/13 4:53 am, Gopalakrishnan N wrote: Any other HA applications available or the lsyncd with pacemaker is good? I generally use Pacemaker with Heartbeat, which seems to work pretty well. Kind regards, Chris -- This email is made from 100% recycled electrons -- _ -- Bandwidth and Colocation Provided by http://www.api-digital.com -- New to Asterisk? Join us for a live introductory webinar every Thurs: http://www.asterisk.org/hello asterisk-users mailing list To UNSUBSCRIBE or update options visit: http://lists.digium.com/mailman/listinfo/asterisk-users
[asterisk-users] Asterisk HA
I was go through'ing the following links for HA, https://wiki.asterisk.org/wiki/display/TOP/Failover+-+Linux - which doesn't have file syncing. https://www.johncahill.net/wiki/index.php/2_Node_Active/Passive_cluster - this one has file syncing with pacemaker Any other HA applications available or the lsyncd with pacemaker is good? Regards -- _ -- Bandwidth and Colocation Provided by http://www.api-digital.com -- New to Asterisk? Join us for a live introductory webinar every Thurs: http://www.asterisk.org/hello asterisk-users mailing list To UNSUBSCRIBE or update options visit: http://lists.digium.com/mailman/listinfo/asterisk-users
Re: [asterisk-users] asterisk HA for queue calls
Hi Dhaval, Thanks for your much appreciable reply. Sorry for late reply as I was out of office. We considered the situation that pending queue call cannot be retrieved during failover, and hence it's ok with us if we loose the calls also. Regards, Rajib Date: Wed, 4 May 2011 14:15:59 +0530 From: DHAVAL INDRODIYA dhaval.it01...@gmail.com Subject: Re: [asterisk-users] asterisk HA for queue calls To: Asterisk Users Mailing List - Non-Commercial Discussion asterisk-users@lists.digium.com Message-ID: BANLkTi=ypq1up4ti35-ljzbw9_ju+v9...@mail.gmail.com Content-Type: text/plain; charset=iso-8859-1 Hi Rajib, I think It is not possible with asterisk , as primary server goes down it will stop asterisk services so once asterisk service down i think all connected calls to queue will hangup automatically, and you cannot retrive those calls as they all are disconnected . I think you need to consider more on load balancing per asterisk server in that case the problem of Availability is solved to some level, If You using SIP protocol then you can think of OPENSER and from that you can use loadbalancer which routed calls in a way an depend on machine strength. I hope this idea will useful to solve your requirement. Regards Dhaval On Wed, May 4, 2011 at 1:13 PM, Deka, Rajib IN MAA SL rajib.d...@siemens.com wrote: Hello List, We are running two asterisk machines in virtual IP as primary and secondary server. Initially virtual IP will be active in primary server; during the failure of primary secondary will get the virtual IP. Is there any way to retrieve pending queue calls from primary to secondary, in case primary fails? Does asterisk provide any interface to do it or we have to write some application on asterisk to do the same. Regards, Rajib Important notice: This e-mail and any attachment there to contains corporate proprietary information. If you have received it by mistake, please notify us immediately by reply e-mail and delete this e-mail and its attachments from your system. Thank You. -- _ -- Bandwidth and Colocation Provided by http://www.api-digital.com -- New to Asterisk? Join us for a live introductory webinar every Thurs: http://www.asterisk.org/hello asterisk-users mailing list To UNSUBSCRIBE or update options visit: http://lists.digium.com/mailman/listinfo/asterisk-users
[asterisk-users] asterisk HA for queue calls
Hello List, We are running two asterisk machines in virtual IP as primary and secondary server. Initially virtual IP will be active in primary server; during the failure of primary secondary will get the virtual IP. Is there any way to retrieve pending queue calls from primary to secondary, in case primary fails? Does asterisk provide any interface to do it or we have to write some application on asterisk to do the same. Regards, Rajib Important notice: This e-mail and any attachment there to contains corporate proprietary information. If you have received it by mistake, please notify us immediately by reply e-mail and delete this e-mail and its attachments from your system. Thank You. -- _ -- Bandwidth and Colocation Provided by http://www.api-digital.com -- New to Asterisk? Join us for a live introductory webinar every Thurs: http://www.asterisk.org/hello asterisk-users mailing list To UNSUBSCRIBE or update options visit: http://lists.digium.com/mailman/listinfo/asterisk-users
Re: [asterisk-users] asterisk HA for queue calls
Hi Rajib, I think It is not possible with asterisk , as primary server goes down it will stop asterisk services so once asterisk service down i think all connected calls to queue will hangup automatically, and you cannot retrive those calls as they all are disconnected . I think you need to consider more on load balancing per asterisk server in that case the problem of Availability is solved to some level, If You using SIP protocol then you can think of OPENSER and from that you can use loadbalancer which routed calls in a way an depend on machine strength. I hope this idea will useful to solve your requirement. Regards Dhaval On Wed, May 4, 2011 at 1:13 PM, Deka, Rajib IN MAA SL rajib.d...@siemens.com wrote: Hello List, We are running two asterisk machines in virtual IP as primary and secondary server. Initially virtual IP will be active in primary server; during the failure of primary secondary will get the virtual IP. Is there any way to retrieve pending queue calls from primary to secondary, in case primary fails? Does asterisk provide any interface to do it or we have to write some application on asterisk to do the same. Regards, Rajib -- Important notice: This e-mail and any attachment there to contains corporate proprietary information. If you have received it by mistake, please notify us immediately by reply e-mail and delete this e-mail and its attachments from your system. Thank You. -- _ -- Bandwidth and Colocation Provided by http://www.api-digital.com -- New to Asterisk? Join us for a live introductory webinar every Thurs: http://www.asterisk.org/hello asterisk-users mailing list To UNSUBSCRIBE or update options visit: http://lists.digium.com/mailman/listinfo/asterisk-users -- _ -- Bandwidth and Colocation Provided by http://www.api-digital.com -- New to Asterisk? Join us for a live introductory webinar every Thurs: http://www.asterisk.org/hello asterisk-users mailing list To UNSUBSCRIBE or update options visit: http://lists.digium.com/mailman/listinfo/asterisk-users
Re: [asterisk-users] Asterisk HA Current Thoughts (Centos 5.3 Platform)
Google for some of the How Tos built around Elastix and Trixbox. Both of these are CentOS based as well. good luck. - Original Message - From: James Hankins j...@allpointsmediaworks.com To: Asterisk Users Mailing List - Non-Commercial Discussion asterisk-users@lists.digium.com Sent: Friday, October 2, 2009 1:58:15 PM GMT -05:00 US/Canada Eastern Subject: [asterisk-users] Asterisk HA Current Thoughts (Centos 5.3 Platform) I'm looking into doing an HA setup for a Asterisk 1.4 install on Centos. I've seen a number of different pointers to packages for this some of which are packages that seem quite dated from an update perspective (Ultra Monkey links I've seen haven't been updated in a while). What is the current best practice on this for this platform? My first foray into any of the Linux HA setups but not afraid of the command line. Jim ___ -- Bandwidth and Colocation Provided by http://www.api-digital.com -- AstriCon 2009 - October 13 - 15 Phoenix, Arizona Register Now: http://www.astricon.net asterisk-users mailing list To UNSUBSCRIBE or update options visit: http://lists.digium.com/mailman/listinfo/asterisk-users ___ -- Bandwidth and Colocation Provided by http://www.api-digital.com -- AstriCon 2009 - October 13 - 15 Phoenix, Arizona Register Now: http://www.astricon.net asterisk-users mailing list To UNSUBSCRIBE or update options visit: http://lists.digium.com/mailman/listinfo/asterisk-users
Re: [asterisk-users] Asterisk HA Current Thoughts (Centos 5.3 Platform)
Checkout nerdvittles.com. They have good stuff when they are up. _ From: asterisk-users-boun...@lists.digium.com [mailto:asterisk-users-boun...@lists.digium.com] On Behalf Of astgro...@comcast.net Sent: Tuesday, October 06, 2009 2:49 PM To: Asterisk Users Mailing List - Non-Commercial Discussion Subject: Re: [asterisk-users] Asterisk HA Current Thoughts (Centos 5.3 Platform) Google for some of the How Tos built around Elastix and Trixbox. Both of these are CentOS based as well. good luck. - Original Message - From: James Hankins j...@allpointsmediaworks.com To: Asterisk Users Mailing List - Non-Commercial Discussion asterisk-users@lists.digium.com Sent: Friday, October 2, 2009 1:58:15 PM GMT -05:00 US/Canada Eastern Subject: [asterisk-users] Asterisk HA Current Thoughts (Centos 5.3 Platform) I'm looking into doing an HA setup for a Asterisk 1.4 install on Centos. I've seen a number of different pointers to packages for this some of which are packages that seem quite dated from an update perspective (Ultra Monkey links I've seen haven't been updated in a while). What is the current best practice on this for this platform? My first foray into any of the Linux HA setups but not afraid of the command line. Jim ___ -- Bandwidth and Colocation Provided by http://www.api-digital.com -- AstriCon 2009 - October 13 - 15 Phoenix, Arizona Register Now: http://www.astricon.net asterisk-users mailing list To UNSUBSCRIBE or update options visit: http://lists.digium.com/mailman/listinfo/asterisk-users ___ -- Bandwidth and Colocation Provided by http://www.api-digital.com -- AstriCon 2009 - October 13 - 15 Phoenix, Arizona Register Now: http://www.astricon.net asterisk-users mailing list To UNSUBSCRIBE or update options visit: http://lists.digium.com/mailman/listinfo/asterisk-users
[asterisk-users] Asterisk HA Current Thoughts (Centos 5.3 Platform)
I'm looking into doing an HA setup for a Asterisk 1.4 install on Centos. I've seen a number of different pointers to packages for this some of which are packages that seem quite dated from an update perspective (Ultra Monkey links I've seen haven't been updated in a while). What is the current best practice on this for this platform? My first foray into any of the Linux HA setups but not afraid of the command line. Jim ___ -- Bandwidth and Colocation Provided by http://www.api-digital.com -- AstriCon 2009 - October 13 - 15 Phoenix, Arizona Register Now: http://www.astricon.net asterisk-users mailing list To UNSUBSCRIBE or update options visit: http://lists.digium.com/mailman/listinfo/asterisk-users
Re: [asterisk-users] Asterisk HA Current Thoughts (Centos 5.3 Platform)
I have been working on a HA procedure for Asterisk on CentOS 5.3, but haven't had time to publish it. It is a little complex, but here are the components used: - CentOS 5.3 - Asterisk 1.6 (version doesn't matter) - MySQL - Cluster services - GFS2 - DRBD A basic run-down is: * Two servers configured with DRBD in Master-Master mode. All data is replicated between the two so in case of a failure there should be very limited data loss (voicemail) if any at all. * MySQL and Asterisk run on the same node. If you have an external MySQL server / don't use MySQL, then this is not an issue. The MySQL data directory is also mounted on a GFS2/DRBD partition. The most important thing here is to use INNODB, NOT MYISAM! MyISAM doesn't take kindly fail-over... * Using Cluster services enables you to create GFS2 file systems (on top of DRBD) so that both nodes can see the data at the same time. This is important to reduce the time required for fail-over. Cluster services also handles starting/stopping the services, and migrating the Virtual IP address between nodes. * DHCP (if needed) runs on both nodes, as DHCP has native support for fail-over configuration. It's pretty easy to get installed and running. I also create RPMS for Asterisk, so that the version on each service is the exact same. I can upgrade one node, use the cluster manager to fail-over to the other node (during a maintenance window of course!). The biggest issue now is that the CentOS Repo is somewhat broken for Cluster... but there is a work around on the bug tracker for CentOS. Hopefully that will be resolved soon. Let me know off list if you need any help! -Jonathan On Fri, Oct 2, 2009 at 10:58 AM, James Hankins j...@allpointsmediaworks.com wrote: I'm looking into doing an HA setup for a Asterisk 1.4 install on Centos. I've seen a number of different pointers to packages for this some of which are packages that seem quite dated from an update perspective (Ultra Monkey links I've seen haven't been updated in a while). What is the current best practice on this for this platform? My first foray into any of the Linux HA setups but not afraid of the command line. Jim ___ -- Bandwidth and Colocation Provided by http://www.api-digital.com -- AstriCon 2009 - October 13 - 15 Phoenix, Arizona Register Now: http://www.astricon.net asterisk-users mailing list To UNSUBSCRIBE or update options visit: http://lists.digium.com/mailman/listinfo/asterisk-users ___ -- Bandwidth and Colocation Provided by http://www.api-digital.com -- AstriCon 2009 - October 13 - 15 Phoenix, Arizona Register Now: http://www.astricon.net asterisk-users mailing list To UNSUBSCRIBE or update options visit: http://lists.digium.com/mailman/listinfo/asterisk-users
Re: [asterisk-users] Asterisk HA Current Thoughts (Centos 5.3 Platform)
* Two servers configured with DRBD in Master-Master mode. All data is replicated between the two so in case of a failure there should be very limited data loss (voicemail) if any at all. If you put the asterisk spool, lib, and config files on the DRBD then you shouldn't lose voicemail or any configuration. Fred Posner ___ -- Bandwidth and Colocation Provided by http://www.api-digital.com -- AstriCon 2009 - October 13 - 15 Phoenix, Arizona Register Now: http://www.astricon.net asterisk-users mailing list To UNSUBSCRIBE or update options visit: http://lists.digium.com/mailman/listinfo/asterisk-users
Re: [asterisk-users] Asterisk HA Current Thoughts (Centos 5.3 Platform)
On Fri, Oct 2, 2009 at 11:41 AM, Fred Posner f...@teamforrest.com wrote: * Two servers configured with DRBD in Master-Master mode. All data is replicated between the two so in case of a failure there should be very limited data loss (voicemail) if any at all. If you put the asterisk spool, lib, and config files on the DRBD then you shouldn't lose voicemail or any configuration. If someone is in the middle of recording a message, and the server fails, you will probably lose that message. That's all I was getting at. -Jonathan ___ -- Bandwidth and Colocation Provided by http://www.api-digital.com -- AstriCon 2009 - October 13 - 15 Phoenix, Arizona Register Now: http://www.astricon.net asterisk-users mailing list To UNSUBSCRIBE or update options visit: http://lists.digium.com/mailman/listinfo/asterisk-users
Re: [asterisk-users] Asterisk HA
2007/1/11, Ale [EMAIL PROTECTED]: Ciao, Enrico Pasqualotto wrote: Is better ultramonkey, dundi or SER proxy in front of * server? You can also consider Hartbeat + rsync, or simply pfsync + rsync ;) The problem with Asterisk HA, is mainly the lost of calls when failover occurs. This is because all traffic pass through Asterisk always. In order to solve this, you could use SER + Asterisk + OpenSER. That way, you'll only lose calls that are going outside your network, but calls inside will remain. -- Diego Quintana a.k.a. RouterMaN Ingeniería de las Telecomunicaciones PUCP Linux Registered User #382615 - http://counter.li.org/ SIP # 1-747-633-6676 Ext. 1011 FWD # 764839 Ext. 1011 http://routerman.blogsome.com http://planeta.debianperu.org ___ --Bandwidth and Colocation provided by Easynews.com -- asterisk-users mailing list To UNSUBSCRIBE or update options visit: http://lists.digium.com/mailman/listinfo/asterisk-users
Re: [asterisk-users] Asterisk HA
Ciao, Enrico Pasqualotto wrote: Is better ultramonkey, dundi or SER proxy in front of * server? You can also consider Hartbeat + rsync, or simply pfsync + rsync ;) Thanks Enrico Ciao Ciao , Ale ___ --Bandwidth and Colocation provided by Easynews.com -- asterisk-users mailing list To UNSUBSCRIBE or update options visit: http://lists.digium.com/mailman/listinfo/asterisk-users
[asterisk-users] Asterisk HA
Hi all, I have to make for a client an asterisk system for process up to 250 calls between conference and normal call. At disposition I have 4 xserver 346 with dual xeon 3.0Ghz and the client require a failover system. Anyone have experience for this type of solution? Is better ultramonkey, dundi or SER proxy in front of * server? Thanks Enrico P.S. Now during all this year I have to work with this type of solution, why not make a fork of this ml for example [EMAIL PROTECTED], for write some docs too. -- Pasqualotto 'Pasqu' Enrico enrico AT pasqualotto DOT org web: http://www.pasqualotto.org skype: epasqualotto ___ --Bandwidth and Colocation provided by Easynews.com -- asterisk-users mailing list To UNSUBSCRIBE or update options visit: http://lists.digium.com/mailman/listinfo/asterisk-users