RE: How to define Lbfactor in case of lbmethod = byrequests & lbmethod = bytraffic

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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@xxxxxxxxxxx
To: users@xxxxxxxxxxxxxxxx
CC: tushar.chavan@xxxxxxxxxxx
Subject: Re: FW: How to define Lbfactor in case of lbmethod = byrequests & lbmethod = bytraffic

On March 24, 2011 4:25 , Mark Montague <mark@xxxxxxxxxxx> 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@xxxxxxxxxxx

[Index of Archives]     [Open SSH Users]     [Linux ACPI]     [Linux Kernel]     [Linux Laptop]     [Kernel Newbies]     [Security]     [Netfilter]     [Bugtraq]     [Squid]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Samba]     [Video 4 Linux]     [Device Mapper]

  Powered by Linux