Lines Matching refs:workers
113 proxy_worker **workers;
115 workers = (proxy_worker **)balancer->workers->elts;
117 for (i = 0; i < balancer->workers->nelts; i++) {
119 proxy_worker *worker = *workers;
127 ++workers;
131 * workers.
133 if (!balancer->s->max_attempts_set && balancer->workers->nelts > 1) {
134 balancer->s->max_attempts = balancer->workers->nelts - 1;
211 proxy_worker **workers;
215 workers = (proxy_worker **)balancer->workers->elts;
216 for (i = 0; i < balancer->workers->nelts; i++, workers++) {
217 proxy_worker *worker = *workers;
350 /* All the workers are in error state or disabled.
413 worker = (proxy_worker **)balancer->workers->elts;
414 for (i = 0; i < balancer->workers->nelts; i++, worker++) {
429 /* If all workers are in error state force the recovery.
431 worker = (proxy_worker **)balancer->workers->elts;
432 for (i = 0; i < balancer->workers->nelts; i++, worker++) {
499 proxy_worker **workers;
501 * Update the workers status
505 workers = (proxy_worker **)(*balancer)->workers->elts;
506 for (i = 0; i < (*balancer)->workers->nelts; i++) {
507 /* Take into calculation only the workers that are
510 if (PROXY_WORKER_IS_USABLE(*workers)) {
511 (*workers)->s->lbstatus += (*workers)->s->lbfactor;
512 total_factor += (*workers)->s->lbfactor;
514 workers++;
524 proxy_worker **workers;
530 workers = (proxy_worker **)(*balancer)->workers->elts;
531 for (i = 0; i < (*balancer)->workers->nelts; i++) {
532 if (*((*workers)->s->route) && strcmp((*workers)->s->route, route) == 0) {
536 workers++;
540 "%s: All workers are in error state for route (%s)",
559 if ((*balancer)->workers->nelts) {
561 "%s: All workers are in error state",
565 "%s: No workers in balancer",
574 * supplied any routing information or all workers for this route
575 * including possible redirect and hotstandby workers are in error
680 proxy_worker **workers;
684 workers = (proxy_worker **)balancer->workers->elts;
688 if (balancer->workers->nelts == 1) {
689 (*workers)->s->lbstatus = (*workers)->s->lbfactor = 1;
692 for (i = 0; i < balancer->workers->nelts; i++) {
694 workers[i]->s->lbstatus = workers[i]->s->lbfactor;
757 * each balancer's workers
811 proxy_worker **workers;
823 balancer->max_workers = balancer->workers->nelts + balancer->growth;
861 /* create slotmem slots for workers */
862 ap_log_error(APLOG_MARK, APLOG_DEBUG, 0, s, APLOGNO(01184) "Doing workers create: %s (%s), %d, %d [%u]",
881 workers = (proxy_worker **)balancer->workers->elts;
882 for (j = 0; j < balancer->workers->nelts; j++, workers++) {
885 worker = *workers;
988 proxy_worker **workers = NULL;
1232 /* by default, all new workers are disabled */
1283 ap_rputs(" <httpd:workers>\n", r);
1284 workers = (proxy_worker **)balancer->workers->elts;
1285 for (n = 0; n < balancer->workers->nelts; n++) {
1286 worker = *workers;
1424 ++workers;
1426 ap_rputs(" </httpd:workers>\n", r);
1528 workers = (proxy_worker **)balancer->workers->elts;
1529 for (n = 0; n < balancer->workers->nelts; n++) {
1531 worker = *workers;
1556 ++workers;