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

From: Chris Robertson <crobertson@dont-contact.us>
Date: Tue, 06 Nov 2007 14:06:28 -0900

Amos Jeffries wrote:
>> 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
>

More specifically, since 2.6 STABLE 16. See
http://www.squid-cache.org/Versions/v2/2.6/squid-2.6.STABLE16-RELEASENOTES.html#s2.

Chris
Received on Tue Nov 06 2007 - 16:06:52 MST

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