Mod proxy byrequests Load Balancing Method: Difference between revisions
Jump to navigation
Jump to search
(Created page with "=Internal= * mod_proxy Concepts - Load Balancing") |
|||
(2 intermediate revisions by the same user not shown) | |||
Line 1: | Line 1: | ||
=External= | |||
* https://httpd.apache.org/docs/current/mod/mod_lbmethod_byrequests.html | |||
=Internal= | =Internal= | ||
* [[Httpd_mod_proxy_Concepts#Load_Balancing_Methods|mod_proxy Concepts - Load Balancing]] | * [[Httpd_mod_proxy_Concepts#Load_Balancing_Methods|mod_proxy Concepts - Load Balancing]] | ||
=Overview= | |||
This method performs weighted request counting.The load balancer counts requests and distributes the requests among the members based on a configured “loadfactor”. By default, all members have equal load factors. | |||
<pre> | |||
ProxyPass / balancer://mycluster/ | |||
<Proxy balancer://mycluster> | |||
BalancerMember http://node1 loadfactor=1 | |||
BalancerMember http://node2 loadfactor=2 # node2 has twice as many resources as 1 | |||
BalancerMember http://node3 loadfactor=3 # node3 has three times as many resources as 1 | |||
ProxySet lbmethod=byrequests | |||
... | |||
</Proxy> | |||
</pre> |
Latest revision as of 23:12, 9 January 2017
External
Internal
Overview
This method performs weighted request counting.The load balancer counts requests and distributes the requests among the members based on a configured “loadfactor”. By default, all members have equal load factors.
ProxyPass / balancer://mycluster/ <Proxy balancer://mycluster> BalancerMember http://node1 loadfactor=1 BalancerMember http://node2 loadfactor=2 # node2 has twice as many resources as 1 BalancerMember http://node3 loadfactor=3 # node3 has three times as many resources as 1 ProxySet lbmethod=byrequests ... </Proxy>