Skip to content

Setup an http load balancer in 20 seconds

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

Say you ran this command on the server, now when you access it will balance the request between web1 web2 and web3.  See the man page for more details.

Easy peasy.

Post a Comment

You must be logged in to post a comment.