Thanks Mark.

Date: Thu, 24 Mar 2011 04:28:16 -0400
From: m...@catseye.org
To: users@httpd.apache.org
CC: tushar.cha...@hotmail.com
Subject: Re: FW: [users@httpd] How to define Lbfactor  in case of  lbmethod = 
byrequests & lbmethod = bytraffic



  


    
  
  
    On March 24, 2011 4:25 , Mark Montague <m...@catseye.org>
    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
  m...@catseye.org                                        

Reply via email to