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

From: Ding Guigeng <guigeng.ding_at_gmail.com>
Date: Thu, 10 Oct 2013 01:07:36 -0700 (PDT)

Mohsen Dehghani wrote
> 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.
>
> thanks

Hi Mohsen,
have you installed success now?
i am also planning to install it with iptables balance.
now my squid server running with 3 workers well.but the usage of per core is
uneven.

--
View this message in context: http://squid-web-proxy-cache.1019090.n4.nabble.com/how-to-use-tproxy-iptables-load-balancing-tp4661863p4662554.html
Sent from the Squid - Users mailing list archive at Nabble.com.
Received on Thu Oct 10 2013 - 08:08:23 MDT

This archive was generated by hypermail 2.2.0 : Thu Oct 10 2013 - 12:00:05 MDT