24

For those of you using HAProxy along with the stats papge (haproxy?stats), how do I interpret this page? There is no decent explanation.

For instance: Which Session column displays the number of currently active connections to the backend? Session or Sessions Rate?

1

2 Answers 2

14

Session rate is the number of new sessions per second. Under sessions, cur is the current number of sessions, max is the maximum concurrent sessions, total is the total number of sessions since haproxy was restarted.

12
  • Ok, so I'll keep my eyes on the Session columns. Can you elaborate a bit on Session rate?
    – w00t
    Jun 4, 2010 at 8:12
  • Session rate is the number of new sessions per second
    – JamesRyan
    Jun 4, 2010 at 8:59
  • 2
    Is max the maximum ever seen for that server?
    – hortitude
    Aug 20, 2012 at 21:07
  • 1
    @hortitude (3 yrs later...) - Yes, that's max rate or max active seen by that server or backend.
    – w00t
    Oct 1, 2015 at 11:43
  • 1
    @Josh Pinter stats get reset with a haproxy restart or reload.
    – w00t
    Oct 1, 2015 at 11:43
20

I think what you are confused about is the difference between concurrency and arrival rate.

Concurrency is how many things are going on at a snapshot in time. The Arrival rate is how many new things arrived during a window of time.

For Example:

enter image description here

During the snapshot there were two concurrent events. The arrival rate during that entire second is 5 events, because there were 5 events that started throughout that second. The key relationship to grasp is that a large amount of concurrent connections can come from a high arrival rate and/or long lived connections (see Little's Law).

1
  • Excellent explanation!! Jul 18, 2019 at 10:08

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .