4. MySQL 的高可用方案
• MySQL Replication
• MySQL+DRBD (for Linux)
Asynchronous replication
Shared Nothing Active/Passive
Application /
Application /
Web / Web AP
Web / Web AP
Load Balancing
Fail Over on failure
MySQL
MySQL
Asynchronous
Server
Server
MySQL
Server
MySQL
Synchronous
Replication
Server
Replication
• Shared Disk Based Active/Passive • MySQL Cluster
Shared Nothing Active/Active
Application /
Application /
Web / Web AP
Web / Web AP
Fail Over on failure
MySQL
Server
Shared disk
Load Balancing
MySQL
Server
MySQL
Cluster
MySQL
Synchronous
Replication
Cluster
5. MySQL Cluster 的架構
REST
LDAP
Application Nodes
Node Group 2
F3
Node 3
F1
F3
F1
Data Nodes
Node 4
Node 1
Cluster
Mgr
Node 2
Node Group 1
F2
F4
F4
F2
Cluster
Mgr
6. MySQL Cluster 的組成
SQL Node
(MySQL)
NDB API
(Application)
Data Node
(NDB Storage Engine)
Management
Node
• Standard SQL Interface
• Scale-out for Performance
• Enables Replication
• High Performance
• C, C++ & Java, LDAP, HTTP API
• Developer’s Guide
• Data Storage (Memory/Disk)
• Automatic & User-Defined Partitioning
• Local & Global Checkpoints
• Scale-out or scale-up for Capacity & Redundancy
• Scale dynamically with on-line add node
• Administration and Configuration
• Arbitration
• Use Two for Redundancy
7. MySQL Cluster - 極佳的存活力
REST
LDAP
Application Nodes
Node Group 2
F3
Node 3
F1
F3
F1
Data Nodes
Node 4
Node 1
Cluster
Mgr
Node 2
Node Group 1
F2
F4
F4
F2
Cluster
Mgr
11. Service Portal 資料庫架搆
- MySQL Cluster with Replication
Load balancer
MySQL-Enterprise
Monitor
In Site
Replication
MySQL-Slave
(Reporting)
Data Node
Data Node
MySQLCluster
MySQLCluster
In Site
Replication
SQL Node
Fail over
Cross Site
Replication
MySQL-Slave
(Reporting)
SQL Node
Switch/Proxy
Management
Node
Cross Site
Replication
Cross Site
Replication
MySQLCluster
MySQL-Slave
(Reporting)
In Site
Replication
12. U-Cloud 完整資料庫架構
Presentation/Logial Layer
Data Access Layer (JPA)
Cluster/J
Sharding Layer (HiveDB...)
MySQL Cluster
公共资源
码号资源
Lookup &
Authentication
SQL
SQL
Data
Data
SQL
SQL
Data
Data
设备资源
设备资源
ETL
BIDW
基础网
基础网
专业网
专业网