Search squid archive

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

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



> 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




[Index of Archives]     [Linux Audio Users]     [Samba]     [Big List of Linux Books]     [Linux USB]     [Yosemite News]

  Powered by Linux