0
MySQL High Availability                                Power and Usability                                               G...
About me     •      Giuseppe Maxia, a.k.a. The Data Charmer     •      Worked in the MySQL team (2006-2010)               ...
ToC                   •         What a demanding database user wants                        •     easy switch             ...
Whats an EASY failover                   •         A failover or switch is EASY if:                        •      I can pr...
Translation: What a DB user wants is:               •      Transparency                      Or               •      the a...
How a non-HA system works                                           App Logic                                     MySQL Cl...
How a non-HA system works (after a              switch)                                           App Logic               ...
App Logic                         App Logic                                       Tungsten Connector                Tungst...
How a Tungsten HA system works                                App Logic                             MySQL Client API      ...
How a Tungsten HA system works                                App Logic                             MySQL Client API      ...
Multiple site demo   ©Continuent 2012            11Wednesday, December 05, 12          11
Installation principles                   •         Install from one location only                   •         Remote inst...
What does the installation do                1: Validate all servers              host4                  host1        host...
What does the installation do                   1: (again) Validate all servers              host4             host1      ...
What does the installation do              2: install Tungsten in all servers                                             ...
Installation demo   ©Continuent 2012.              16Wednesday, December 05, 12             16
Standard HA system demo   ©Continuent 2012           17Wednesday, December 05, 12              17
How a "smart scale" Tungsten HA              system works                                                W         App Log...
Standard HA "smart scale" system              demo   ©Continuent 2012            19Wednesday, December 05, 12             ...
How a multi site (non HA) system              works                                   App Logic                           ...
How a multi site (non HA) system              works                                   App Logic                           ...
How a multi site (non HA) system              works                                                         App Logic     ...
How a multi-site Tungsten system              works              App Logic                             MySQL Client API   ...
How a multi-site Tungsten system              works              App Logic                             MySQL Client API   ...
How a multi-site Tungsten system              works              App Logic                             MySQL Client API   ...
Parting thoughts                   •         The key elements of HA are:                        • transparency            ...
560 S. Winchester Blvd., Suite 500           Our Blogs:   San Jose, CA 95128                           http://scale-out-bl...
Upcoming SlideShare
Loading in...5
×

MySQL high availability power and usability

1,065

Published on

Solving MySQL high availability issues with Continuent Tungsten

Published in: Technology
0 Comments
2 Likes
Statistics
Notes
  • Be the first to comment

No Downloads
Views
Total Views
1,065
On Slideshare
0
From Embeds
0
Number of Embeds
1
Actions
Shares
0
Downloads
22
Comments
0
Likes
2
Embeds 0
No embeds

No notes for slide

