httpd-bugs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bugzi...@apache.org
Subject [Bug 61204] New: Patch reflecting changes in loadfactor
Date Wed, 21 Jun 2017 06:40:48 GMT
https://bz.apache.org/bugzilla/show_bug.cgi?id=61204

            Bug ID: 61204
           Summary: Patch reflecting changes in loadfactor
           Product: Apache httpd-2
           Version: 2.2.32
          Hardware: PC
                OS: Linux
            Status: NEW
          Severity: normal
          Priority: P2
         Component: mod_proxy_balancer
          Assignee: bugs@httpd.apache.org
          Reporter: negachov@gmail.com
  Target Milestone: ---

Created attachment 35064
  --> https://bz.apache.org/bugzilla/attachment.cgi?id=35064&action=edit
fix patch

Fix patch that reflects changes in loadfactor when glaceful

* phenomenon

(1) apachectl start
<Proxy balancer://mycluster/>
  BalancerMember http://127.0.0.1:8081 loadfactor=10
  BalancerMember http://127.0.0.1:8082 loadfactor=10
</Proxy>

(2) http://127.0.0.1/balancer-manager
Worker URL      Route   RouteRedir      Factor  Set     Status  Elected To     
From
http://127.0.0.1:8081                   10      0       Ok      0       0      
0
http://127.0.0.1:8082                   10      0       Ok      0       0      
0

(3) ab -n 500 -c 5 http://localhost/index.html

(4) http://127.0.0.1/balancer-manager
Worker URL      Route   RouteRedir      Factor  Set     Status  Elected To     
From
http://127.0.0.1:8081                   10      0       Ok      250     49K    
20K
http://127.0.0.1:8082                   10      0       Ok      250     49K    
20K

(5) apachectl graceful
<Proxy balancer://mycluster/>
  BalancerMember http://127.0.0.1:8081 loadfactor=10
  BalancerMember http://127.0.0.1:8082 loadfactor=5
  BalancerMember http://127.0.0.1:8083 loadfactor=10
</Proxy>

(6) http://127.0.0.1/balancer-manager
Worker URL      Route   RouteRedir      Factor  Set     Status  Elected To     
From
http://127.0.0.1:8081                   10      0       Ok      250     49K    
20K
http://127.0.0.1:8082                   10      0       Ok      250     49K    
20K
http://127.0.0.1:8083                   10      0       Ok      0       0      
0

(7) ab -n 500 -c 5 http://localhost/index.html

(8) http://127.0.0.1/balancer-manager
Worker URL      Route   RouteRedir      Factor  Set     Status  Elected To     
From
http://127.0.0.1:8081                   10      0       Ok      417     81K    
33K
http://127.0.0.1:8082                   10      0       Ok      417     81K    
33K
http://127.0.0.1:8083                   10      0       Ok      166     32K    
13K

* after patch

(1) apachectl start
<Proxy balancer://mycluster/>
  BalancerMember http://127.0.0.1:8081 loadfactor=10
  BalancerMember http://127.0.0.1:8082 loadfactor=10
</Proxy>

(2) http://127.0.0.1/balancer-manager
Worker URL      Route   RouteRedir      Factor  Set     Status  Elected To     
From
http://127.0.0.1:8081                   10      0       Ok      0       0      
0
http://127.0.0.1:8082                   10      0       Ok      0       0      
0

(3) ab -n 500 -c 5 http://localhost/index.html

* http://127.0.0.1/balancer-manager
Worker URL      Route   RouteRedir      Factor  Set     Status  Elected To     
From
http://127.0.0.1:8081                   10      0       Ok      250     49K    
20K
http://127.0.0.1:8082                   10      0       Ok      250     49K    
20K

(4) apachectl graceful
<Proxy balancer://mycluster/>
  BalancerMember http://127.0.0.1:8081 loadfactor=10
  BalancerMember http://127.0.0.1:8082 loadfactor=5
  BalancerMember http://127.0.0.1:8083 loadfactor=10
</Proxy>

(5) http://127.0.0.1/balancer-manager
Worker URL      Route   RouteRedir      Factor  Set     Status  Elected To     
From
http://127.0.0.1:8081                   10      0       Ok      250     49K    
20K
http://127.0.0.1:8082                   5       0       Ok      250     49K    
20K
http://127.0.0.1:8083                   10      0       Ok      0       0      
0

(6) ab -n 500 -c 5 http://localhost/index.html

* http://127.0.0.1/balancer-manager
Worker URL      Route   RouteRedir      Factor  Set     Status  Elected To     
From
http://127.0.0.1:8081                   10      0       Ok      450     87K    
36K
http://127.0.0.1:8082                   5       0       Ok      350     68K    
28K
http://127.0.0.1:8083                   10      0       Ok      200     39K    
16K

(7) apachectl graceful
<Proxy balancer://mycluster/>
  BalancerMember http://127.0.0.1:8081 loadfactor=10
  BalancerMember http://127.0.0.1:8083 loadfactor=10
</Proxy>

(8) http://127.0.0.1/balancer-manager
Worker URL      Route   RouteRedir      Factor  Set     Status  Elected To     
From
http://127.0.0.1:8081                   10      0       Ok      450     87K    
36K
http://127.0.0.1:8083                   10      0       Ok      200     39K    
16K

(9) ab -n 500 -c 5 http://localhost/index.html

(10) http://127.0.0.1/balancer-manager
Worker URL      Route   RouteRedir      Factor  Set     Status  Elected To     
From
http://127.0.0.1:8081                   10      0       Ok      700     136K   
56K
http://127.0.0.1:8083                   10      0       Ok      450     87K    
36K

-- 
You are receiving this mail because:
You are the assignee for the bug.
---------------------------------------------------------------------
To unsubscribe, e-mail: bugs-unsubscribe@httpd.apache.org
For additional commands, e-mail: bugs-help@httpd.apache.org


Mime
View raw message