Login | Register For Free | Help
Search for: (Advanced)

Mailing List Archive: Apache: CVS
svn commit: r687099 - /httpd/httpd/trunk/modules/proxy/mod_proxy_balancer.c
 

Index | Next | Previous | View Flat


jim at apache

Aug 19, 2008, 10:28 AM


Views: 183
Permalink
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;

Subject User Time
svn commit: r687099 - /httpd/httpd/trunk/modules/proxy/mod_proxy_balancer.c jim at apache Aug 19, 2008, 10:28 AM

  Index | Next | Previous | View Flat
 
 


Interested in having your list archived? Contact lists@gossamer-threads.com
 
  Web Applications & Managed Hosting Powered by Gossamer Threads Inc.