mirror of
http://git.haproxy.org/git/haproxy.git/
synced 2025-01-05 19:52:14 +00:00
[MINOR] report total number of processed connections when stopping a proxy
It's sometimes convenient to know if a proxy has processed any connection at all when stopping it. Since a soft restart causes the "Proxy stopped" message to be logged for each proxy, let's add the number of connections so that it's possible afterwards to check whether a proxy had received any connection.
This commit is contained in:
parent
3e1b6d1ed0
commit
1104614b57
@ -529,8 +529,10 @@ void maintain_proxies(int *next)
|
||||
int t;
|
||||
t = tick_remain(now_ms, p->stop_time);
|
||||
if (t == 0) {
|
||||
Warning("Proxy %s stopped.\n", p->id);
|
||||
send_log(p, LOG_WARNING, "Proxy %s stopped.\n", p->id);
|
||||
Warning("Proxy %s stopped (FE: %lld conns, BE: %lld conns).\n",
|
||||
p->id, p->counters.cum_feconn, p->counters.cum_beconn);
|
||||
send_log(p, LOG_WARNING, "Proxy %s stopped (FE: %lld conns, BE: %lld conns).\n",
|
||||
p->id, p->counters.cum_feconn, p->counters.cum_beconn);
|
||||
stop_proxy(p);
|
||||
/* try to free more memory */
|
||||
pool_gc2();
|
||||
|
Loading…
Reference in New Issue
Block a user