Re: WCCP2 patch

From: Alex Rousskov <rousskov@dont-contact.us>
Date: Mon, 28 Jan 2008 10:39:11 -0700

On Mon, 2008-01-28 at 21:00 +0900, Steven Wilton wrote:
> We've had a couple of problems on our caches using WCCP2 + tproxy
> where the caches registered in a different order with the different
> WCCP services (traffic to the web server VS traffic from the web
> server). This resulted in the assignment algorithm sending traffic
> coming from a particular client to one cache, and the reply traffic to
> a different cache.
>
> My solution is to order the linked list of web caches in the WCCP2
> code to ensure that each cache will be assigned the same has map
> regardless of when the cache registers with the router.
>
> I've attached the patch, which we're using in production. I'll commit
> it to head shortly unless there's any objections, and I'm not sure if
> it's worth applying to 2.6/2.7/3.0.

Please port and apply to Squid 3.HEAD, at least. You may want to add a
comment that wccp2SortCacheList is doing "bubble sort" by IP address (if
it is).

Thanks a lot,

Alex.
Received on Mon Jan 28 2008 - 10:44:31 MST

This archive was generated by hypermail pre-2.1.9 : Wed Jan 30 2008 - 12:00:09 MST