percona xtradb cluster sf meetup

Download Percona XtraDB Cluster SF Meetup

Post on 10-May-2015

2.542 views

Category:

Technology

1 download

Embed Size (px)

TRANSCRIPT

  • 1.Percona XtraDB Cluster powered by Galera Vadim TkachenkoPercona Inc, co-founder, CTO www.percona.comwww.mysqlperformanceblog.com

2. Percona XtraDB ClusterThis talk online PowerPoint http://bit.ly/PXC-meetup PDF http://bit.ly/PXC-meetup-pdf Google Docs http://bit.ly/PXC-meetup-gdocs 3. Percona XtraDB ClusterThis talk High Availability Replication Cluster 4. Percona XtraDB ClusterWhat is HAAvailability Avail ~ Ability Ability to Avail 5. Percona XtraDB ClusterAvailability by redundancy 6. Percona XtraDB ClusterDuplicate resources 7. Percona XtraDB ClusterFailover 8. Percona XtraDB ClusterProbability of failure Single Twoserver: P servers: P/2 X servers:P/X 9. Percona XtraDB ClusterProbability of failureProbability of failure 1 2 3 45 6 7 8 9 10 N of servers 10. Percona XtraDB ClusterEasy ?Not if we deal with databases 11. Percona XtraDB ClusterDatabase 12. Percona XtraDB ClusterRedundancy ? 13. Percona XtraDB ClusterDatabase availability is hard Service Dataavailability availability 14. Percona XtraDB ClusterReplication 15. Percona XtraDB Cluster 16. Percona XtraDB ClusterWhat is wrong with MySQLreplication ?a 17. Percona XtraDB ClusterWhat is wrong with MySQLreplication ?a in async 18. Percona XtraDB ClusterWhat is wrong with MySQLreplication ?async vssync 19. Percona XtraDB ClusterAsync 20. Percona XtraDB ClusterAsync 21. Percona XtraDB Clustersync 22. Percona XtraDB ClusterDidnt we just reinventDRBD ? 23. Percona XtraDB ClusterDRBD 24. Percona XtraDB ClusterClustering 25. Percona XtraDB ClusterPercona XtraDB ClusterFree and Open Source 26. Percona XtraDB ClusterPercona XtraDB Cluster 27. Percona XtraDB ClusterVirtually synchronoushttp://en.wikipedia.org/wiki/Virtual_synchrony 28. Percona XtraDB ClusterVirtually synchronous 29. Percona XtraDB Clustersynchronousmulti-master replicationreplicationparalleldataapplying on consistencyslavesautomaticnode provisioning 30. Percona XtraDB Clustersynchronousmulti-master replicationreplicationparalleldataapplying on consistencyslavesautomaticnode provisioning 31. Percona XtraDB ClusterMulti-master: MySQL 32. Percona XtraDB ClusterMulti-master: XtraDB Cluster 33. Percona XtraDB Clustersynchronousmulti-master replicationreplicationparalleldataapplying on consistencyslavesautomaticnode provisioning 34. Percona XtraDB ClusterParallel apply: MySQL 35. Percona XtraDB ClusterParallel apply: XtraDB Cluster 36. Percona XtraDB Clustersynchronousmulti-master replicationreplicationparalleldataapplying on consistencyslavesautomaticnode provisioning 37. Percona XtraDB ClusterXtraDB Cluster data consistency 38. Percona XtraDB Clustersynchronousmulti-master replicationreplicationparalleldataapplying on consistencyslavesautomaticnode provisioning 39. Percona XtraDB ClusterNode provisioning 40. Percona XtraDB ClusterCAP theoremhttp://en.wikipedia.org/wiki/CAP_theorem 41. Percona XtraDB ClusterPick only TWO Node Consistency availability PartitionTolerance 42. Percona XtraDB ClusterNetwork failure 43. Percona XtraDB ClusterMySQL Replication Access to all systems - YES Data consistency - NO 44. Percona XtraDB ClusterXtraDB Cluster Access to all systems - NO Data consistency - YES 45. Percona XtraDB Cluster3 nodes is the minimalrecommended configuration 46. Percona XtraDB ClusterSplit brain Which system to make available ? 47. Percona XtraDB ClusterSplit brain You still can have this setup But you deal with consequences 48. Percona XtraDB ClusterChoice MySQL Replication: Access to all systems XtraDB Cluster: Data consistency 49. Percona XtraDB ClusterMHAMMMMySQL replicationbasedFlipper PRM 50. Percona XtraDB ClusterPercona XtraDB Clusterdetails 51. Percona XtraDB Cluster PerconaServer Percona WSREPXtraDB Cluster patches Galera library 52. Percona XtraDB Cluster Fullcompatibilitywith existingsystems 53. Percona XtraDB ClusterMinimalefforts tomigrate 54. Percona XtraDB Cluster Minimal efforts toreturn back to MySQL 55. Percona XtraDB ClusterSo, is this a perfect solution? 56. Percona XtraDB ClusterLimitationssome will be solved later 57. Percona XtraDB ClusterOnly InnoDB tables aresupported 58. Percona XtraDB ClusterOPTIMISTIC locking fortransactions on different servershttp://en.wikipedia.org/wiki/Optimistic_concurrency_control 59. Percona XtraDB ClusterTraditional locking 60. Percona XtraDB ClusterOptimistic locking 61. Percona XtraDB ClusterThe write performance islimited by weakest node 62. Percona XtraDB ClusterWrite performance 63. Percona XtraDB ClusterFor write intensive applicationsthere could be datasize limit pernodeNot physical but logical 64. Percona XtraDB ClusterJoin process. Step 1 65. Percona XtraDB ClusterJoin process. Step 2 66. Percona XtraDB ClusterJoin process: step 3 67. Percona XtraDB ClusterThis is software + hardwaresolution 68. Percona XtraDB ClusterInnoDB write performance 69. Percona XtraDB ClusterInnoDB performance + ACID 70. Percona XtraDB ClusterCluster performance 10 GigE Network Infiniband SSD Storage PCI-e Flash 71. Percona XtraDB ClusterJoin process 72. Percona XtraDB ClusterState TransferFull data IncrementalSST ISTNodeNew nodedisconnectedshort time Node long time disconnected 73. Percona XtraDB ClusterSnapshot State TransferMysqldumpRsync XtraBackup Donor DonorSmall disconnecteddisconnecteddatabases for copy time for short timefasterslower 74. Percona XtraDB ClusterIncremental State TransferNode wasin cluster Disconnectedfor maintenance Node Crashed(work in progress) 75. Percona XtraDB ClusterScaleability 76. Percona XtraDB ClusterScaleabilityScale ~ AbilityAbility to Scale 77. Percona XtraDB ClusterScaleability is similar to availability 78. Percona XtraDB ClusterXtraDB Cluster: Reads scalability iseasy 79. Percona XtraDB ClusterWrite scalability is complicated 80. Percona XtraDB ClusterN servers scale to :100% readsN factor 50/50N/2 factor 100% writes 1 or const 81. Percona XtraDB Cluster10 servers scale to :100% 1 server: 100 q/s 10 servers: 1000 q/sreads 1 server: 100 q/s50/50 10 servers: 500 q/s100% 1 server: 100 q/s 10 servers: 100 q/swrites(can be more) 82. Percona XtraDB ClusterFAQQuestions I am asked 83. Percona XtraDB ClusterIt looks so easy. Why didnot you implement it earlier?It is not easy.Computer science of groupcommunication and distributedtransactions.Credits to Codership Oy 84. Percona XtraDB ClusterHow fast is it?Reasonably fast. 85. Percona XtraDB ClusterCan I replicate XtraDBCluster to MySQLReplication?Yes 86. Percona XtraDB ClusterAsync MySQL Replication 87. Percona XtraDB ClusterWould I install it on aproduction system?Yes. I am going to upgradeMySQLPerformanceBlog.com to use XtraDB Cluster 88. Percona XtraDB ClusterHow it is compared toMySQL Cluster?It is different 89. Percona XtraDB ClusterXtraDBMySQLCluster ClusterEasy to migrate Easy to use Cloud / EC2 Changes in anapplicationWrite scaling 99.999% 90. Percona XtraDB ClusterResources 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 91. Percona XtraDB ClusterCredits WSREP patches and Galera library is developed by Codership Oy 92. Percona XtraDB ClusterThank you! Questions ? You can try Percona XtraDB Cluster today!

Recommended

View more >