Linux HA and Load balancing
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 In slave Node: Code:
eth0 Next configured /etc/hosts in both servers Code:
127.0.0.1 localhost.localdomain localhost Code:
auth 1 Code:
Configuring following parameters in /etc/ha.d/ha.cf Code:
debugfile /var/log/ha-debug Thanks in advance and going through this. |
You need to enter a password in authfile and it should have permissions 600.
auth 1 1 CRC PASSWORD_HERE What is does is consistently ping the master server to check if the server is still running. If it detects a failure then it brings up the virtual interface. If uses the IPaddr script. It is located under /etc/ha.d/resources I would also advise that you add a ping host. So that it can check network connectivity based on a third host too. |
Thank you for your reply.
Can I use more than 2 nodes for failover and how to do load balancing? Should I use another 2 nodes for load balancing that is in total of 4 nodes for load balancing and HA. Any tutorial where I can get a good tutorial on setting up load balancing server on RHEL4. |
you can use more than 2 nodes. I haven't. I am in the process of deploying a 2 node load balancer one being the hot standby.
Here is a link to the tutorial. http://www.austintek.com/LVS/LVS-HOWTO/HOWTO/index.html Not sure if RHEL includes the required packages. What kind of configuration are you looking at active-active? |
Thanks for your reply.
I am now going through the link u gave and its huge. I found a tutorial here http://howtoforge.com/high_availabil...apache_cluster and this is exactly what I am looking for, except that, the author used Debian Sarge for it and I will be using RHEL ES4. My target is now to make it happen with 2 nodes first then I will go for more. |
All times are GMT -5. The time now is 08:20 AM. |