Hi Willy, You're right, it was a bit silly, I would've seen it if I had turned on the logging immediately.
Thanks! Pedro. > On 10 Feb 2016, at 07:40, Willy Tarreau <[email protected]> wrote: > > Hi Pedro, > >> On Mon, Feb 08, 2016 at 05:05:02PM +0000, Pedro Mata-Mouros wrote: >> Hi all, >> >> I was sure that stats page refreshes in the browser would not increase the >> sessions on a given backend, but I???m seeing otherwise. Could you please >> just confirm if this is normal, as I can???t remember? This is my config, for >> a very basic local dev environment I???m setting up with Docker: >> >> [SNIP] >> frontend in >> bind *:80,:443 >> >> stats enable >> stats uri /s/haproxy >> stats refresh 5s >> >> default_backend default >> >> backend default >> enabled >> server nginx_1 nginx_1:8080 maxconn 64 check >> >> >> Manually refreshing the stats page causes the nginx_1 host to increase the >> total number of sessions. Any way to not ???pollute??? the backend???s >> session count? > > That doesn't make any sense, the request is intercepted in the frontend, > you never even go to the backend. Are you sure your browser is not sending > another request in parallel which gets forwarded to the server, such as > "GET /favicon.ico" ? You should definitely enable logging, it's probably > hard to guess what is happening without logs, isn't it ? > > Willy > >

