![]() |
mysql-cluster load balancing problem !!
I have follow every step of how to mysql cluster and load balancing, But when i reach the page 7 "prepare the mysql cluster node for load balancing",after i type "ifup lo:0" .. Then i check the management node typed "ndb_mgm" >> "show". It show
============================================= Cluster Configuration --------------------- [ndbd(NDB)] 2 node(s) id=2 (not connected, accepting connect from 10.100.100.102) id=3 (not connected, accepting connect from 10.100.100.103) [ndb_mgmd(MGM)] 1 node(s) id=1 @10.100.100.101 (Version: 5.0.27) [mysqld(API)] 2 node(s) id=4 (not connected, accepting connect from any host) id=5 (not connected, accepting connect from any host) ============================================== This show all the node have been disconnected when i typed "ifup lo:0" 1) Is this normal when i typed ifup lo:0 the mysql cluster will disconnected, i cant even online with the both sql node ....???? I donno this situation is normal or not, so i proceed to nex step. Everything look same in the tutorial except i came to a step where i typed "ipvsadm -L -n" and the result is ... ============================================= IP Virtual Server version 1.2.1 (size=4096) Prot LocalAddress:Port Scheduler Flags -> RemoteAddress:Port Forward Weight ActiveConn InActConn TCP 10.100.100.105:3306 wrr -> 10.100.100.103:3306 Route 0 0 0 -> 10.100.100.102:3306 Route 0 0 0 ============================================= whereby, the "weight" is "0" and in tutorial is "1" (actually i not really understand what does the weight means... ) T_T so without any choice, i still proceed to another step until "mysql -h 10.100.100.105 -u ldirector -p " with the correct password. But after i login, i try to use the "select all from connectioncheck table" and it say "Error 1105 (HY000): Failed to open 'connectioncheck', error while unpacking from engine" 2) Is there other way to check the whole cluster-load balancer configured right ? 3) Can i use the same one of the my four pc to access mysql ?? 4) The same network other pc that mentioned must installed mysql to access my virtual ip mysql ? Please help and give some advise !!!!! thanks ..... |
Which distribution do you use?
Are you sure you followed the tutorial as close as possible? Maybe you made a typo somewhere? |
What do you mean "which distribution" ?
I follow the "How To Set Up A Load-Balanced MySQL Cluster". The following are the spec i used; Operating system : Ubuntu 5.10 * 10.100.100.102 MySQL cluster node 1 ( 1 NIC ) * 10.100.100.103 MySQL cluster node 2 ( 1 NIC ) * 10.100.100.101 Load Balancer 1 / MySQL cluster ( 1 NIC ) management server ( 1 NIC ) * 10.100.100.104 Load Balancer 2 ( 1 NIC ) All connected to 1 switch then to internet. All package using apt-get as in tutorial except the mysql-max 5.0.27 version changed. From the tutorial, i succeed follow until page 4 and completed it with no problem. Mysql clustering work fine and pass all test mentioned. ( So i comfirm until here with 100% no mistake). So the following step is "6 Configure The Load Balancers" until the end of "page 7 Create A Database Called ldirector" which required to type "ifup lo:0" command at the last page. When i ifup lo:0 the network interface at the sql1 node and sql2 node , the mysql cluster management (ndb_mgm) will automatically show ============================================= Cluster Configuration --------------------- [ndbd(NDB)] 2 node(s) id=2 (not connected, accepting connect from 10.100.100.102) id=3 (not connected, accepting connect from 10.100.100.103) [ndb_mgmd(MGM)] 1 node(s) id=1 @10.100.100.101 (Version: 5.0.27) [mysqld(API)] 2 node(s) id=4 (not connected, accepting connect from any host) id=5 (not connected, accepting connect from any host) ============================================== The mysql cluster disconnected. Without any error log or error specificed. The situation just like i pull out the cable. Can you let me know is this situation normal after i type ifup lo:0 at sql node mysql clustering with disconnected? I think i misunderstand or misconfiguring some part of the network. But i dono which part. I am sure there were no typo error( All have been re-check several times). So i wont ask many question first. I hope falko can correct me step by step. If any information needed please state it, i will provide it as soon as possible. Thanks falko for reply..... thanks ! |
Quote:
Quote:
|
I am using Ubuntu 5.10.
Quote:
#gedit /etc/modules Code:
# /etc/modules: kernel modules to load at boot time.Code:
#deb cdrom:[Ubuntu 5.10 _Breezy Badger_ - Release i386 (20051012)]/ breezy main restrictedCode:
#Configure Heartbeat #gedit /etc/ha.d/ha.cf Code:
logfacility local0#gedit /etc/ha.d/haresources Code:
Code:
auth 3#gedit /etc/ha.d/ldirectord.cf Code:
# Global Directivestest result #ip addr sh eth0 Code:
2: eth0: <BROADCAST,MULTICAST,UP> mtu 1500 qdisc pfifo_fast qlen 1000Code:
ldirectord for /etc/ha.d/ldirectord.cf is running with pid: 6566Code:
IP Virtual Server version 1.2.1 (size=4096)Code:
master running |
loadb2 configuration file ::
root@loadb2:/# vi etc/modules Code:
# /etc/modules: kernel modules to load at boot time.Code:
#deb cdrom:[Ubuntu 5.10 _Breezy Badger_ - Release i386 (20051012)]/ breezy main restrictedCode:
# /etc/sysctl.conf - Configuration file for setting system variables#gedit /etc/ha.d/ha.cf Code:
logfacility local0Code:
loadb1 \Code:
auth 3Code:
# Global DirectivesCode:
2: eth0: <BROADCAST,MULTICAST,UP> mtu 1500 qdisc pfifo_fast qlen 1000# ldirectord ldirectord.cf status Code:
ldirectord is stopped for /etc/ha.d/ldirectord.cf#ipvsadm -L -n Code:
IP Virtual Server version 1.2.1 (size=4096)Code:
master stopped |
And below is for node sql1 and node sql2:
sql1 node configuration file: #gedit /etc/sysctl.conf Code:
#Code:
# This file describes the network interfaces available on your systemsql2 node configuration file : #gedit /etc/sysctl.conf Code:
#Code:
# This file describes the network interfaces available on your systemFor additional information : 1. I am sure that was no insufient of memory issue. 2. I was albe to ping the virtual ip 10.100.100.105. 3. No connection at all for sql1 & sql2 node. 4. mysql-max-5.0.27-linux-i686-glibc23.tar.gz (newest version) used. 5. If disable the newly added code in the /etc/network/interfaces sql1 & sql2 will regain mysql cluster connection. :confused: Sorry for the "eye toturing" coding :eek: , i am so desperate to find the mistake and afraid the information i provided no enough, so i try to output all the configuration file here, incase someone have the similar case also can give opinion and advise. Really thanks falko for his patient in helping me to solve my problem and mistake. ;) |
| All times are GMT +2. The time now is 20:18. |
Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2013, vBulletin Solutions, Inc.