Setup a http load balancer in about 20 seconds using pen.
First, make sure the server you are on is NOT running anything on port 80.
Next install pen with “yum install pen” (or apt-get install pen) and then you just start it using this:
# pen 80 web1.domain.com web2.domain.com web3.domain.com
Say you ran this command on the server web.domain.com, now when you access http://web.domain.com it will balance the request between web1 web2 and web3. See the man page for more details.
Easy peasy.
Post a Comment