SlideShare una empresa de Scribd logo
1 de 15
HAProxy    MySQL HA
     on Amazon EC2




                     @ijin
@ijin
• Michael H. Oshita

•

•        8

•

•
EC2   MySQL HA
EC2         MySQL HA



• MySQL Multi-Master

• Amazon RDS (multi-AZ)
MySQL Master-
      Master (MMM)
                DNS
      Web                  Web

DNS         $                    $
      DB1                  DB2




                      $
                ns agent
Amazon RDS
  (multi-AZ)
Web   $   Web
                $


DB1
      $   DB2
                $
$           $
3   4


        $
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/)
Web       Web

• DB2        or
                  HAProxy   HAProxy


• HAProxy   DB1
                   DB1       DB2
Web       Web

• DB1        or
                  HAProxy   HAProxy


• HAProxy   DB2
                   DB1       DB2
Web       Web
•

• HAProxy       (DB1)       HAProxy   HAProxy


• read      (           )
                             DB1       DB2
•
    (                    Amazon RDS)

• read

•       DB

•

    • http://github.com/ijin/mysqlcheck

    • http://gist.github.com/560708

Más contenido relacionado

La actualidad más candente

BuilHigh Performance Weibo Platform-Qcon2011
BuilHigh Performance Weibo Platform-Qcon2011BuilHigh Performance Weibo Platform-Qcon2011
BuilHigh Performance Weibo Platform-Qcon2011
Yiwei Ma
 
ArangoDB – A different approach to NoSQL
ArangoDB – A different approach to NoSQLArangoDB – A different approach to NoSQL
ArangoDB – A different approach to NoSQL
ArangoDB Database
 
Plmce2012 scaling pinterest
Plmce2012 scaling pinterestPlmce2012 scaling pinterest
Plmce2012 scaling pinterest
Mohit Jain
 

La actualidad más candente (19)

BuilHigh Performance Weibo Platform-Qcon2011
BuilHigh Performance Weibo Platform-Qcon2011BuilHigh Performance Weibo Platform-Qcon2011
BuilHigh Performance Weibo Platform-Qcon2011
 
Share point 2013 on azure
Share point 2013 on azureShare point 2013 on azure
Share point 2013 on azure
 
KafkaとAWS Kinesisの比較
KafkaとAWS Kinesisの比較KafkaとAWS Kinesisの比較
KafkaとAWS Kinesisの比較
 
MongoDB
MongoDBMongoDB
MongoDB
 
ArangoDB – A different approach to NoSQL
ArangoDB – A different approach to NoSQLArangoDB – A different approach to NoSQL
ArangoDB – A different approach to NoSQL
 
Elasticsearch JVM-MX Meetup April 2016
Elasticsearch JVM-MX Meetup April 2016Elasticsearch JVM-MX Meetup April 2016
Elasticsearch JVM-MX Meetup April 2016
 
Fluentd and Docker - running fluentd within a docker container
Fluentd and Docker - running fluentd within a docker containerFluentd and Docker - running fluentd within a docker container
Fluentd and Docker - running fluentd within a docker container
 
CouchDB introduction
CouchDB introductionCouchDB introduction
CouchDB introduction
 
Practical Use of a NoSQL Database
Practical Use of a NoSQL DatabasePractical Use of a NoSQL Database
Practical Use of a NoSQL Database
 
Fluentd - Flexible, Stable, Scalable
Fluentd - Flexible, Stable, ScalableFluentd - Flexible, Stable, Scalable
Fluentd - Flexible, Stable, Scalable
 
Presto @ Treasure Data - Presto Meetup Boston 2015
Presto @ Treasure Data - Presto Meetup Boston 2015Presto @ Treasure Data - Presto Meetup Boston 2015
Presto @ Treasure Data - Presto Meetup Boston 2015
 
GraphDb in XPages
GraphDb in XPagesGraphDb in XPages
GraphDb in XPages
 
Spark Streamingによるリアルタイムユーザ属性推定
Spark Streamingによるリアルタイムユーザ属性推定Spark Streamingによるリアルタイムユーザ属性推定
Spark Streamingによるリアルタイムユーザ属性推定
 
CI_CONF 2012: Scaling
CI_CONF 2012: ScalingCI_CONF 2012: Scaling
CI_CONF 2012: Scaling
 
Using Embulk at Treasure Data
Using Embulk at Treasure DataUsing Embulk at Treasure Data
Using Embulk at Treasure Data
 
