i posted issue to Inconsistent Bandwidth Limiting with Peers · Issue #3182 · haproxy/haproxy · GitHub
I want to understand how peer works.
2 haproxy run active-active mode with 4 ip (2 ip vrrp and 2 VIP) .
I use peer config for 2 haproxy node
peers mypeers
peer sgn10stg02cephhap00 10.12.0.14:10000
peer sgn10stg02cephhap01 10.12.0.16:10000
table uploadrate type string size 1m expire 3600s store bytes_in_rate(1s)
filter bwlim-in default_ul limit 2097152 key var(req.ul_key_full) table mypeers/uploadrate
filter bwlim-in unlimited_ul limit 2147483647 key var(req.ul_key_full) table mypeers/uploadrate
filter bwlim-in high_perf_ul limit 31457280 key var(req.ul_key_full) table
http-request track-sc0 var(req.ul_key_full) table mypeers/uploadrate
http-request set-var(txn.current_ul) sc_bytes_in_rate(0,mypeers/uploadrate)
http-request set-bandwidth-limit high_perf_ul if is_ul_high_bw
http-request set-bandwidth-limit unlimited_ul if is_ul_unlimited_bw
http-request set-bandwidth-limit default_ul unless is_ul_high_bw or is_ul_unlimited_bw
after config i use tool for benchmark.
But from 1 ip , i only upload up to 15MB/s not 30MB/s for path was assigned to high_perf_ul bw limit
benchmark result
Query from haproy

My config is not correct or statistic peer not works
Thanks
1 post - 1 participant
