[squid-users] Squid WCCP with multiple workers

Amos Jeffries squid3 at treenet.co.nz
Mon Dec 1 09:54:43 UTC 2014


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On 1/12/2014 9:38 p.m., Henrik Nordstrom wrote:
> fre 2014-11-28 klockan 10:28 +0000 skrev Stephen Baynes:
>> Is WCCP supposed to work with Squid multiple workers?
> 
> In theory it should work.. but not sure it has been adapted for 
> multi-worker.

Not that I am aware of.

I think each worker will be emitting separate WCCP packts to the
router. If they are all sharing http_port entries then there should be
no problem, as long as one worker is running the router will see the
proxy as alive. With differet http_port between workers they can
confuse the router and cause it to reset its traffic mappings up to
every 10 seconds.

There may also be problems with receiving back the WCCP reply from
router as no guarantee it goes to the right worker. Some may receive
multiple packets and some workers might think their router has gone
away as it dont reply often enough. This should only affect Squid
workers which have never received any router reply before receiving
HTTP, once they get one packet they cache the details until updated.

> 
>> It works with 1 worker. If we change the number of workers from 1
>> to 2 we see it fail. The router no longer is aware of Squid and
>> does not reroute the data to the Squid box.
> 
> Try making the wccp configuration conditional on worker id 1. If
> this makes a difference then Squid needs to be extended to add a
> internal wccp worker.
> 

Amos

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.22 (MingW32)

iQEcBAEBAgAGBQJUfDrjAAoJELJo5wb/XPRjaE8H/2tSAA/9Yz2RDSgm/xjAqphB
Zz3jlGRSUDIlMDeVfH7p+2hhEGZ41yPQ9x0viWMDvd4NNHOY8/c+DoA5OkzjYT+9
Kl+2HyFGWy1EqY3oC3mREVxab4i/5NvXveZQg9Pf4imMPkQxzqD+hXp8RCmVsFms
RW+0RvqeW7Jb8uDZjTOGjLI+pXlTehpQOoLQmRUxy0WTT75m9xlnnTPtTo4zb1by
qxB0+PrC7Z/G7A8LYw9tFgEVF7KKHNLIkUJGibP/ojSs5PZ+Y+AS9HdphldfLEoG
EUSxafYcVyqDavm/nhMAWG//JPfcpY4ZyLsfRV2L9kbI01RaiHAep7Gf0GqUlGw=
=mO6b
-----END PGP SIGNATURE-----


More information about the squid-users mailing list