On March 24, 2011 4:09 , Tushar Chavan <tushar.cha...@hotmail.com> wrote:
Suppose if choose , lbmethod = bytraffic , then how Apache will come
to know that how much traffic it should pass to server A & B.
By doing weighted byte counting.
Also same with bmethod=byrequest. , how Apache will come to know that
how many request it should pass to server A & B.
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>
|lbmehtod=bytraffic works a similar way, but it counts bytes instead of
counting requests.
See http://httpd.apache.org/docs/2.2/mod/mod_proxy.html#proxypass for
more information.
Or am I misunderstanding your question?
--
Mark Montague
m...@catseye.org