Re: [squid-users] Very complex load balancing ?

From: Michael Smirnov <smbsmb@dont-contact.us>
Date: Thu, 14 Mar 2002 21:49:33 +0300

> My squid should fetch URLs only from parent cache_peer.
> How can I tune squid to balance over these IP-addresses,
> allowing maximum 30 connections from each of 20 IPs?
>
> tcp_outgoing_address with ACLs like maxconn cannot guarantee
> that number of connection from each IP will be <=30,
> because maxconn counts number of connections from _clients_ of Squid.
>
> I'll try to run 1 "main" Squid and 20 his parents on this server.
> Main squid should use 20 parent in round robin-style with max-conn=30
> Now I successfully ran 2 Squid's with different squid.conf's,
> max-conn works normally.
>
Wel, now I run 1 main and 4 parent Squids!
cache_peer localhost parent 3271 7 no-query no-digest no-netdb-exchange
round-robin max-conn=29
cache_peer localhost parent 3272 7 no-query no-digest no-netdb-exchange
round-robin max-conn=29
cache_peer localhost parent 3273 7 no-query no-digest no-netdb-exchange
round-robin max-conn=29
cache_peer localhost parent 3274 7 no-query no-digest no-netdb-exchange
round-robin max-conn=29

max-conn=29 is also specified in parent setting of these 4 Squids.

However, I see messages "cannot forward" (from these 4 parents)
in my download manager,
when I have only ~10 connections per parent !
Maybe these 4 parents have some keep-alive connections to the slow parent
(is IS slow and buggy, but there is no choice)?

Cachemgr shows "Peer Cache Statistics" in menu only for main Squid on port
3128,
but doesn't show it for other 4 squids :-((((( Why?
Received on Thu Mar 14 2002 - 11:49:38 MST

This archive was generated by hypermail pre-2.1.9 : Tue Dec 09 2003 - 17:06:56 MST