- 论坛徽章:
- 0
|
小弟最近在研究这个mysql cluster先是在vmware中搭建一下玩玩现已经搭建好:
ndb_mgm> show
Connected to Management Server at: localhost:1186
Cluster Configuration
---------------------
[ndbd(NDB)] 2 node(s)
id=2 @192.168.0.5 (Version: 5.1.30, Nodegroup: 0, Master)
id=3 @192.168.0.6 (Version: 5.1.30, Nodegroup: 1)
[ndb_mgmd(MGM)] 1 node(s)
id=1 @192.168.0.7 (Version: 5.1.30)
[mysqld(API)] 2 node(s)
id=4 @192.168.0.2 (Version: 5.1.30)
id=5 @192.168.0.3 (Version: 5.1.30)
现有几个疑问:
1.所说的数据是存在内存到底是什么意思的?我看了数据是存在我的数据节点硬盘里面的啊?
2.网上一直说mysql cluster性能不如单节点真的是这样的吗?正确的mysql cluster应该如何搭建(就是说要几个ndbd,几个sql,前端是否要做lvs吗?)
3.为什么我只要停掉ndbd中的任一个节点就中出现:
ndb_mgm> show
Cluster Configuration
---------------------
[ndbd(NDB)] 2 node(s)
id=2 (not connected, accepting connect from ma-db3)
id=3 (not connected, accepting connect from ma-db4)
[ndb_mgmd(MGM)] 1 node(s)
id=1 @ma-db5 (Version: 5.1.30)
[mysqld(API)] 2 node(s)
id=4 (not connected, accepting connect from ma-db1)
id=5 (not connected, accepting connect from ma-db2)
[ 本帖最后由 zhuningwll 于 2009-5-5 14:02 编辑 ] |
|