PDA

View Full Version : Clustering Web Servers



MicronINC
10th January 2007, 05:18 AM
A friend and I both have FC6 servers running the same version of apache. We want to cluster them so as to load balance. Also, we are on different networks. I have researched this but I still am clueless as to how to do it. Is there any link to a step by step tutorial?

Thanks.

brunson
10th January 2007, 05:36 AM
About the only way is to round-robin your DNS. But you won't be able to have any server side persistence such as sessions unless you have something crazy on the back end.

MicronINC
10th January 2007, 05:40 AM
Round-robin? Could you eleborate?

brunson
10th January 2007, 05:44 AM
Sure, try this link: http://www.google.com/search?q=round-robin+dns

Post back when you've made the tiniest effort on your own. :-)

kschreyack
19th January 2007, 12:31 AM
You don't have to use round robin, there are other solutions. You could use LVS-NAT. With this you would have a virtual IP on the load balancer. Direct all requests to it, and that machine will forward all packets to a server with the least load on it. You will also have to configure the algorithm on the web servers as well.

Sorry about the lack of Fedora based tutorial. I haven't been able to find one for you...

Here is a generic howto:

http://www.austintek.com/LVS/LVS-HOWTO/mini-HOWTO/LVS-mini-HOWTO.html

Good Luck :)

brunson
19th January 2007, 12:34 AM
So, one of the servers is at his house and the other server is at his friends house. Where do you put the load balancer?

pete_1967
19th January 2007, 01:49 AM
damn slow ff server.

pete_1967
19th January 2007, 01:49 AM
So, one of the servers is at his house and the other server is at his friends house. Where do you put the load balancer?

Nearest pub.

JordanN
19th January 2007, 11:48 AM
pfSense (http://www.pfsense.com/) can do load balancing.