TONIGHT Solomon Chang proudly presents: MySQL Clustering Welcome to the UUASC LA Chapter

Download TONIGHT Solomon Chang proudly presents: MySQL Clustering Welcome to the UUASC LA Chapter

Post on 01-Apr-2015

212 views

Category:

Documents

0 download

Embed Size (px)

TRANSCRIPT

<ul><li>Slide 1</li></ul> <p>TONIGHT Solomon Chang proudly presents: MySQL Clustering Welcome to the UUASC LA Chapter Slide 2 NDB Cluster High Availability* Shared-Nothing Architecture Redundancy Slide 3 Server Requirements Any machine that can run MySQL Slide 4 Server Requirements Any machine that can run MySQL Non-Microsoft Operating System Slide 5 Server Requirements Any machine that can run MySQL Non-Microsoft Operating System A buttload of RAM Slide 6 Slide 7 Types of Nodes Data Nodes ndbd Management Nodes ndb_mgmd API Nodes mysqld ndb_mgm Slide 8 Slide 9 Bits and Pieces Partition (AKA Fragment) A portion of a table Replica A copy of a Partition Node Group A collection of individual data nodes Slide 10 Slide 11 Slide 12 Slide 13 Slide 14 Slide 15 Security of Nodes Slide 16 Authentication: None Slide 17 Security of Nodes Authentication: None Encryption: None Slide 18 Security of Nodes Authentication: None Encryption: None Management and Data Nodes are very trusting as to who or what connects to them Slide 19 Slide 20 Slide 21 Transports Gigabit Ethernet Bare recommended minimum SCI Scalable Coherent Interconnect Infiniband Slide 22 Performance Primary Key are hashes Slide 23 Performance Primary Key are hashes Hashed values determine which rows are distributed to which data nodes Slide 24 Performance Primary Key are hashes Hashed values determine which rows are distributed to which data nodes Pushdown Slide 25 Performance Primary Key are hashes Hashed values determine which rows are distributed to which data nodes Pushdown Spreading query work across multiple data nodes set engine_condition_pushdown = 1 Slide 26 Data Node Setup In /etc/my.cnf: [MYSQLD] ndbcluster ndb-connectstring=10.0.0.152 [MYSQL_CLUSTER] ndb-connectstring=10.0.0.152 Slide 27 Management Node Setup config.ini sections [ndbd] [ndb_mgmd] [mysqld] Slide 28 Management Node Setup config.ini sections [ndbd] [ndb_mgmd] [mysqld] Sections can be blank Slide 29 Management Node Setup config.ini sections [ndbd] [ndb_mgmd] [mysqld] Sections can be blank There can be multiple instances of a section Slide 30 SQL Node Setup Just like the Data Node Setup In /etc/my.cnf: [MYSQLD] ndbcluster ndb-connectstring=10.0.0.152 [MYSQL_CLUSTER] ndb-connectstring=10.0.0.152 Slide 31 SQL Node Setup The Management Node already knows this is a SQL node from its config.ini file Slide 32 Enough Talking It's showtime Slide 33 Cluster Replication Cluster replication is exactly the same as regular MySQL replication, with the exception of the Binary Log Injection Thread. Slide 34 Slide 35 Backup and Restoration Why would a fault-tolerant, completely redundant system would ever need to have a backup for restoring data? Slide 36 Disk-Based NDB Cluster Slide 37 HA Caveat SQL Nodes </p>