we are using haproxy (1.4)to distribute traffic to 30 of our db nodes.
we are facing an issue with weights.

sample configs

=========================
defaults
        mode           tcp
        retries        2
        option         redispatch
        maxconn        256000
        timeout        connect       10s
        timeout        client        10s
        timeout        server        10s


        log global

        option dontlognull



listen newone :4000
        mode tcp

        balance leastconn
        option mysql-check user abcd


server    x.x.x.3:3306   weight 125   check inter 3s  rise 2  fall 2

server y.com   x.x.x.4:3306   weight 12   check inter 3s  rise 2 fall 2
server y.com   x.x.x.4:3306   weight 12   check inter 3s  rise 2 fall 2
=====================


 issue is we are getting only 150qps on server x.com even with weight 125.

but on y.com we are getting 500qps with a weight of 12 , but mentioned
twice.


can you explain why it is so?


-- 
=========================
Vijeesh K
"The temptation to quit will be greatest just before you are about to
succeed"

Reply via email to