Re: [squid-users] carp doc bug : parse_peer: token='carp-load-factor=0.5' SQUID2.6

From: Amos Jeffries <[email protected]>
Date: Wed, 7 Nov 2007 11:17:16 +1300 (NZDT)

> Hi,
>
> I'm trying to test the CARP load balancing.
>
> squid-2.6.16/src
>
> But the documentation seems to be bugged.
>
<snip>
>
> The only supported parametter in the cache_peer parsing directive seems
> to be 'carp' not 'carp-load-factor'.
>

The authoritative documentation provided appears to be correct.
Looks like the docs you are using were written for squid 2.5

http://www.squid-cache.org/Versions/v2/2.6/cfgman/cache_peer.html

> Also from the source: void carpInit(void)
> "carp.c" 193 lines --49%--
> /* and load factor */
> p->carp.load_factor = ((double) p->weight) / (double) W;
>
> it seems to me, that the load_factor is in fact, calculated from peer
> weight?

Yes. carp-load-factor has been obsoleted by the weight= option since 2.6.

Amos
Received on Tue Nov 06 2007 - 15:17:21 MST

This archive was generated by hypermail pre-2.1.9 : Sat Dec 01 2007 - 12:00:02 MST