Successfully reported this slideshow.
We use your LinkedIn profile and activity data to personalize ads and to show you more relevant ads. You can change your ad preferences anytime.

HAProxyでMySQL HA on Amazon EC2

7,377 views

Published on

AWS User Group - Japan勉強会 (JAWS-UG)で発表したLT資料です。

ミニマルな構成でMySQLのHA環境を構築する方法です

Published in: Technology

HAProxyでMySQL HA on Amazon EC2

  1. 1. HAProxy MySQL HA on Amazon EC2 @ijin
  2. 2. @ijin • Michael H. Oshita • • 8 • •
  3. 3. EC2 MySQL HA
  4. 4. EC2 MySQL HA • MySQL Multi-Master • Amazon RDS (multi-AZ)
  5. 5. MySQL Master- Master (MMM) DNS Web Web DNS $ $ DB1 DB2 $ ns agent
  6. 6. Amazon RDS (multi-AZ) Web $ Web $ DB1 $ DB2 $
  7. 7. $ $ 3 4 $
  8. 8. HAProxy • TCP/HTTP • MySQL • (Web+HAProxy+DB) x2 • Alex Williams (http://www.alexwilliams.ca/blog/ 2009/08/10/using-haproxy-for-mysql-failover-and- redundancy/)
  9. 9. Web Web • DB2 or HAProxy HAProxy • HAProxy DB1 DB1 DB2
  10. 10. Web Web • DB1 or HAProxy HAProxy • HAProxy DB2 DB1 DB2
  11. 11. Web Web • • HAProxy (DB1) HAProxy HAProxy • read ( ) DB1 DB2
  12. 12. • ( Amazon RDS) • read • DB • • http://github.com/ijin/mysqlcheck • http://gist.github.com/560708

×