Re: [squid-users] how to use tproxy + iptables load balancing

From: Alfredo Rezinovsky <alfredo_at_fing.uncu.edu.ar>
Date: Sat, 31 Aug 2013 07:17:53 -0300

El 31/08/13 05:13, Mohsen Dehghani escribió:
> Hi team
> I am planning to install multiple instances of squid on a machine as a
> frontend. Tproxy is now working fine on a single instance machine.
> No I want to run multiple instances and use this help to load balance
> between them:
>
> http://wiki.squid-cache.org/ConfigExamples/ExtremeCarpFrontend#Frontend_Bala
> ncer_Alternative_1:_iptables
>
> does anybody have any experience doing this?
>
> I think the key rule in tproxy iptables is:
> iptables -t mangle -A PREROUTING -p tcp --dport 80 -j TPROXY --tproxy-mark
> 0x1/0x1 --on-port 3129
>
> I have tried some ways of combination of this with the example without any
> success.
>
You can use workers. A native way to have more than one squid listening
in the SAME port.

Caches are still independent. Except memory cache and rock cache that
can be shared, but only for objects below 32K

--
Alfrenovsky
Received on Sat Aug 31 2013 - 10:19:06 MDT

This archive was generated by hypermail 2.2.0 : Sat Aug 31 2013 - 12:00:30 MDT