Mod proxy bytraffic Load Balancing Method: Difference between revisions
Jump to navigation
Jump to search
No edit summary |
No edit summary |
||
Line 9: | Line 9: | ||
=Overview= | =Overview= | ||
This method performs weighted traffic byte counting. The algorithm is similar to [[Mod proxy byrequests Load Balancing Method|byrequests]], in that each member has an associated loadfactor, but the factor is applied to the number of bytes the worker has ''either seen or produced''. | This method performs weighted traffic byte counting. The algorithm is similar to [[Mod proxy byrequests Load Balancing Method|byrequests]], in that each member has an associated loadfactor, but the factor is applied to the number of bytes the worker has ''either seen or produced''. The default loadfactor is 1 for all members. | ||
<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 twice as many resources as 1 | |||
ProxySet lbmethod=bytraffic | |||
... | |||
</Proxy> | |||
</pre> |
Revision as of 23:11, 9 January 2017
External
Internal
Overview
This method performs weighted traffic byte counting. The algorithm is similar to byrequests, in that each member has an associated loadfactor, but the factor is applied to the number of bytes the worker has either seen or produced. The default loadfactor is 1 for all members.
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 twice as many resources as 1 ProxySet lbmethod=bytraffic ... </Proxy>