Plmce2012 scaling pinterest
Plmce2012 scaling pinterestPlmce2012 scaling pinterest
Plmce2012 scaling pinterest
 
Introduction to MongoDB
Introduction to MongoDBIntroduction to MongoDB
Introduction to MongoDB
 
Lightning talk: elasticsearch at Cogenta
Lightning talk: elasticsearch at CogentaLightning talk: elasticsearch at Cogenta
Lightning talk: elasticsearch at Cogenta
 
Is the database a solved problem?
Is the database a solved problem?Is the database a solved problem?
Is the database a solved problem?
 

Destacado

Pecha-Kucha-Session WJAX 2009 "Mein Agiler Koffer" von Henning Wolf
Pecha-Kucha-Session WJAX 2009 "Mein Agiler Koffer" von Henning WolfPecha-Kucha-Session WJAX 2009 "Mein Agiler Koffer" von Henning Wolf
Pecha-Kucha-Session WJAX 2009 "Mein Agiler Koffer" von Henning Wolf
Bernd Schiffer
 
VietRees_Newsletter_63_Week4_Month12_Year08
VietRees_Newsletter_63_Week4_Month12_Year08VietRees_Newsletter_63_Week4_Month12_Year08
VietRees_Newsletter_63_Week4_Month12_Year08
internationalvr
 
VietRees_Newsletter_36_Week3_Month06_Year08
VietRees_Newsletter_36_Week3_Month06_Year08VietRees_Newsletter_36_Week3_Month06_Year08
VietRees_Newsletter_36_Week3_Month06_Year08
internationalvr
 
Net Promoter System for Agile Environments @ Agile India 2014 in Bangalore, I...
Net Promoter System for Agile Environments @ Agile India 2014 in Bangalore, I...Net Promoter System for Agile Environments @ Agile India 2014 in Bangalore, I...
Net Promoter System for Agile Environments @ Agile India 2014 in Bangalore, I...
Bernd Schiffer
 
I tunesu coursecreation_1213
I tunesu coursecreation_1213I tunesu coursecreation_1213
I tunesu coursecreation_1213
Leonardo Correa
 
Pecha Kucha Session Agile 2011 "My Agile Suitcase" by Ola Ellnestam
Pecha Kucha Session Agile 2011 "My Agile Suitcase" by Ola EllnestamPecha Kucha Session Agile 2011 "My Agile Suitcase" by Ola Ellnestam
Pecha Kucha Session Agile 2011 "My Agile Suitcase" by Ola Ellnestam
Bernd Schiffer
 
Inspire Management @ LAST Conference Melbourne 2013
Inspire Management @ LAST Conference Melbourne 2013Inspire Management @ LAST Conference Melbourne 2013
Inspire Management @ LAST Conference Melbourne 2013
Bernd Schiffer
 

Destacado (20)

Pecha-Kucha-Session WJAX 2009 "Mein Agiler Koffer" von Henning Wolf
Pecha-Kucha-Session WJAX 2009 "Mein Agiler Koffer" von Henning WolfPecha-Kucha-Session WJAX 2009 "Mein Agiler Koffer" von Henning Wolf
Pecha-Kucha-Session WJAX 2009 "Mein Agiler Koffer" von Henning Wolf
 
设计开发实效 Web2.0 应用程序
设计开发实效 Web2.0 应用程序设计开发实效 Web2.0 应用程序
设计开发实效 Web2.0 应用程序
 
VietRees_Newsletter_63_Week4_Month12_Year08
VietRees_Newsletter_63_Week4_Month12_Year08VietRees_Newsletter_63_Week4_Month12_Year08
VietRees_Newsletter_63_Week4_Month12_Year08
 
La Ultima Clase
La Ultima ClaseLa Ultima Clase
La Ultima Clase
 
VietRees_Newsletter_36_Week3_Month06_Year08
VietRees_Newsletter_36_Week3_Month06_Year08VietRees_Newsletter_36_Week3_Month06_Year08
VietRees_Newsletter_36_Week3_Month06_Year08
 
Adivinanza
AdivinanzaAdivinanza
Adivinanza
 
Net Promoter System for Agile Environments @ Agile India 2014 in Bangalore, I...
Net Promoter System for Agile Environments @ Agile India 2014 in Bangalore, I...Net Promoter System for Agile Environments @ Agile India 2014 in Bangalore, I...
Net Promoter System for Agile Environments @ Agile India 2014 in Bangalore, I...
 
Can you Kata?
Can you Kata?Can you Kata?
Can you Kata?
 
