Hi all:
I need some help on Linux clustering issue that is I want to build a High available and load balancing clustering solution in RHEL4. I am now going through linux-ha.org site which is currently making little sense to me as I m lost. Currently these I make out of clustering issue
To make the HA cluster
Say I am using 2 Nodes (Can I use more than 2 nodes?) one master and one slave with 2 NICs on both of them.
These are the softwares that are required:
1.heartbeat-pils-1.0.4-1.i386.rpm
2.heartbeat-stonith-1.0.4-1.i386.rpm
3.heartbeat-1.0.4-1.i386.rpm
Master node Configuration:
Code:
# ifconfig
eth0
inet addr:192.168.85.1 Bcast:192.168.1.255 Mask:255.255.255.0
(Why create a virtual interface as in this link
http://linux-ha.org/GettingStarted#gettingstarted they didn't created any? )
eth0:0
inet addr:192.168.85.3 Bcast:192.168.1.255 Mask:255.255.255.0
eth1
inet addr:10.0.0.1 Bcast:10.255.255.255 Mask:255.0.0.0
lo inet addr:127.0.0.1 Mask:255.0.0.0
In slave Node:
Code:
eth0
inet addr:192.168.85.2 Bcast:192.168.1.255 Mask:255.255.255.0
eth1
inet addr:10.0.0.2 Bcast:10.255.255.255 Mask:255.0.0.0
lo Link encap:Local Loopback
inet addr:127.0.0.1 Mask:255.0.0.0
Is there any need to configure any virtual interface in slave?
Next configured /etc/hosts in both servers
Code:
127.0.0.1 localhost.localdomain localhost
192.168.85.1 masternode
192.168.85.2 slavenode
Configure file /etc/ha.d/authkeys
Configure File /etc/ha.d/haresources
Code:
masternode IPaddr::192.168.85.3 smb httpd
Where masternode is a hostname of master server and 192.168.1.51 is a virtual IP which is requested by client and httpd is monitor service.
Configuring following parameters in /etc/ha.d/ha.cf
Code:
debugfile /var/log/ha-debug
logfile /var/log/ha-log
logfacility local0
keepalive 1
deadtime 5
warntime 3
initdead 10
udpport 694
bcast eth0 # Linux
node masternode
node slavenode
Now how its actually swapping between these two nodes based on that virtual interface and how to make the load balancing ?
Thanks in advance and going through this.