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;
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;
}
} 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;