MySQL NDB Cluster
的实践
强昌⾦
⽬录
1 关于我
2 MySQL HA
3 MySQL NDB Cluster介绍
4 MySQL NDB Cluster架构
5 MySQL NDB Cluster的管理
6 MySQL NDB Cluster的复制
7 MySQL NDB Cluster的限制
关于我
• 陌陌 DBA(2014-2015)
• 去哪⼉⾼级DBA(2015-2017)
• 去哪⼉⽹数据库管理平台
• 《MySQL 运维内参》
• CRUG(Redis中国⽤户组)副主席
• MySQL OCP
• ⾃由职业:提供MySQL/Redis咨询与技术⽀持
MySQL HA
MySQL NDB Cluster 架构
MySQL NDB Cluster 概述
• Network DataBase
• In-Memory
• Shared-Nothing
• Auto-Sharding
• High-Availability
• Data-Persisnce
• Read/Write consistency/Scalability
MySQL NDB Cluster— API
MySQL NDB Cluster—Data Nodes
• Data Nodes
• 数据存储
• 分⽚
• ⾃动复制
• 扩展性
Data Nodes(Node Groups、Replicas、Partitions)
MySQL NDB Cluster—SQL Nodes
• SQL Nodes
• SQL Access to data
• Round-robin app access
• Geographic Replication
• Scale out for performance
MySQL NDB Cluster—Managerment Nodes
• Management Nodes
• Distribute configuration data
• Control Cluster membership
• Run backup
• Arbitrator in case of network partitioning
MySQL NDB Cluster—安装与配置
• SQL Nodes
• 安装MySQL实例
• 修改my.cnf配置⽂件
• Data Nodes
• 安装Data Node软件
• 修改my.cnf配置⽂件
• Management Nodes
• 安装Management Node
• 修改my.cnf配置
MySQL NDB Cluster—节点启动类型
• 启动类型
• Initial start
• System restart
• Node restart
• Initial node restart
MySQL NDB Cluster—ndbinfo库
• 仲裁相关