Transcript of "MySQL high availability power and usability"

  1. 1. MySQL High Availability Power and Usability Giuseppe Maxia QA Director - Continuent, Inc ©Continuent 2012.Wednesday, December 05, 12 1
  2. 2. About me • Giuseppe Maxia, a.k.a. The Data Charmer • Worked in the MySQL team (2006-2010) A • Now QA Director, Continuent, Inc • Using MySQL since 2001 • Creator and maintainer of MySQL Sandbox • Community Contributor of the year (2006, 2011) • Oracle ACE (2011) • Oracle ACE Director (2012) • BLOG: http://datacharmer.blogspot.comWednesday, December 05, 12 2
  3. 3. ToC • What a demanding database user wants • easy switch • easy and automated failover • easy recovery • disaster recovery stand-by site • easy site switch and failover • easy site recovery • What Continuent Tungsten does • all of the above ©Continuent 2012 3Wednesday, December 05, 12 3
  4. 4. Whats an EASY failover • A failover or switch is EASY if: • I can promote a slave easily • I can tell easily the other slaves who is new master • I can get a failover to happen automatically • Applications keep working without changes • Failovers only happen when the server is truly dead ©Continuent 2012 4Wednesday, December 05, 12 4
  5. 5. Translation: What a DB user wants is: • Transparency Or • the ability of using a RESILIENT database system without need to know whats going on ©Continuent 2012 5Wednesday, December 05, 12 5
  6. 6. How a non-HA system works App Logic MySQL Client API W master slave slave R R load balancer ©Continuent 2012 6Wednesday, December 05, 12 6
  7. 7. How a non-HA system works (after a switch) App Logic MySQL Client API W ? master switch slave slave R R ? load balancer ©Continuent 2012 7Wednesday, December 05, 12 7
  8. 8. App Logic App Logic Tungsten Connector Tungsten Connector Monitoring and control Monitoring and control db2 db1 db3 Manager Manager Manager Replicator Replicator Replicator Slave Master Slave Data Service: sj ©Continuent 2012 8Wednesday, December 05, 12 8
  9. 9. How a Tungsten HA system works App Logic MySQL Client API W R load balancer R ©Continuent 2012 9Wednesday, December 05, 12 9
  10. 10. How a Tungsten HA system works App Logic MySQL Client API W switch R load balancer R ©Continuent 2012 10Wednesday, December 05, 12 10
  11. 11. Multiple site demo ©Continuent 2012 11Wednesday, December 05, 12 11
  12. 12. Installation principles • Install from one location only • Remote installation of all services • No partial installations: Either all servers are OK, or none will be installed • Parallel installation ©Continuent 2012 12Wednesday, December 05, 12 12
  13. 13. What does the installation do 1: Validate all servers host4 host1 host2 host3 Report all errors ©Continuent 2012. 13Wednesday, December 05, 12 13
  14. 14. What does the installation do 1: (again) Validate all servers host4 host1 host2 host3 ©Continuent 2012. 14Wednesday, December 05, 12 14
  15. 15. What does the installation do 2: install Tungsten in all servers host4 $CONTINUENT_ host1 HOME/ host2 config/ host3 releases/ backups/ thl/ tungsten/ ©Continuent 2012. 15Wednesday, December 05, 12 15
  16. 16. Installation demo ©Continuent 2012. 16Wednesday, December 05, 12 16
  17. 17. Standard HA system demo ©Continuent 2012 17Wednesday, December 05, 12 17
  18. 18. How a "smart scale" Tungsten HA system works W App Logic MySQL Client API R R ©Continuent 2012 18Wednesday, December 05, 12 18
  19. 19. Standard HA "smart scale" system demo ©Continuent 2012 19Wednesday, December 05, 12 19
  20. 20. How a multi site (non HA) system works App Logic MySQL Client API W master relay slave slave slave slave R R load balancer ©Continuent 2012 20Wednesday, December 05, 12 20
  21. 21. How a multi site (non HA) system works App Logic MySQL Client API W master relay slave slave slave slave R R load balancer ©Continuent 2012 21Wednesday, December 05, 12 21
  22. 22. How a multi site (non HA) system works App Logic MySQL Client API W master relay slave slave slave slave R R load balancer ©Continuent 2012 22Wednesday, December 05, 12 22
  23. 23. How a multi-site Tungsten system works App Logic MySQL Client API W R R load balancer ©Continuent 2012 23Wednesday, December 05, 12 23
  24. 24. How a multi-site Tungsten system works App Logic MySQL Client API W R R load balancer ©Continuent 2012 24Wednesday, December 05, 12 24
  25. 25. How a multi-site Tungsten system works App Logic MySQL Client API W R R load balancer ©Continuent 2012 25Wednesday, December 05, 12 25
  26. 26. Parting thoughts • The key elements of HA are: • transparency • ease of use • Continuent Tungsten • makes cluster usage transparent • o!ers automatic failover • makes cluster management easy • deals with multiple sites with great ease ©Continuent 2012. 26Wednesday, December 05, 12 26
  27. 27. 560 S. Winchester Blvd., Suite 500 Our Blogs: San Jose, CA 95128 http://scale-out-blog.blogspot.com Tel +1 (866) 998-3642 http://datacharmer.blogspot.com Fax +1 (408) 668-1009 http://flyingclusters.blogspot.com e-mail: sales@continuent.com Continuent Website: http://www.continuent.com Tungsten Replicator 2.0: http://code.google.com/p/tungsten-replicator ©Continuent 2012 27Wednesday, December 05, 12 27
  1. A particular slide catching your eye?

    Clipping is a handy way to collect important slides you want to go back to later.

×