Hi I have configured an HAProxy server in haproxy.cfg to balance the traffic flow between two servers, say
server web1 10.10.10.10 weight 50
server web2 10.10.10.11 weight 50
For testing purpose we need to set the weights dynamically, so we are using
set weight <backend>/<server> <weight>[%]
command as mentioned in this article http://cbonte.github.io/haproxy-dconv/configuration-1.4.html#hash-type
1) In the document they have mentioned
Relative weights are only permitted between 0 and 100%, and absolute weights are permitted between 0 and 256.
and if I use set weight for web1 with percentage value 70%, does it means 70% in that allotted 50 for web1(which is initially configured in server) traffic is passed, if so rest of that 30% in that 50 value where it will be passed?
2) Another query is, if we use set weight command as
set weight web1 10.10.10.10 3
set weight web2 10.10.10.11 1
Does it mean that 75% of the traffic to web1 and 25% traffic to web2? How to split traffic in ratio manner and use it in set weight.
If possible please let me know how to use absolute weight for splitting traffic. Thanks for the answer.