You are viewing a plain text version of this content. The canonical link for it is here.
Posted to cvs@httpd.apache.org by ji...@apache.org on 2008/08/19 19:28:01 UTC
svn commit: r687099 - /httpd/httpd/trunk/modules/proxy/mod_proxy_balancer.c
Author: jim
Date: Tue Aug 19 10:28:00 2008
New Revision: 687099
URL: http://svn.apache.org/viewvc?rev=687099&view=rev
Log:
Add in additional logging and use correct formats
Modified:
httpd/httpd/trunk/modules/proxy/mod_proxy_balancer.c
Modified: httpd/httpd/trunk/modules/proxy/mod_proxy_balancer.c
URL: http://svn.apache.org/viewvc/httpd/httpd/trunk/modules/proxy/mod_proxy_balancer.c?rev=687099&r1=687098&r2=687099&view=diff
==============================================================================
--- httpd/httpd/trunk/modules/proxy/mod_proxy_balancer.c (original)
+++ httpd/httpd/trunk/modules/proxy/mod_proxy_balancer.c Tue Aug 19 10:28:00 2008
@@ -1038,6 +1038,10 @@
if (mycandidate) {
mycandidate->s->lbstatus -= total_factor;
+ ap_log_error(APLOG_MARK, APLOG_DEBUG, 0, r->server,
+ "proxy: byrequests selected worker \"%s\" : busy %" APR_SIZE_T_FMT " : lbstatus %d",
+ mycandidate->name, mycandidate->s->busy, mycandidate->s->lbstatus);
+
}
return mycandidate;
@@ -1116,6 +1120,13 @@
cur_lbset++;
} while (cur_lbset <= max_lbset && !mycandidate);
+ if (mycandidate) {
+ ap_log_error(APLOG_MARK, APLOG_DEBUG, 0, r->server,
+ "proxy: bytraffic selected worker \"%s\" : busy %" APR_SIZE_T_FMT,
+ mycandidate->name, mycandidate->s->busy);
+
+ }
+
return mycandidate;
}
@@ -1191,13 +1202,11 @@
} while (cur_lbset <= max_lbset && !mycandidate);
if (mycandidate) {
-
+ mycandidate->s->lbstatus -= total_factor;
ap_log_error(APLOG_MARK, APLOG_DEBUG, 0, r->server,
- "proxy: selected worker \"%s\" by busy factor %i (request lbstatus %i)",
+ "proxy: bybusyness selected worker \"%s\" : busy %" APR_SIZE_T_FMT " : lbstatus %d",
mycandidate->name, mycandidate->s->busy, mycandidate->s->lbstatus);
- mycandidate->s->lbstatus -= total_factor;
-
}
return mycandidate;