HAProxy community

Does "option contstats" work?


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:

  user haproxy
  group haproxy
  chroot /var/lib/haproxy
  pidfile /var/lib/haproxy/haproxy.pid
  log 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
  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