I tunesu coursecreation_1213
I tunesu coursecreation_1213I tunesu coursecreation_1213
I tunesu coursecreation_1213
 
Pecha Kucha Session Agile 2011 "My Agile Suitcase" by Ola Ellnestam
Pecha Kucha Session Agile 2011 "My Agile Suitcase" by Ola EllnestamPecha Kucha Session Agile 2011 "My Agile Suitcase" by Ola Ellnestam
Pecha Kucha Session Agile 2011 "My Agile Suitcase" by Ola Ellnestam
 
How to Piss Off Your Pair at LAST Conference 2015
How to Piss Off Your Pair at LAST Conference 2015How to Piss Off Your Pair at LAST Conference 2015
How to Piss Off Your Pair at LAST Conference 2015
 
Visita estudo 26_junho_2014
Visita estudo 26_junho_2014Visita estudo 26_junho_2014
Visita estudo 26_junho_2014
 
Inspire Management @ LAST Conference Melbourne 2013
Inspire Management @ LAST Conference Melbourne 2013Inspire Management @ LAST Conference Melbourne 2013
Inspire Management @ LAST Conference Melbourne 2013
 
Peer Groups in Agile Environments at LAST Conference 2014
Peer Groups in Agile Environments at LAST Conference 2014Peer Groups in Agile Environments at LAST Conference 2014
Peer Groups in Agile Environments at LAST Conference 2014
 
Scrummaster Needed Desperately at 2016 Scrum Australia
Scrummaster Needed Desperately at 2016 Scrum AustraliaScrummaster Needed Desperately at 2016 Scrum Australia
Scrummaster Needed Desperately at 2016 Scrum Australia
 
Mindtree's expertise in asset management.
Mindtree's expertise in asset management.Mindtree's expertise in asset management.
Mindtree's expertise in asset management.
 
sinsai.infoの裏側(インフラ偏)
sinsai.infoの裏側(インフラ偏)sinsai.infoの裏側(インフラ偏)
sinsai.infoの裏側(インフラ偏)
 
Kleine Kanban-Kunde
Kleine Kanban-KundeKleine Kanban-Kunde
Kleine Kanban-Kunde
 
How Agile and Lean Changed my Organization Goto Amsterdam 2012
How Agile and Lean Changed my Organization Goto Amsterdam 2012How Agile and Lean Changed my Organization Goto Amsterdam 2012
How Agile and Lean Changed my Organization Goto Amsterdam 2012
 
Open X installation step by step
Open X installation step by stepOpen X installation step by step
Open X installation step by step
 

Similar a HAProxyでMySQL HA on Amazon EC2

Polyglot Persistence & Big Data in the Cloud
Polyglot Persistence & Big Data in the CloudPolyglot Persistence & Big Data in the Cloud
Polyglot Persistence & Big Data in the Cloud
Andrei Savu
 
Chris Ward - Understanding databases for distributed docker applications - No...
Chris Ward - Understanding databases for distributed docker applications - No...Chris Ward - Understanding databases for distributed docker applications - No...
Chris Ward - Understanding databases for distributed docker applications - No...
NoSQLmatters
 

Similar a HAProxyでMySQL HA on Amazon EC2 (20)

Polyglot Persistence & Big Data in the Cloud
Polyglot Persistence & Big Data in the CloudPolyglot Persistence & Big Data in the Cloud
Polyglot Persistence & Big Data in the Cloud
 
Local Storage for Web Applications
Local Storage for Web ApplicationsLocal Storage for Web Applications
Local Storage for Web Applications
 
Scaling Social Games
Scaling Social GamesScaling Social Games
Scaling Social Games
 
Rails 6 Multi-DB 実戦投入
Rails 6 Multi-DB 実戦投入Rails 6 Multi-DB 実戦投入
Rails 6 Multi-DB 実戦投入
 
ActiveMQ 5.9.x new features
ActiveMQ 5.9.x new featuresActiveMQ 5.9.x new features
ActiveMQ 5.9.x new features
 
High Performance Weibo QCon Beijing 2011
High Performance Weibo QCon Beijing 2011High Performance Weibo QCon Beijing 2011
High Performance Weibo QCon Beijing 2011
 
In-browser storage and me
In-browser storage and meIn-browser storage and me
In-browser storage and me
 
如何构建一个高可用可扩展的广告投放平台-品友互动
如何构建一个高可用可扩展的广告投放平台-品友互动 如何构建一个高可用可扩展的广告投放平台-品友互动
如何构建一个高可用可扩展的广告投放平台-品友互动
 
