@txalamar wrote:
Hi,
I have something like this:
frontend app1 acl app1 hdr(host) -i app1.domain.com default_backend app1 use_backend app1 if app1 frontend app2 acl app2 hdr(host) -i app2.domain.com default_backend app2 use_backend app2 if app2 backend app1 mode http ... option httpchk GET /rest/util/setting HTTP/1.0\r\nHost:\ app1.domain.com:8080\r\n ... server talaiaclu01-app1 192.168.211.13:8080 cookie server1 maxconn 1000 check inter 5000 server talaiaclu02-app1 192.168.211.14:8080 cookie server2 maxconn 1000 check inter 5000 backend app2 mode http ... option httpchk GET /rest/util/setting HTTP/1.0\r\nHost:\ app2.domain.com:8080\r\n ... server talaiaclu01-app2 192.168.211.13:8080 cookie server1 maxconn 1000 check inter 5000 server talaiaclu02-app2 192.168.211.14:8080 cookie server2 maxconn 1000 check inter 5000This should be sending requests for app1.domain.com only to backend app1. But as per statistics I can see that backend app2 is being hitted. In fact I can see that the frontend is also being hitted by the same request.
In fact the requests are well redirected to the right backend based on the url but statistics are perturbing me. I could understand that all frontends must be hitted to determine which is the right one, but backends should not, right? And the backends nevere receive the requests that are not destinated for them. So it seems to be only a statistics problem.
Kind regards,
Posts: 1
Participants: 1