[MINOR] compute the max of sessions/s on fe/be/srv
Some users want to keep the max sessions/s seen on servers, frontends
and backends for capacity planning. It's easy to grab it while the
session count is updated, so let's keep it.
diff --git a/include/proto/proxy.h b/include/proto/proxy.h
index e56de12..adb16ce 100644
--- a/include/proto/proxy.h
+++ b/include/proto/proxy.h
@@ -69,6 +69,8 @@
{
fe->cum_feconn++;
update_freq_ctr(&fe->fe_sess_per_sec, 1);
+ if (fe->fe_sess_per_sec.curr_ctr > fe->fe_sps_max)
+ fe->fe_sps_max = fe->fe_sess_per_sec.curr_ctr;
}
/* increase the number of cumulated connections on the designated backend */
@@ -76,6 +78,8 @@
{
be->cum_beconn++;
update_freq_ctr(&be->be_sess_per_sec, 1);
+ if (be->be_sess_per_sec.curr_ctr > be->be_sps_max)
+ be->be_sps_max = be->be_sess_per_sec.curr_ctr;
}
#endif /* _PROTO_PROXY_H */