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

From: Amos Jeffries <squid3@dont-contact.us>
Date: Wed, 7 Nov 2007 12:59:09 +1300 (NZDT)

> 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
>

well, if we are going to be that pedantic. :)

It was introduced in 2.6-14 or earlier, and left undocumented (bug 2052).
During regular squid.conf cleanups of 2.6s15, the 3.0 format using weight=
was documented in 2.6s14-20070821.
/squidward

Amos
Received on Tue Nov 06 2007 - 16:59:13 MST

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