You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@httpd.apache.org by "Chen, Yongcheng" <Yo...@aed-sicad.de> on 2015/02/02 13:38:51 UTC
[users@httpd] load balancer byrequest algorithm
Hi everybody,
I'm testing now the apache load balancer. And I configured my apache server for testing the example from apache document (http://httpd.apache.org/docs/2.2/mod/mod_proxy_balancer.html):
worker
a
b
lbfactor
70
30
lbstatus
-30
30
lbstatus
40
-40
lbstatus
10
-10
lbstatus
-20
20
lbstatus
-50
50
lbstatus
20
-20
lbstatus
-10
10
lbstatus
-40
40
lbstatus
30
-30
lbstatus
0
0
(repeat)
My configuration was:
<Proxy balancer://ServerCluster>
BalancerMember http://vh-srv01:8080 min=1 max=50 loadfactor=70 route=vh-srv01
BalancerMember http://vh-srv02:8080 min=1 max=50 loadfactor=30 route=vh-srv02
</Proxy>
And I used also the setting: "lbmethod=byrequests"
I expected such a schedule: "a b a a a b a a b a"
However in the real test, I got "a a b a a b a a a b".
Can somebody explain what is the problem?
Best Regards
Re: [users@httpd] load balancer byrequest algorithm
Posted by Jim Jagielski <ji...@jaguNET.com>.
I would not expect a specific pattern (or schedule), per se, but rather
an overall trend or statistical average.
> On Feb 2, 2015, at 7:38 AM, Chen, Yongcheng <Yo...@aed-sicad.de> wrote:
>
> Hi everybody,
>
> I’m testing now the apache load balancer. And I configured my apache server for testing the example from apache document (http://httpd.apache.org/docs/2.2/mod/mod_proxy_balancer.html):
>
> worker
> a
> b
> lbfactor
> 70
> 30
>
> lbstatus
> -30
> 30
> lbstatus
> 40
> -40
> lbstatus
> 10
> -10
> lbstatus
> -20
> 20
> lbstatus
> -50
> 50
> lbstatus
> 20
> -20
> lbstatus
> -10
> 10
> lbstatus
> -40
> 40
> lbstatus
> 30
> -30
> lbstatus
> 0
> 0
> (repeat)
>
> My configuration was:
> <Proxy balancer://ServerCluster>
> BalancerMember http://vh-srv01:8080 min=1 max=50 loadfactor=70 route=vh-srv01
> BalancerMember http://vh-srv02:8080 min=1 max=50 loadfactor=30 route=vh-srv02
> </Proxy>
>
> And I used also the setting: “lbmethod=byrequests”
>
> I expected such a schedule: “a b a a a b a a b a”
> However in the real test, I got “a a b a a b a a a b”.
>
> Can somebody explain what is the problem?
>
> Best Regards
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org