您的位置:首页 > 数据库 > MySQL

Mysql集群方案(一) - Cluster & Replication 介绍

2011-07-22 23:32 597 查看
对数据库集群处于初步学习阶段,记录备忘
扫盲:
提到Mysql集群(Mysql Cluster),其实有两类方案, 名字上的Mysql Cluster只是其中一类.
Mysql Cluster 将数据放内存中
A MySQL Cluster consists of a set of computers, each running a one or more processes which may include a MySQL server, a data node, a management server, and (possibly) a specialized data access programs. The relationship of these components in a cluster is shown here:



如上图,这个系统中,最小的集群可能是如此:
NodeIP Address
Management (MGM) node192.168.0.10
MySQL server (SQL) node192.168.0.20
Data (NDBD) node "A"192.168.0.30
Data (NDBD) node "B"192.168.0.40
topology



Replication - Read/Write



Replication - Separate Read & Write
Using replication to improve the performance during scaleout



Comparison
RequirementsMySQL ReplicationMySQL Replication + HeartbeatMySQL Heartbeat + DRBDMySQL Cluster
Availability
Automated IP failoverNoYesYesNo
Automated database failoverNoNoYesYes
Typical failover timeUser/script-dependentVaries< 30 seconds< 3 seconds
Automatic resynchronization of dataNoNoYesYes
Geographic redundancy supportYesYesYes, when combined with MySQL ReplicationYes, when combined with MySQL Replication
Scalability
Built-in load balancingNoNoNoYes
Supports Read-intensive applicationsYesYesYes, when combined with MySQL ReplicationYes
Supports Write-intensive applicationsNoNoYesYes
Maximum number of nodes per groupOne master, multiple slavesOne master, multiple slavesOne active (primary), one passive (secondary) node255
Maximum number of slavesUnlimited (reads only)Unlimited (reads only)One (failover only)Unlimited (reads only)
http://haka.sharera.com/blog/BlogTopic/54291.htm
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: