分类: Mysql/postgreSQL
2012-01-13 10:29:46
一、配置环境:
OS:Linux CentOS 6.2
MySQL: mysql-cluster-gpl-7.1.18-linux-x86_64-glibc23.tar.gz (注意:需用Cluster版本,可在官网上下载 http://dev.mysql.com/downloads/cluster/#downloads)
Keepalived : keepalived-1.2.2.tar.gz
节点配置情况:
IP |
主机名 |
节点描述 |
软件 |
数据库虚IP |
192.168.0.190 |
sql1 |
管理节点1 Sql节点1 Keepalived 节点1 |
Ndb_mgm ndb_mgmd Mysqld keepalived |
192.168.0.115 |
192.168.0.191 |
sql2 |
管理节点2 Sql节点2 Keepalived 节点2 |
Ndb_mgm ndb_mgmd Mysqld keepalived | |
192.168.0.186 |
Node1 |
数据节点1 |
Mysqld |
|
192.168.0.187 |
Node2 |
数据节点2 |
Mysqld |
|
192.168.0.19 |
server |
数据节点2 |
Mysql |
|