LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Server (http://www.linuxquestions.org/questions/linux-server-73/)
-   -   Squid load balancing configuration (http://www.linuxquestions.org/questions/linux-server-73/squid-load-balancing-configuration-906926/)

maxy 10-07-2011 07:51 AM

Squid load balancing configuration
 
Hi Friends,

I have RHEL5 server, and we want to configure SQUID proxy server as load balancer.

Ex.

[ RHEL5 server1 ] [ RHEL5 server2 ]
Squid squid

We want to configure round Robbin squid, like..
to load balance server , one request goes to server 1
other request goes to server 2, and again same.

Please suggest how this can be done..?or if there are open source tools for this.Please let me know how i should proceed.

TB0ne 10-07-2011 09:10 AM

Quote:

Originally Posted by maxy (Post 4492382)
Hi Friends,

I have RHEL5 server, and we want to configure SQUID proxy server as load balancer.
Ex.
[ RHEL5 server1 ] [ RHEL5 server2 ]
Squid squid

We want to configure round Robbin squid, like..to load balance server , one request goes to server 1 other request goes to server 2, and again same. Please suggest how this can be done..?or if there are open source tools for this.Please let me know how i should proceed.

The best open source tool you could use is Google...lots of how-tos can be found, by putting in "linux squid load balancer". Here's a few with examples, some can even be found by looking at the Squid documentation.
http://www.thefraggle.com/2007/04/09...ng-with-squid/
http://dlc.sun.com/osol/docs/content...ldbalance.html
http://wiki.squid-cache.org/SquidFaq/ReverseProxy

Juako 10-07-2011 09:19 AM

It's left to know if it's a forward or reverse proxy, but anyway I think this applies to both. IMO you can achieve this with an iptables-based "nth" loadbalancing scheme (greatly documented all over the web), and furthermore you can use some peer config in the squids to take advantage of already cached objects across them.


All times are GMT -5. The time now is 08:37 AM.