VoIP Mailing List Archives
Mailing list archives for the VoIP community |
|
View previous topic :: View next topic |
Author |
Message |
oza.4h07 at gmail.com Guest
|
Posted: Mon Oct 19, 2015 1:11 pm Post subject: [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 |
|
Back to top |
|
|
support at telium.ca Guest
|
Posted: Mon Oct 19, 2015 3:06 pm Post subject: [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- |
|
Back to top |
|
|
oza.4h07 at gmail.com Guest
|
Posted: Tue Oct 20, 2015 1:44 am Post subject: [asterisk-users] Asterisk HA with heartbeat and systemd |
|
|
2015-10-19 22:05 GMT+02:00 Telium Technical Support <support@telium.ca (support@telium.ca)>:
Quote: |
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).
Quote: |
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
|
|
|
Back to top |
|
|
oza.4h07 at gmail.com Guest
|
Posted: Tue Oct 20, 2015 2:08 am Post subject: [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 <oza.4h07@gmail.com (oza.4h07@gmail.com)>:
Quote: | 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
|
|
|
Back to top |
|
|
|
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
Powered by phpBB © 2001, 2005 phpBB Group
|