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

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

  Powered by Linux