SlideShare uma empresa Scribd logo
1 de 23
Baixar para ler offline
Atlanta Asterisk Users Group – ATLAUG
          2010 Asterisk Install Fest and Conference




High availability and Fail over solutions
                                        DJ Belieny
2010 Asterisk Install Fest and Conference
              High Availability / Fail Over Solutions




Common Single Point of Failure (SPoF)
Tools of the trade (Monit, Heartbeat and DRBD)
2010 Asterisk Install Fest and Conference
           High Availability / Fail Over Solutions



Common Single Point of Failure (SPoF)


Inbound/Outbound Trunks
Network Topology
Hardware
Software
2010 Asterisk Install Fest and Conference
          High Availability / Fail Over Solutions



Inbound/Outbound Trunking SPoF


Single provider
In server TDM Hardware
Single Codec support
2010 Asterisk Install Fest and Conference
          High Availability / Fail Over Solutions



Networking SPoF


Switching fabric
Bandwidth
IP Routing
Cables & Interfaces
2010 Asterisk Install Fest and Conference
          High Availability / Fail Over Solutions



Hardware SPoF


Anything starting with “Single”
Hard Drives
Cables & Interfaces
Any other moving parts
2010 Asterisk Install Fest and Conference
          High Availability / Fail Over Solutions



Software SPoF


Data Storage / Database
Process Handling
System Configuration
Applications
2010 Asterisk Install Fest and Conference
           High Availability / Fail Over Solutions



Tools of the Trade - Networking


Interface Bonding
HSRP
BGP/OSPF
IP Virtualization
2010 Asterisk Install Fest and Conference
           High Availability / Fail Over Solutions



Tools of the Trade - Hardware


RAID Ready servers (Mirroring)
Redundant Components
Redfone or similar for PRI HA
2010 Asterisk Install Fest and Conference
           High Availability / Fail Over Solutions



Tools of the Trade - Software


Heartbeat
Monit (Process Handling)
DRBD (Data replication*)
DNS
2010 Asterisk Install Fest and Conference
             High Availability / Fail Over Solutions



Tools of the Trade - Heartbeat

Simple yet solid clustering tool part
of the Linux HA project.

Provides Cluster monitoring and
resource control across multiple nodes

Basic setup can be achieved by editing
just 3 files ha.cf haresources authkeys
2010 Asterisk Install Fest and Conference
             High Availability / Fail Over Solutions



Tools of the Trade – Heartbeat

Sample ha.cf

logfacility     local0
keepalive 2
deadtime 15
warntime 10
initdead 60
bcast bond0.110
node ast1
node ast2
2010 Asterisk Install Fest and Conference
             High Availability / Fail Over Solutions



Tools of the Trade – Heartbeat

Sample haresources

ast1 IPaddr::192.168.11.100/24/bond0.10
ast1 Ipaddr::10.1.10.100/24/bond0.110
ast1 drbddisk::sharedBD 
     Filesystem::/dev/drbd0::/var/sharedBD::ext3
ast1 monit
2010 Asterisk Install Fest and Conference
             High Availability / Fail Over Solutions



Tools of the Trade – Heartbeat

Sample authkeys

auth3
3 md5 mySecretCode
2010 Asterisk Install Fest and Conference
               High Availability / Fail Over Solutions



Tools of the Trade - Monit

Very simple and effective tool to monitor
processes and more in a Linux system

Provides email alerts, logging, service
monitoring and handling (start/stop)

Basic setup can be achieved by editing
just 2 files /etc/default/monit /etc/monit/monitrc
2010 Asterisk Install Fest and Conference
             High Availability / Fail Over Solutions



Tools of the Trade – Monit

Sample default/monit
startup=1
CHECK_INTERVALS=30
2010 Asterisk Install Fest and Conference
               High Availability / Fail Over Solutions



Tools of the Trade – Monit
Sample monitrc
set daemon 30
set logfile /var/log/monit.log 
set mailserver localhost
set eventqueue basedir /var/monit slots 100 
set mail­format { from: monit@opensourcemind.net }
set alert devteam@opensourcemind.net
set httpd port 2812 and
     use address localhost
     allow admin:monit
