Thanks Mark.
Date: Thu, 24 Mar 2011 04:28:16 -0400
From: [email protected]
To: [email protected]
CC: [email protected]
Subject: Re: FW: [users@httpd] How to define Lbfactor in case of lbmethod =
byrequests & lbmethod = bytraffic
On March 24, 2011 4:25 , Mark Montague <[email protected]>
wrote:
By doing weighted request counting. In the following example, for
each three requests, one request will be sent to 1.2.3.4:8009 and
three requests will be sent to 1.2.3.5:8009. Apache HTTP Server
keeps track internally of how many requests have been sent to each
balance member, and uses that information plus the loadfactor
parameter the BalanceMember directive to determine to which server
to send the next request to.
ProxyPass / balancer://mycluster/
<Proxy balancer://mycluster>
BalancerMember ajp://1.2.3.4:8009
loadfactor=1
BalancerMember ajp://1.2.3.5:8009 loadfactor=2
ProxySet lbmethod=byrequest
</Proxy>
Apologies for the typographical error in my answer above. The
second sentence should of course read, "In the following example,
for each three requests, ONE request will be sent to 1.2.3.4:8009
and TWO requests will be sent to 1.2.3.5:8009"
--
Mark Montague
[email protected]