Ha systems-with-heartbeatv2

318 views

Published on

OpenFest 2008

Published in: Technology
0 Comments
1 Like
Statistics
Notes
  • Be the first to comment

No Downloads
Views
Total views
318
On SlideShare
0
From Embeds
0
Number of Embeds
2
Actions
Shares
0
Downloads
2
Comments
0
Likes
1
Embeds 0
No embeds

No notes for slide

Ha systems-with-heartbeatv2

  1. 1. OpenFest 2008High available systems with Heartbeat2 Историята на един новобранец Marian Marinov - mm@yuhu.biz Head of System Operations - Siteground.com 1
  2. 2. HA Systems with Heartbeat 2 Agenda1. High Availability2. Download & Install3. Basic Architecture4. V1 -> V2 Interoperability5. Setup6. Example configuration explained 2
  3. 3. HA Systems with Heartbeat 2 Download & Install http://linux-ha.orgrpm (SuSE, Fedora, CentOS, RHEL, Debian) rpm -Uvh *tar.gz http://clusterlabs.org/mw/Install 3
  4. 4. HA Systems with Heartbeat 2What Can HA Clustering Do For You?➢ It cannot achieve 100% availability – nothing can.➢ HA Clustering designed to recover from single faults➢ It can make your outages very short ➢ From about a second to a few minutes➢ It is like a Magicians (Illusionists) trick: ➢ When it goes well, the hand is faster than the eye ➢ When it goes not-so-well, it can be reasonably visible➢ A good HA clustering system adds a “9” to your base availability ➢ 99->99.9, 99.9->99.99, 99.99->99.999, etc.➢ Complexity is the enemy of reliability! 4
  5. 5. HA Systems with Heartbeat 2 Lies, Damn Lies, and Statistics99.99999% 3s99.9999% 30 sec99.999% 5 min99.99% 52 min 5
  6. 6. HA Systems with Heartbeat 2 Basic ArchitectureWith Heartbeat 1 everything was simpleWith Heartbeat 2 not so much.... 6
  7. 7. HA Systems with Heartbeat 2Pacemaker - not a fork of HeartbeatOpenAIS - Application Interface Specification of Service Availability ForumOCF - Open Cluster FrameworkLSB - Linux Standard Baseheartbeat - Heartbeat V1 scripts 7
  8. 8. HA Systems with Heartbeat 2 8
  9. 9. HA Systems with Heartbeat 2heartbeatCRM - Cluster Resource Manager CIB - Cluster Information Base PE - CRM Policy Engine TE - CRM Transition Engine LRM - Local Resource ManagerCCM - Consensus Cluster MembershipStonith Daemon - provides node reset services 9
  10. 10. HA Systems with Heartbeat 2logd - non-blocking logging daemonapphbd - application level watchdog timer serviceRecovery Manager - application recovery serviceInfrastructure PILS - Plugin and Interface Loading System IPC - Interprocess Communication Cluster "plumbing" library 10
  11. 11. HA Systems with Heartbeat 2logd - non-blocking logging daemonapphbd - application level watchdog timer serviceRecovery Manager - application recovery serviceInfrastructure PILS - Plugin and Interface Loading System IPC - Interprocess Communication Cluster "plumbing" library 11
  12. 12. SETUP[root@lb ha.d]# cat /etc/ha.d/authkeysauth 11 md5 In controlers we trust! In memory we fail!#2 sha1 HI!#3 md5 Hello![root@lb ha.d]# cat haresourceslb 10.9.0.1 lvs mon 12
  13. 13. SETUP[root@lb ha.d]# cat /etc/ha.d/ha.cfkeepalive 2deadtime 10hopfudge 1baud 19200udpport 694ucast eth1 10.4.0.2use_logd yesconn_logd_time 60crm respawnnode lbnode web1 13
  14. 14. SETUP[root@lb ha.d]# cat /etc/logd.cfdebugfile /var/log/ha-debuglogfile /var/log/ha-loglogfacility daemonentity logduseapphbd nosendqlen 256recvqlen 256LAST: /var/lib/heartbeat/crm/cib.xml 14
  15. 15. SETUP[root@lb ha.d]# cat /etc/logd.cfdebugfile /var/log/ha-debuglogfile /var/log/ha-loglogfacility daemonentity logduseapphbd nosendqlen 256recvqlen 256LAST: /var/lib/heartbeat/crm/cib.xml# crm_verify -LV# ciblint -L 15

×