It's Different with Drupal
It's Different with DrupalIt's Different with Drupal
It's Different with Drupal
 
All your data belong to us - The Active Objects Plugin
All your data belong to us - The Active Objects PluginAll your data belong to us - The Active Objects Plugin
All your data belong to us - The Active Objects Plugin
 
Building Google-in-a-box: using Apache SolrCloud and Bigtop to index your big...
Building Google-in-a-box: using Apache SolrCloud and Bigtop to index your big...Building Google-in-a-box: using Apache SolrCloud and Bigtop to index your big...
Building Google-in-a-box: using Apache SolrCloud and Bigtop to index your big...
 
Intro to HBase - Lars George
Intro to HBase - Lars GeorgeIntro to HBase - Lars George
Intro to HBase - Lars George
 
Storage Engine Wars at Parse
Storage Engine Wars at ParseStorage Engine Wars at Parse
Storage Engine Wars at Parse
 
Chris Ward - Understanding databases for distributed docker applications - No...
Chris Ward - Understanding databases for distributed docker applications - No...Chris Ward - Understanding databases for distributed docker applications - No...
Chris Ward - Understanding databases for distributed docker applications - No...
 
Hadoop @ eBay: Past, Present, and Future
Hadoop @ eBay: Past, Present, and FutureHadoop @ eBay: Past, Present, and Future
Hadoop @ eBay: Past, Present, and Future
 
Hadoop Primer
Hadoop PrimerHadoop Primer
Hadoop Primer
 
遇見 Ruby on Rails
遇見 Ruby on Rails遇見 Ruby on Rails
遇見 Ruby on Rails
 
The MySQL Server ecosystem in 2016
The MySQL Server ecosystem in 2016The MySQL Server ecosystem in 2016
The MySQL Server ecosystem in 2016
 
The MySQL Server ecosystem in 2016
The MySQL Server ecosystem in 2016The MySQL Server ecosystem in 2016
The MySQL Server ecosystem in 2016
 
44CON 2014 - Pentesting NoSQL DB's Using NoSQL Exploitation Framework, Franci...
44CON 2014 - Pentesting NoSQL DB's Using NoSQL Exploitation Framework, Franci...44CON 2014 - Pentesting NoSQL DB's Using NoSQL Exploitation Framework, Franci...
44CON 2014 - Pentesting NoSQL DB's Using NoSQL Exploitation Framework, Franci...
 

Último

Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers:  A Deep Dive into Serverless Spatial Data and FMECloud Frontiers:  A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
Safe Software
 
Architecting Cloud Native Applications
Architecting Cloud Native ApplicationsArchitecting Cloud Native Applications
Architecting Cloud Native Applications
WSO2
 

Último (20)

DBX First Quarter 2024 Investor Presentation
DBX First Quarter 2024 Investor PresentationDBX First Quarter 2024 Investor Presentation
DBX First Quarter 2024 Investor Presentation
 
EMPOWERMENT TECHNOLOGY GRADE 11 QUARTER 2 REVIEWER
EMPOWERMENT TECHNOLOGY GRADE 11 QUARTER 2 REVIEWEREMPOWERMENT TECHNOLOGY GRADE 11 QUARTER 2 REVIEWER
EMPOWERMENT TECHNOLOGY GRADE 11 QUARTER 2 REVIEWER
 
Polkadot JAM Slides - Token2049 - By Dr. Gavin Wood
Polkadot JAM Slides - Token2049 - By Dr. Gavin WoodPolkadot JAM Slides - Token2049 - By Dr. Gavin Wood
Polkadot JAM Slides - Token2049 - By Dr. Gavin Wood
 
Apidays New York 2024 - Accelerating FinTech Innovation by Vasa Krishnan, Fin...
Apidays New York 2024 - Accelerating FinTech Innovation by Vasa Krishnan, Fin...Apidays New York 2024 - Accelerating FinTech Innovation by Vasa Krishnan, Fin...
Apidays New York 2024 - Accelerating FinTech Innovation by Vasa Krishnan, Fin...
 