check process asterisk with pidfile /var/run/asterisk.pid
start program = "/usr/sbin/asterisk"
stop program = "/usr/bin/pkill asterisk"
2010 Asterisk Install Fest and Conference
             High Availability / Fail Over Solutions



Tools of the Trade – Monit
One of the great extra abilities of Monit
Is to be able to monitor if Asterisk is
up and running using SIP communication
on top of process monitoring
2010 Asterisk Install Fest and Conference
             High Availability / Fail Over Solutions



Tools of the Trade - DRBD

Reliable and robust block device device
mirrored over a dedicated network

Basic setup can be achieved by editing
just 1 file drbd.conf
2010 Asterisk Install Fest and Conference
               High Availability / Fail Over Solutions



    Tools of the Trade – DRBD

        on ast1 {
        device /dev/drbd0;
        disk /dev/sdb;
        address 10.1.1.1:7788;
        meta­disk internal;
        }
 
2010 Asterisk Install Fest and Conference
           High Availability / Fail Over Solutions



Tools of the Trade – DRBD




                     *Diagram downloaded from the DRBD website
2010 Asterisk Install Fest and Conference
             High Availability / Fail Over Solutions



Important things to remember when
using these tools for Asterisk HA
DRBD is great but adds some latency so
large beware of large recordings in number
and duration.

You can achieve redundancy using text files
bases Asterisk configuration as well as using
Asterisk Realtime Engine, just remember to
store your data under DRBD
2010 Asterisk Install Fest and Conference
                High Availability / Fail Over Solutions

Resources and Contact Information
The Linux-HA Guide
http://www.linux-ha.org/doc/
Linux Clustering Information Center
http://www.squidoo.com/linux-clustering
Monit Docs
http://mmonit.com/monit/documentation/monit.html
DRBD Manual
http://www.drbd.org/docs/about/
My email address
  djbelieny@opensourcemind.net

And of course the ATLAUG List :)

Mais conteúdo relacionado

Destaque

The structure is fundamental: IP PBX, telephony cards and tools for high avai...
The structure is fundamental: IP PBX, telephony cards and tools for high avai...The structure is fundamental: IP PBX, telephony cards and tools for high avai...
The structure is fundamental: IP PBX, telephony cards and tools for high avai...PaloSanto Solutions
 
Queuemetrics esencial, de la implementación a reportes avanzadas
Queuemetrics esencial, de la implementación a reportes avanzadasQueuemetrics esencial, de la implementación a reportes avanzadas
Queuemetrics esencial, de la implementación a reportes avanzadasPaloSanto Solutions
 
Todo lo lo que necesita saber para implementar FreePBX
Todo lo lo que necesita saber para implementar FreePBXTodo lo lo que necesita saber para implementar FreePBX
Todo lo lo que necesita saber para implementar FreePBXPaloSanto Solutions
 
Presentacion Hardware Elastix 2015 - Colombia
Presentacion Hardware Elastix 2015 - Colombia Presentacion Hardware Elastix 2015 - Colombia
Presentacion Hardware Elastix 2015 - Colombia PaloSanto Solutions
 
Sécurité asterisk web
Sécurité asterisk webSécurité asterisk web
Sécurité asterisk webAgarik
 
FreePBX Commercial Modules
FreePBX Commercial ModulesFreePBX Commercial Modules
FreePBX Commercial ModulesHossein Yavari
 
