这几天在研究mysql集群
主要就是replication和cluster两种模式
cluster主要数据都必须放在内存里面,没这么大内存,不玩。。。
replication这个模式通过binlog同步,很久很久以前用过,比较成熟,在前端加一个proxy做load balance性能应该还过得去,明天详细测试一下。
研究的时候发现另外一个东东,就是DRBD,分布式块设备,貌似比分布式文件系统更底层,块设备做了任何更改都可以反映出来,就是一个使用网络的raid-1,会不会比bin log 同步更快呢,值得研究,先记录一下。
DRBD® refers to block devices designed as a building block to form high availability (HA) clusters. This is done by mirroring a whole block device via an assigned network. It is shown as network raid-1- DRBD.
In the illustration above, the two orange boxes represent two servers that form an HA cluster. The boxes contain the usual components of a Linux™ kernel: file system, buffer cache, disk scheduler, disk drivers, TCP/IP stack and network interface card (NIC) driver. The black arrows illustrate the flow of data between these components.
The orange arrows show the flow of data, as DRBD mirrors the data of a high availably service from the active node of the HA cluster to the standby node of the HA cluster.
Leave a Reply