Web Form Automation for Bonterra Impact Management (fka Social Solutions Apri...
Web Form Automation for Bonterra Impact Management (fka Social Solutions Apri...Web Form Automation for Bonterra Impact Management (fka Social Solutions Apri...
Web Form Automation for Bonterra Impact Management (fka Social Solutions Apri...
 
Data Cloud, More than a CDP by Matt Robison
Data Cloud, More than a CDP by Matt RobisonData Cloud, More than a CDP by Matt Robison
Data Cloud, More than a CDP by Matt Robison
 
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...
 
Exploring the Future Potential of AI-Enabled Smartphone Processors
Exploring the Future Potential of AI-Enabled Smartphone ProcessorsExploring the Future Potential of AI-Enabled Smartphone Processors
Exploring the Future Potential of AI-Enabled Smartphone Processors
 
Powerful Google developer tools for immediate impact! (2023-24 C)
Powerful Google developer tools for immediate impact! (2023-24 C)Powerful Google developer tools for immediate impact! (2023-24 C)
Powerful Google developer tools for immediate impact! (2023-24 C)
 
Real Time Object Detection Using Open CV
Real Time Object Detection Using Open CVReal Time Object Detection Using Open CV
Real Time Object Detection Using Open CV
 
TrustArc Webinar - Unlock the Power of AI-Driven Data Discovery
TrustArc Webinar - Unlock the Power of AI-Driven Data DiscoveryTrustArc Webinar - Unlock the Power of AI-Driven Data Discovery
TrustArc Webinar - Unlock the Power of AI-Driven Data Discovery
 
Apidays Singapore 2024 - Modernizing Securities Finance by Madhu Subbu
Apidays Singapore 2024 - Modernizing Securities Finance by Madhu SubbuApidays Singapore 2024 - Modernizing Securities Finance by Madhu Subbu
Apidays Singapore 2024 - Modernizing Securities Finance by Madhu Subbu
 
MINDCTI Revenue Release Quarter One 2024
MINDCTI Revenue Release Quarter One 2024MINDCTI Revenue Release Quarter One 2024
MINDCTI Revenue Release Quarter One 2024
 
Artificial Intelligence Chap.5 : Uncertainty
Artificial Intelligence Chap.5 : UncertaintyArtificial Intelligence Chap.5 : Uncertainty
Artificial Intelligence Chap.5 : Uncertainty
 
Boost Fertility New Invention Ups Success Rates.pdf
Boost Fertility New Invention Ups Success Rates.pdfBoost Fertility New Invention Ups Success Rates.pdf
Boost Fertility New Invention Ups Success Rates.pdf
 
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers:  A Deep Dive into Serverless Spatial Data and FMECloud Frontiers:  A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
 
"I see eyes in my soup": How Delivery Hero implemented the safety system for ...
"I see eyes in my soup": How Delivery Hero implemented the safety system for ..."I see eyes in my soup": How Delivery Hero implemented the safety system for ...
"I see eyes in my soup": How Delivery Hero implemented the safety system for ...
 
Axa Assurance Maroc - Insurer Innovation Award 2024
Axa Assurance Maroc - Insurer Innovation Award 2024Axa Assurance Maroc - Insurer Innovation Award 2024
Axa Assurance Maroc - Insurer Innovation Award 2024
 
A Beginners Guide to Building a RAG App Using Open Source Milvus
A Beginners Guide to Building a RAG App Using Open Source MilvusA Beginners Guide to Building a RAG App Using Open Source Milvus
A Beginners Guide to Building a RAG App Using Open Source Milvus
 
Architecting Cloud Native Applications
Architecting Cloud Native ApplicationsArchitecting Cloud Native Applications
Architecting Cloud Native Applications
 

HAProxyでMySQL HA on Amazon EC2

  • 1. HAProxy MySQL HA on Amazon EC2 @ijin
  • 2. @ijin • Michael H. Oshita • • 8 • •
  • 3. EC2 MySQL HA
  • 4. EC2 MySQL HA • MySQL Multi-Master • Amazon RDS (multi-AZ)
  • 5. MySQL Master- Master (MMM) DNS Web Web DNS $ $ DB1 DB2 $ ns agent
  • 6. Amazon RDS (multi-AZ) Web $ Web $ DB1 $ DB2 $
  • 7. $ $ 3 4 $
  • 8.
  • 9. 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/)
  • 10.
  • 11.
  • 12. Web Web • DB2 or HAProxy HAProxy • HAProxy DB1 DB1 DB2
  • 13. Web Web • DB1 or HAProxy HAProxy • HAProxy DB2 DB1 DB2
  • 14. Web Web • • HAProxy (DB1) HAProxy HAProxy • read ( ) DB1 DB2
  • 15. ( Amazon RDS) • read • DB • • http://github.com/ijin/mysqlcheck • http://gist.github.com/560708

Notas del editor