Lines Matching defs:worker
26 proxy_worker *worker, server_rec *s) = NULL;
32 proxy_worker **worker;
60 worker = (proxy_worker **)balancer->workers->elts;
61 for (i = 0; i < balancer->workers->nelts; i++, worker++) {
63 if ((*worker)->s->lbset > max_lbset)
64 max_lbset = (*worker)->s->lbset;
67 ((*worker)->s->lbset != cur_lbset) ||
68 (checking_standby ? !PROXY_WORKER_IS_STANDBY(*worker) : PROXY_WORKER_IS_STANDBY(*worker)) ||
69 (PROXY_WORKER_IS_DRAINING(*worker))
74 /* If the worker is in error state run
75 * retry on that worker. It will be marked as
77 * The worker might still be unusable, but we try
80 if (!PROXY_WORKER_IS_USABLE(*worker)) {
81 ap_proxy_retry_worker_fn("BALANCER", *worker, r->server);
87 if (PROXY_WORKER_IS_USABLE(*worker)) {
89 (*worker)->s->lbstatus += (*worker)->s->lbfactor;
90 total_factor += (*worker)->s->lbfactor;
93 || (*worker)->s->busy < mycandidate->s->busy
94 || ((*worker)->s->busy == mycandidate->s->busy && (*worker)->s->lbstatus > mycandidate->s->lbstatus))
95 mycandidate = *worker;
112 "proxy: bybusyness selected worker \"%s\" : busy %" APR_SIZE_T_FMT " : lbstatus %d",
124 proxy_worker **worker;
125 worker = (proxy_worker **)balancer->workers->elts;
126 for (i = 0; i < balancer->workers->nelts; i++, worker++) {
127 (*worker)->s->lbstatus = 0;
128 (*worker)->s->busy = 0;