Imagine we have a backend file like this :
test.com backend_1
test.com backend_2
and we have something like this in our haproxy config file
frontend http_front
bind *:80
stats uri /haproxy?stats
use_backend %[str(test.com),map(/etc/haproxy/testmap.map,default)]
this config is working but always return backend_1 when u reach to test.com
i want it to round-robin the requests to 2 backends with this mapfile