Hi!
I don’t understand why don’t work “option contstats”.
The documents say to use this option so that the chart does not look like a hedgehog.
I use simple TCP echo application.
(Opening connection; The loop: send data, receive answer; The end by timeout).
Counters of traffic update only after closing a connection - I still get a hedgehog!
It my config:
global
daemon
user haproxy
group haproxy
chroot /var/lib/haproxy
pidfile /var/lib/haproxy/haproxy.pid
log 192.168.1.2:514 local0
stats socket /var/lib/haproxy/haproxy.sock mode 660 level admin
stats timeout 2m
server-state-file /var/lib/haproxy/haproxy.state
spread-checks 5 # 5%
maxconn 1320000
defaults
log global
load-server-state-from-file global
timeout connect 10s
timeout client 2m
timeout server 3m
option contstats
option redispatch
option tcplog
frontend my_front
bind ipv4@*:8888
mode tcp
maxconn 64500
default_backend my_apps
backend my_apps
balance roundrobin
server server1 ipv4@app1:8888 check inter 200 maxconn 64500
server server2 ipv4@app2:8888 check inter 200 maxconn 64500