|
各位大哥哥大姐姐好,,,我前天用三台机器配置了一个MYSQL 集群,配置成功后都能正常工作(我主要做的是数据同步),在测试的时候把其中一台机器的NDBD线程杀死或把机器网线扒掉后就不能往MYSQL里面插入数据了,,如下为MGM的反应:
[ndbd(NDB)] 3 node(s)
id=3 (not connected, accepting connect from 192.168.0.20)
id=4 (not connected, accepting connect from 192.168.0.30)
id=5 (not connected, accepting connect from 192.168.0.8)
[ndb_mgmd(MGM)] 1 node(s)
id=2 @192.168.0.20 (Version: 5.0.27)
[mysqld(API)] 3 node(s)
id=6 (not connected, accepting connect from 192.168.0.20)
id=7 (not connected, accepting connect from 192.168.0.30)
id=8 (not connected, accepting connect from 192.168.0.8)
ndb_mgm> Node 3: Forced node shutdown completed. Occured during startphase 1. In itiated by signal 0. Caused by error 2311: 'Conflict when selecting restart type (Internal error, programming error or missing error message, please report a bug ). Temporary error, rest
另外我的MGM配置如下:
OfReplicas=3
DataMemory=80M
IndexMemory=18M
[TCP DEFAULT]
portnumber=2202
[NDB_MGMD]
HostName=192.168.0.20
DataDir=/var/lib/mysql-cluster
[NDBD]
HostName=192.168.0.20
DataDir=/usr/local/mysql/data
[NDBD]
HostName=192.168.0.30
DataDir=/usr/local/mysql/data
[NDBD]
hostname=192.168.0.8
DataDir=/usr/local/mysql/data
[MYSQLD]
hostname=192.168.0.20
[MYSQLD]
hostname=192.168.0.30
[MYSQLD]
hostname=192.168.0.8
我的NDB节点设置如下:
[mysqld]
ndbcluster
ndb-connectstring=192.168.0.20
datadir=/var/lib/mysql
socket=/tmp/mysql.sock
[MYSQL_CLUSTER]
ndb-connectstring=192.168.0.20
谢谢各位大哥大姐帮忙看看,,为什么杀死NDBD线程和扒网线后所有机器的MYSQL在都不能插入数据
在此非常谢谢啦。。:em03: :em03: :em03: |
|