Percona XtraDB 集群
Upcoming SlideShare
Loading in...5
×
 

Like this? Share it with your network

Share

Percona XtraDB 集群

on

  • 627 views

Percona XtraDB 集群

Percona XtraDB 集群

http://www.ossez.com/forum.php?mod=viewthread&tid=26861&fromuid=426
(出处: OSSEZ)

Statistics

Views

Total Views
627
Views on SlideShare
627
Embed Views
0

Actions

Likes
2
Downloads
15
Comments
0

0 Embeds 0

No embeds

Accessibility

Categories

Upload Details

Uploaded via as Adobe PDF

Usage Rights

© All Rights Reserved

Report content

Flagged as inappropriate Flag as inappropriate
Flag as inappropriate

Select your reason for flagging this presentation as inappropriate.

Cancel
  • Full Name Full Name Comment goes here.
    Are you sure you want to
    Your message goes here
    Processing…
Post Comment
Edit your comment

Percona XtraDB 集群 Presentation Transcript

  • 1. Percona XtraDB Cluster powered by Galera Vadim Tkachenko Percona Inc, co-founder, CTO www.percona.com www.mysqlperformanceblog.com
  • 2. This talk online • PowerPoint • http://bit.ly/PXC-meetup • PDF • http://bit.ly/PXC-meetup-pdf • Google Docs • http://bit.ly/PXC-meetup-gdocs Percona XtraDB Cluster
  • 3. This talk Percona XtraDB Cluster
  • 4. What is HA Percona XtraDB Cluster
  • 5. Availability by redundancy Percona XtraDB Cluster
  • 6. Duplicate resources Percona XtraDB Cluster
  • 7. Failover Percona XtraDB Cluster
  • 8. Percona XtraDB Cluster
  • 9. Probability of failure Percona XtraDB Cluster
  • 10. Easy ? Not if we deal with databases Percona XtraDB Cluster
  • 11. Database Percona XtraDB Cluster
  • 12. Redundancy ? Percona XtraDB Cluster
  • 13. Database availability is hard Percona XtraDB Cluster
  • 14. Replication Percona XtraDB Cluster
  • 15. Percona XtraDB Cluster
  • 16. What is wrong with MySQL replication ? Percona XtraDB Cluster
  • 17. What is wrong with MySQL replication ? Percona XtraDB Cluster
  • 18. What is wrong with MySQL replication ? Percona XtraDB Cluster
  • 19. Async Percona XtraDB Cluster
  • 20. Async Percona XtraDB Cluster
  • 21. sync Percona XtraDB Cluster
  • 22. Didn’t we just reinvent DRBD ? Percona XtraDB Cluster
  • 23. DRBD Percona XtraDB Cluster
  • 24. Clustering Percona XtraDB Cluster
  • 25. Percona XtraDB Cluster Free and Open Source Percona XtraDB Cluster
  • 26. Percona XtraDB Cluster Percona XtraDB Cluster
  • 27. Virtually synchronous http://en.wikipedia.org/wiki/Virtual_synchrony Percona XtraDB Cluster
  • 28. Virtually synchronous Percona XtraDB Cluster
  • 29. Percona XtraDB Cluster
  • 30. Percona XtraDB Cluster
  • 31. Multi-master: MySQL Percona XtraDB Cluster
  • 32. Multi-master: XtraDB Cluster Percona XtraDB Cluster
  • 33. Percona XtraDB Cluster
  • 34. Parallel apply: MySQL Percona XtraDB Cluster
  • 35. Parallel apply: XtraDB Cluster Percona XtraDB Cluster
  • 36. Percona XtraDB Cluster
  • 37. XtraDB Cluster data consistency Percona XtraDB Cluster
  • 38. Percona XtraDB Cluster
  • 39. Node provisioning Percona XtraDB Cluster
  • 40. CAP theorem http://en.wikipedia.org/wiki/CAP_theorem Percona XtraDB Cluster
  • 41. Pick only TWO Percona XtraDB Cluster
  • 42. Network failure Percona XtraDB Cluster
  • 43. MySQL Replication Percona XtraDB Cluster Access to all systems -YES Data consistency - NO
  • 44. XtraDB Cluster Percona XtraDB Cluster Access to all systems - NO Data consistency -YES
  • 45. 3 nodes is the minimal recommended configuration Percona XtraDB Cluster
  • 46. Split brain Percona XtraDB Cluster Which system to make available ?
  • 47. Split brain Percona XtraDB Cluster But you deal with consequences You still can have this setup
  • 48. Choice Percona XtraDB Cluster MySQL Replication: Access to all systems Data consistency XtraDB Cluster:
  • 49. Percona XtraDB Cluster
  • 50. Percona XtraDB Cluster details Percona XtraDB Cluster
  • 51. Percona XtraDB Cluster
  • 52. Percona XtraDB Cluster
  • 53. Percona XtraDB Cluster
  • 54. Percona XtraDB Cluster
  • 55. So, is this a perfect solution? Percona XtraDB Cluster
  • 56. Limitations some will be solved later Percona XtraDB Cluster
  • 57. Only InnoDB tables are supported Percona XtraDB Cluster
  • 58. OPTIMISTIC locking for transactions on different servers http://en.wikipedia.org/wiki/Optimistic_concurrency_control Percona XtraDB Cluster
  • 59. Traditional locking Percona XtraDB Cluster
  • 60. Optimistic locking Percona XtraDB Cluster
  • 61. The write performance is limited by weakest node Percona XtraDB Cluster
  • 62. Write performance Percona XtraDB Cluster
  • 63. For write intensive applications there could be datasize limit per node Not physical but logical Percona XtraDB Cluster
  • 64. Join process. Step 1 Percona XtraDB Cluster
  • 65. Join process. Step 2 Percona XtraDB Cluster
  • 66. Join process: step 3 Percona XtraDB Cluster
  • 67. This is software + hardware solution Percona XtraDB Cluster
  • 68. InnoDB write performance Percona XtraDB Cluster
  • 69. InnoDB performance + ACID Percona XtraDB Cluster
  • 70. Cluster performance Percona XtraDB Cluster
  • 71. Join process Percona XtraDB Cluster
  • 72. State Transfer Percona XtraDB Cluster
  • 73. Snapshot State Transfer Percona XtraDB Cluster
  • 74. Incremental State Transfer Percona XtraDB Cluster
  • 75. Scaleability Percona XtraDB Cluster
  • 76. Percona XtraDB Cluster
  • 77. Scaleability is similar to availability Percona XtraDB Cluster
  • 78. XtraDB Cluster: Reads scalability is easy Percona XtraDB Cluster
  • 79. Write scalability is complicated Percona XtraDB Cluster
  • 80. N servers scale to : Percona XtraDB Cluster
  • 81. 10 servers scale to : Percona XtraDB Cluster
  • 82. FAQ Questions I am asked Percona XtraDB Cluster
  • 83. It looks so easy. Why did not you implement it earlier? It is not easy. Computer science of group communication and distributed transactions. Credits to Codership Oy Percona XtraDB Cluster
  • 84. How fast is it? Reasonably fast. Percona XtraDB Cluster
  • 85. Can I replicate XtraDB Cluster to MySQL Replication? Yes Percona XtraDB Cluster
  • 86. Percona XtraDB Cluster Async MySQL Replication
  • 87. Would I install it on a production system? Yes. I am going to upgrade MySQLPerformanceBlog.com to use XtraDB Cluster Percona XtraDB Cluster
  • 88. How it is compared to MySQL Cluster? It is different Percona XtraDB Cluster
  • 89. XtraDB Cluster MySQL Cluster Easy to migrate  Easy to use  Cloud / EC2  Changes in an application  Write scaling  99.999%  Percona XtraDB Cluster
  • 90. Resources • http://www.percona.com/software/percona-xtradb-cluster/ • http://www.codership.com/wiki/doku.php • Virtual synchrony • http://en.wikipedia.org/wiki/Virtual_synchrony • CAP Theorem • http://en.wikipedia.org/wiki/CAP_theorem • Optimistic locking • http://en.wikipedia.org/wiki/Optimistic_concurrency_control Percona XtraDB Cluster
  • 91. Credits • WSREP patches and Galera library is developed by Codership Oy Percona XtraDB Cluster
  • 92. Thank you! Percona XtraDB Cluster