httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Tushar Chavan <tushar.cha...@hotmail.com>
Subject RE: [users@httpd] How to define Lbfactor in case of lbmethod = byrequests & lbmethod = bytraffic
Date Sun, 27 Mar 2011 19:09:33 GMT

Hi Mark,
Thanks for useful information.
One more query .
Which is the default algorithm for load balancing ?
Best Regards,Tushar

Date: Thu, 24 Mar 2011 04:28:16 -0400
From: mark@catseye.org
To: users@httpd.apache.org
CC: tushar.chavan@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 <mark@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
  mark@catseye.org 		 	   		  
Mime
View raw message