From: Willy Tarreau Date: Mon, 4 May 2015 19:48:51 +0000 (+0200) Subject: MINOR: config: report the number of processes using a peers section in the error... X-Git-Tag: v1.6-dev2~137 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=64c5722e051768188754bd4c25a440ecd9103b38;p=thirdparty%2Fhaproxy.git MINOR: config: report the number of processes using a peers section in the error case It can be helpful to know how many different processes try to use the same peers section when trying to find the culprits. --- diff --git a/src/cfgparse.c b/src/cfgparse.c index 45c9d6d31f..13107e8376 100644 --- a/src/cfgparse.c +++ b/src/cfgparse.c @@ -7924,9 +7924,9 @@ out_uri_auth_compat: /* either it's totally stopped or too much used */ if (curpeers->peers_fe->bind_proc) { Alert("Peers section '%s': peers referenced by sections " - "running in different processes. Check global.nbproc" - " and all tables' bind-process settings.\n", - curpeers->id); + "running in different processes (%d different ones). " + "Check global.nbproc and all tables' bind-process " + "settings.\n", curpeers->id, popcount(curpeers->peers_fe->bind_proc)); cfgerr++; } stop_proxy(curpeers->peers_fe);