On 22/08/2013 8:47 p.m., Pawel Mojski wrote:
> Hi Guys;
>
> I have some intresting deployment scenario. I have to install squid
> box(es) as L2 bridge in 10Gbit network with 6Gbit amonunt of traffic in
> peak.
> Squid is used to forward traffic to our ecap adapter. Ofcourse it's
> impossible to handle that traffic amount on one box.
> So, how to deploy it? I imagine such scenario. The first will be
> "balancer", it will be a linux box with 2 10gigs cards. Then, the
> "balancer" have to somehow redirect traffic to a squid boxes.
> My first thought was to use wccpv2 protocol, but I have figured that
> wccp router mode is very weakly supported on linux. I've found only two
> projects, one writen in C from 2002 and one in python from 2011.
> So, do you have any suggestions how to forward traffic to squid boxes?
> The main thing is to provide source-ip spoofing functionality and have
> only one bridge in 10gig network.
> Squid boxes will be connected to the balancer seperate interfaces over
> separate switch.
>
> Thanks in advance for further ideas.
Yes WCCP may let you down here. There are quite a few limits to Squid
support for it as well, not least of which is weak support for multiple
caches per router.
Doing this with only 1 bridge is probaly going to bite you as well, it
will need one massive beast of a machine. Each Squid process will easily
handle 100-150Mbps or so of traffic so you are looking at an estimate of
around 45-60 Squid with 1 CPU core each.
If you can find a box with enough CPU to split the traffic that way SM
should serve you okay although it may have a lower bps capacity than
standalone Squid due to the accept() races and UDS traffic the workers
have to manage. Otherwise I suggest looking in the direction of policy
routing the traffic using the iptables model for splitting traffic over
ports
(http://wiki.squid-cache.org/ConfigExamples/ExtremeCarpFrontend#Frontend_Balancer_Alternative_1:_iptables)
but possibly splitting the traffic over routes to several cache boxes.
Each of which doing regualar TPROXY on a smaller segment of the traffic
before being aggregated back into the line upstream by another
splitter/joiner.
Amos
Received on Fri Aug 23 2013 - 10:12:58 MDT
This archive was generated by hypermail 2.2.0 : Fri Aug 23 2013 - 12:00:35 MDT