Mod proxy bytraffic Load Balancing Method

From NovaOrdis Knowledge Base
Jump to navigation Jump to search

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 member has either seen or produced. Input and output bytes are weighted the same. 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 is supposed to handle twice as many bytes as 1
    BalancerMember http://node3 loadfactor=3 # node3 is supposed to handle three times as many bytes as 1
    ProxySet lbmethod=bytraffic
    ...
</Proxy>