On Sat, May 12, 2012 at 6:01 PM, Bar Ziony <[email protected]> wrote: > Hey, > > I have a dynamic backend with maxconn 80 with multiple servers. > Many times I can see on the haproxy stats page that servers on this backend > are reaching their maximum 80, but I don't see the number of requests > currently in queue. The maximum number I ever see is 80. Why is that? Can I > somehow see the number of requests in the queue? >
Do you have any kind of persistence or affinity? (cookie or predictive algorithm) When persistence or affinity is in use, the requests are queued on the server, otherwise, they are queue on the backend. You can see the column Queue Max and check if you have a number per server line or if each server line is 0 and a number is printed on the backend line. > Also, with a munin plugin that checks the HTTP page with ";csv", I see that > sometimes the graphs shows 400+ req/sec for this backend, which is not > possible since the maximum is 80... You seem to misunderstand connection and request. 80 connections per server means 80 request in the mean time, there is no relation to time. If your server manage to process 400 req/s, it means each request lasts, in average, 50ms. > > Last, what is the difference between "Sessions" and "Session rate" ? > How can I tell when I need another dynamic backend server? > > Thanks! > Bar.

