Re: [squid-users] How does weighted-round-robin work?

From: Sylvain Viart <sylvain_at_easyrencontre.com>
Date: Thu, 12 Jun 2008 10:04:52 +0200

Hi,

Henrik Nordstrom a �crit :
> On ons, 2008-06-11 at 19:27 +0800, Roy M. wrote
>> So I hope the one with more CPU power (it can be config. my me
>> manually) can be sharing more requests, what would be the best setup
>> for this?
>>
>
> round-robin weight=X
>
> assigns requests proportional to the weight assigned to the server.
>
> a weight=1, b weight=2, c weight=1, sends 25% (1/(1+2+1)) of the
> requests to a, 50% to b and 25% to c.
>
Ok, but what about cache_peer's option : "weighted-round-robin"?

http://www1.at.squid-cache.org/Versions/v3/3.0/cfgman/cache_peer.html

Can it be used in surrogate mode to define the weight of defined origin
server?

Something like?

http_port 80 defaultsite=subdom.somedomain.com vhost

cache_peer php-01 parent 80 0 no-query no-digest originserver login=PASS
name=php-pool weighted-round-robin=25
cache_peer php-03 parent 80 0 no-query no-digest originserver login=PASS
name=php-pool weighted-round-robin=25
cache_peer php-04 parent 80 0 no-query no-digest originserver login=PASS
name=php-pool weighted-round-robin=40
cache_peer php-05 parent 80 0 no-query no-digest originserver login=PASS
name=php-pool weighted-round-robin=10

Regards,
Sylvain.
Received on Thu Jun 12 2008 - 08:05:01 MDT

This archive was generated by hypermail 2.2.0 : Thu Jun 12 2008 - 12:00:04 MDT