Improve response time with HAProxy and Minio

I have 4 instances of Minio, and 1 load balancer (HAProxy). It is currently stable , but I have a problem with response time. If I load an url with HAProxy, response time will be much longer than load directly from Minio instance. Example:


  • HAProxy config
frontend app
  bind :80
  bind :443 ssl crt /etc/haproxy/certs/sellycdn.net.pem
  http-request redirect scheme https unless { ssl_fc }
  option forwardfor

  # media.sellycdn.net
  use_backend minioserver if { hdr(host) -i media.sellycdn.net }

backend minioserver
  server minio1 minio-1:9000 check
  server minio2 minio-2:9000 check
  server minio3 minio-3:9000 check
  server minio4 minio-4:9000 check
  balance roundrobin

Can someone tell me why and how to improve response time with load balancer?

i don’t see a reason, why response time is so high. sure haproxy adds a little overhead to connection times, but not in this huge amount
have you checked connectivity from haproxy-server to backend with eg. ping/wget/curl etc.