Innovative technology for universal communication designed to involve the (he...
Innovative technology for universal communication designed to involve the (he...Innovative technology for universal communication designed to involve the (he...
Innovative technology for universal communication designed to involve the (he...PaloSanto Solutions
 
Mise en place d'une soltion de communication unifiée
Mise en place d'une soltion de communication unifiéeMise en place d'une soltion de communication unifiée
Mise en place d'une soltion de communication unifiéedartenien
 
Voip y Big Data, ¿Cómo aplicar analytics a la VoIP?
Voip y Big Data, ¿Cómo aplicar analytics a la VoIP?Voip y Big Data, ¿Cómo aplicar analytics a la VoIP?
Voip y Big Data, ¿Cómo aplicar analytics a la VoIP?PaloSanto Solutions
 
Tres componentes fundamentales de un buen PBX IP: seguridad, alta disponibili...
Tres componentes fundamentales de un buen PBX IP: seguridad, alta disponibili...Tres componentes fundamentales de un buen PBX IP: seguridad, alta disponibili...
Tres componentes fundamentales de un buen PBX IP: seguridad, alta disponibili...PaloSanto Solutions
 
Distribution, redundancy and high availability using OpenSIPS
Distribution, redundancy and high availability using OpenSIPSDistribution, redundancy and high availability using OpenSIPS
Distribution, redundancy and high availability using OpenSIPSDigium
 

Destaque (13)

The structure is fundamental: IP PBX, telephony cards and tools for high avai...
The structure is fundamental: IP PBX, telephony cards and tools for high avai...The structure is fundamental: IP PBX, telephony cards and tools for high avai...
The structure is fundamental: IP PBX, telephony cards and tools for high avai...
 
Queuemetrics esencial, de la implementación a reportes avanzadas
Queuemetrics esencial, de la implementación a reportes avanzadasQueuemetrics esencial, de la implementación a reportes avanzadas
Queuemetrics esencial, de la implementación a reportes avanzadas
 
Asterisk 12 Update
Asterisk 12 UpdateAsterisk 12 Update
Asterisk 12 Update
 
Todo lo lo que necesita saber para implementar FreePBX
Todo lo lo que necesita saber para implementar FreePBXTodo lo lo que necesita saber para implementar FreePBX
Todo lo lo que necesita saber para implementar FreePBX
 
Presentacion Hardware Elastix 2015 - Colombia
Presentacion Hardware Elastix 2015 - Colombia Presentacion Hardware Elastix 2015 - Colombia
Presentacion Hardware Elastix 2015 - Colombia
 
Voicemail Avanzado
Voicemail AvanzadoVoicemail Avanzado
Voicemail Avanzado
 
Sécurité asterisk web
Sécurité asterisk webSécurité asterisk web
Sécurité asterisk web
 
FreePBX Commercial Modules
FreePBX Commercial ModulesFreePBX Commercial Modules
FreePBX Commercial Modules
 
Innovative technology for universal communication designed to involve the (he...
Innovative technology for universal communication designed to involve the (he...Innovative technology for universal communication designed to involve the (he...
Innovative technology for universal communication designed to involve the (he...
 
Mise en place d'une soltion de communication unifiée
Mise en place d'une soltion de communication unifiéeMise en place d'une soltion de communication unifiée
Mise en place d'une soltion de communication unifiée
 
Voip y Big Data, ¿Cómo aplicar analytics a la VoIP?
Voip y Big Data, ¿Cómo aplicar analytics a la VoIP?Voip y Big Data, ¿Cómo aplicar analytics a la VoIP?
Voip y Big Data, ¿Cómo aplicar analytics a la VoIP?
 
Tres componentes fundamentales de un buen PBX IP: seguridad, alta disponibili...
Tres componentes fundamentales de un buen PBX IP: seguridad, alta disponibili...Tres componentes fundamentales de un buen PBX IP: seguridad, alta disponibili...
Tres componentes fundamentales de un buen PBX IP: seguridad, alta disponibili...
 
Distribution, redundancy and high availability using OpenSIPS
Distribution, redundancy and high availability using OpenSIPSDistribution, redundancy and high availability using OpenSIPS
Distribution, redundancy and high availability using OpenSIPS
 

Semelhante a 2010 Install Fest Ha Failover Dj Belieny

200706 kathmann shared by voip.com.vn
200706 kathmann shared by voip.com.vn200706 kathmann shared by voip.com.vn
200706 kathmann shared by voip.com.vnTran Thanh
 
Leveraging Open Source to Manage SAN Performance
Leveraging Open Source to Manage SAN PerformanceLeveraging Open Source to Manage SAN Performance
Leveraging Open Source to Manage SAN Performancebrettallison
 
OpenChain AutomotiveWG(OSS license tools()
OpenChain AutomotiveWG(OSS license tools()OpenChain AutomotiveWG(OSS license tools()
OpenChain AutomotiveWG(OSS license tools()Yuichi Kusakabe
 
Biztalk Server 2006
Biztalk Server 2006Biztalk Server 2006
Biztalk Server 2006ipaciti
 
Telephony Service Development on Asterisk Platform
Telephony Service Development on Asterisk PlatformTelephony Service Development on Asterisk Platform
Telephony Service Development on Asterisk PlatformHamid Fadishei
 
C Cure Users Group Presentation Final 4
C Cure Users Group Presentation Final 4C Cure Users Group Presentation Final 4
C Cure Users Group Presentation Final 4halgig
 
Understanding and Troubleshooting ASA NAT
Understanding and Troubleshooting ASA NATUnderstanding and Troubleshooting ASA NAT
Understanding and Troubleshooting ASA NATCisco Russia
 
Flex and LiveCycle Data Services Best Practices from the Trenches (Adobe MAX ...
Flex and LiveCycle Data Services Best Practices from the Trenches (Adobe MAX ...Flex and LiveCycle Data Services Best Practices from the Trenches (Adobe MAX ...
Flex and LiveCycle Data Services Best Practices from the Trenches (Adobe MAX ...François Le Droff
 
4-13Levi Morey
4-13Levi Morey4-13Levi Morey
4-13Levi MoreyLevi Morey
 
Swisscom my deploy_winworkers_arbeitsprobe
Swisscom my deploy_winworkers_arbeitsprobeSwisscom my deploy_winworkers_arbeitsprobe
Swisscom my deploy_winworkers_arbeitsprobeSebastian Lentz
 
Optimizing windows 8 for virtual desktops - teched 2013 Jeff Stokes
Optimizing windows 8 for virtual desktops - teched 2013 Jeff StokesOptimizing windows 8 for virtual desktops - teched 2013 Jeff Stokes
Optimizing windows 8 for virtual desktops - teched 2013 Jeff StokesJeff Stokes
 
illustro Overview - z/IPMon Introduction
illustro Overview - z/IPMon Introductionillustro Overview - z/IPMon Introduction
illustro Overview - z/IPMon Introductionillustro
 
What should you know about Net Core?
What should you know about Net Core?What should you know about Net Core?
What should you know about Net Core?Damir Dobric
 
Acs ip-so c-10-tips-presentation
Acs ip-so c-10-tips-presentationAcs ip-so c-10-tips-presentation
Acs ip-so c-10-tips-presentationDesign And Reuse
 
IBM Edge2015 Las Vegas
IBM Edge2015 Las VegasIBM Edge2015 Las Vegas
IBM Edge2015 Las VegasFilipe Miranda
 
Problem Determination Tools
Problem Determination ToolsProblem Determination Tools
Problem Determination ToolsCICS ROADSHOW
 
The 12 tasks of Asterisk
The 12 tasks of AsteriskThe 12 tasks of Asterisk
The 12 tasks of AsteriskElio Rojano
 

Semelhante a 2010 Install Fest Ha Failover Dj Belieny (20)

200706 kathmann shared by voip.com.vn
200706 kathmann shared by voip.com.vn200706 kathmann shared by voip.com.vn
200706 kathmann shared by voip.com.vn
 
Leveraging Open Source to Manage SAN Performance
Leveraging Open Source to Manage SAN PerformanceLeveraging Open Source to Manage SAN Performance
Leveraging Open Source to Manage SAN Performance
 
OpenChain AutomotiveWG(OSS license tools()
OpenChain AutomotiveWG(OSS license tools()OpenChain AutomotiveWG(OSS license tools()
OpenChain AutomotiveWG(OSS license tools()
 
Biztalk Server 2006
Biztalk Server 2006Biztalk Server 2006
Biztalk Server 2006
 
Telephony Service Development on Asterisk Platform
Telephony Service Development on Asterisk PlatformTelephony Service Development on Asterisk Platform
Telephony Service Development on Asterisk Platform
 
IoT Labs
IoT LabsIoT Labs
IoT Labs
 
C Cure Users Group Presentation Final 4
C Cure Users Group Presentation Final 4C Cure Users Group Presentation Final 4
C Cure Users Group Presentation Final 4
 
Understanding and Troubleshooting ASA NAT
Understanding and Troubleshooting ASA NATUnderstanding and Troubleshooting ASA NAT
Understanding and Troubleshooting ASA NAT
 
Flex and LiveCycle Data Services Best Practices from the Trenches (Adobe MAX ...
Flex and LiveCycle Data Services Best Practices from the Trenches (Adobe MAX ...Flex and LiveCycle Data Services Best Practices from the Trenches (Adobe MAX ...
Flex and LiveCycle Data Services Best Practices from the Trenches (Adobe MAX ...
 
4-13Levi Morey
4-13Levi Morey4-13Levi Morey
4-13Levi Morey
 
Swisscom my deploy_winworkers_arbeitsprobe
Swisscom my deploy_winworkers_arbeitsprobeSwisscom my deploy_winworkers_arbeitsprobe
Swisscom my deploy_winworkers_arbeitsprobe
 
Optimizing windows 8 for virtual desktops - teched 2013 Jeff Stokes
Optimizing windows 8 for virtual desktops - teched 2013 Jeff StokesOptimizing windows 8 for virtual desktops - teched 2013 Jeff Stokes
Optimizing windows 8 for virtual desktops - teched 2013 Jeff Stokes
 
illustro Overview - z/IPMon Introduction
illustro Overview - z/IPMon Introductionillustro Overview - z/IPMon Introduction
illustro Overview - z/IPMon Introduction
 
What should you know about Net Core?
What should you know about Net Core?What should you know about Net Core?
What should you know about Net Core?
 
Kavita resume startup
Kavita resume startupKavita resume startup
Kavita resume startup
 
Acs ip-so c-10-tips-presentation
Acs ip-so c-10-tips-presentationAcs ip-so c-10-tips-presentation
Acs ip-so c-10-tips-presentation
 
IBM Edge2015 Las Vegas
IBM Edge2015 Las VegasIBM Edge2015 Las Vegas
IBM Edge2015 Las Vegas
 
Windows 8.1 Sockets
Windows 8.1 SocketsWindows 8.1 Sockets
Windows 8.1 Sockets
 
Problem Determination Tools
Problem Determination ToolsProblem Determination Tools
Problem Determination Tools
 
The 12 tasks of Asterisk
The 12 tasks of AsteriskThe 12 tasks of Asterisk
The 12 tasks of Asterisk
 

2010 Install Fest Ha Failover Dj Belieny

  • 1. Atlanta Asterisk Users Group – ATLAUG 2010 Asterisk Install Fest and Conference High availability and Fail over solutions DJ Belieny
  • 2. 2010 Asterisk Install Fest and Conference High Availability / Fail Over Solutions Common Single Point of Failure (SPoF) Tools of the trade (Monit, Heartbeat and DRBD)
  • 3. 2010 Asterisk Install Fest and Conference High Availability / Fail Over Solutions Common Single Point of Failure (SPoF) Inbound/Outbound Trunks Network Topology Hardware Software
  • 4. 2010 Asterisk Install Fest and Conference High Availability / Fail Over Solutions Inbound/Outbound Trunking SPoF Single provider In server TDM Hardware Single Codec support
  • 5. 2010 Asterisk Install Fest and Conference High Availability / Fail Over Solutions Networking SPoF Switching fabric Bandwidth IP Routing Cables & Interfaces
  • 6. 2010 Asterisk Install Fest and Conference High Availability / Fail Over Solutions Hardware SPoF Anything starting with “Single” Hard Drives Cables & Interfaces Any other moving parts
  • 7. 2010 Asterisk Install Fest and Conference High Availability / Fail Over Solutions Software SPoF Data Storage / Database Process Handling System Configuration Applications
  • 8. 2010 Asterisk Install Fest and Conference High Availability / Fail Over Solutions Tools of the Trade - Networking Interface Bonding HSRP BGP/OSPF IP Virtualization
  • 9. 2010 Asterisk Install Fest and Conference High Availability / Fail Over Solutions Tools of the Trade - Hardware RAID Ready servers (Mirroring) Redundant Components Redfone or similar for PRI HA
  • 10. 2010 Asterisk Install Fest and Conference High Availability / Fail Over Solutions Tools of the Trade - Software Heartbeat Monit (Process Handling) DRBD (Data replication*) DNS
  • 11. 2010 Asterisk Install Fest and Conference High Availability / Fail Over Solutions Tools of the Trade - Heartbeat Simple yet solid clustering tool part of the Linux HA project. Provides Cluster monitoring and resource control across multiple nodes Basic setup can be achieved by editing just 3 files ha.cf haresources authkeys
  • 12. 2010 Asterisk Install Fest and Conference High Availability / Fail Over Solutions Tools of the Trade – Heartbeat Sample ha.cf logfacility     local0 keepalive 2 deadtime 15 warntime 10 initdead 60 bcast bond0.110 node ast1 node ast2
  • 13. 2010 Asterisk Install Fest and Conference High Availability / Fail Over Solutions Tools of the Trade – Heartbeat Sample haresources ast1 IPaddr::192.168.11.100/24/bond0.10 ast1 Ipaddr::10.1.10.100/24/bond0.110 ast1 drbddisk::sharedBD       Filesystem::/dev/drbd0::/var/sharedBD::ext3 ast1 monit
  • 14. 2010 Asterisk Install Fest and Conference High Availability / Fail Over Solutions Tools of the Trade – Heartbeat Sample authkeys auth3 3 md5 mySecretCode
  • 15. 2010 Asterisk Install Fest and Conference High Availability / Fail Over Solutions Tools of the Trade - Monit Very simple and effective tool to monitor processes and more in a Linux system Provides email alerts, logging, service monitoring and handling (start/stop) Basic setup can be achieved by editing just 2 files /etc/default/monit /etc/monit/monitrc
  • 16. 2010 Asterisk Install Fest and Conference High Availability / Fail Over Solutions Tools of the Trade – Monit Sample default/monit startup=1 CHECK_INTERVALS=30
  • 17. 2010 Asterisk Install Fest and Conference High Availability / Fail Over Solutions Tools of the Trade – Monit Sample monitrc set daemon 30 set logfile /var/log/monit.log  set mailserver localhost set eventqueue basedir /var/monit slots 100  set mail­format { from: monit@opensourcemind.net } set alert devteam@opensourcemind.net set httpd port 2812 and      use address localhost      allow admin:monit check process asterisk with pidfile /var/run/asterisk.pid start program = "/usr/sbin/asterisk" stop program = "/usr/bin/pkill asterisk"
  • 18. 2010 Asterisk Install Fest and Conference High Availability / Fail Over Solutions Tools of the Trade – Monit One of the great extra abilities of Monit Is to be able to monitor if Asterisk is up and running using SIP communication on top of process monitoring
  • 19. 2010 Asterisk Install Fest and Conference High Availability / Fail Over Solutions Tools of the Trade - DRBD Reliable and robust block device device mirrored over a dedicated network Basic setup can be achieved by editing just 1 file drbd.conf
  • 20. 2010 Asterisk Install Fest and Conference High Availability / Fail Over Solutions Tools of the Trade – DRBD         on ast1 {         device /dev/drbd0;         disk /dev/sdb;         address 10.1.1.1:7788;         meta­disk internal;         }  
  • 21. 2010 Asterisk Install Fest and Conference High Availability / Fail Over Solutions Tools of the Trade – DRBD *Diagram downloaded from the DRBD website
  • 22. 2010 Asterisk Install Fest and Conference High Availability / Fail Over Solutions Important things to remember when using these tools for Asterisk HA DRBD is great but adds some latency so large beware of large recordings in number and duration. You can achieve redundancy using text files bases Asterisk configuration as well as using Asterisk Realtime Engine, just remember to store your data under DRBD
  • 23. 2010 Asterisk Install Fest and Conference High Availability / Fail Over Solutions Resources and Contact Information The Linux-HA Guide http://www.linux-ha.org/doc/ Linux Clustering Information Center http://www.squidoo.com/linux-clustering Monit Docs http://mmonit.com/monit/documentation/monit.html DRBD Manual http://www.drbd.org/docs/about/ My email address djbelieny@opensourcemind.net And of course the ATLAUG List :)