Lines Matching defs:balancer

283                                       proxy_balancer *balancer,
295 if (strlen(val) >= sizeof(balancer->s->sticky_path))
297 (int)sizeof(balancer->s->sticky_path));
298 PROXY_STRNCPY(balancer->s->sticky_path, val);
299 PROXY_STRNCPY(balancer->s->sticky, val);
301 if ((path = strchr((char *)balancer->s->sticky, '|'))) {
303 PROXY_STRNCPY(balancer->s->sticky_path, path);
312 balancer->s->sticky_separator = 0;
317 balancer->s->sticky_separator = *val;
318 balancer->s->sticky_separator_set = 1;
326 balancer->s->sticky_force = 1;
328 balancer->s->sticky_force = 0;
331 balancer->s->sticky_force_set = 1;
342 balancer->s->timeout = apr_time_from_sec(ival);
351 balancer->s->max_attempts = ival;
352 balancer->s->max_attempts_set = 1;
356 if (strlen(val) > (sizeof(balancer->s->lbpname)-1))
360 balancer->lbmethod = provider;
361 if (PROXY_STRNCPY(balancer->s->lbpname, val) == APR_SUCCESS) {
362 balancer->lbmethod_set = 1;
377 balancer->s->scolonsep = 1;
379 balancer->s->scolonsep = 0;
382 balancer->s->scolonsep_set = 1;
391 balancer->errstatuses = apr_array_make(p, 1, sizeof(int));
397 *(int *)apr_array_push(balancer->errstatuses) = ival;
408 balancer->failontimeout = 1;
410 balancer->failontimeout = 0;
413 balancer->failontimeout_set = 1;
417 *balancer->s->nonce = '\0';
420 if (PROXY_STRNCPY(balancer->s->nonce, val) != APR_SUCCESS) {
424 balancer->s->nonce_set = 1;
430 balancer->growth = ival;
431 balancer->growth_set = 1;
435 balancer->s->forcerecovery = 1;
437 balancer->s->forcerecovery = 0;
440 balancer->s->forcerecovery_set = 1;
643 * ProxyPassMatch \.gif balancer://foo
648 * ProxyPassMatch ^(/.*\.gif)$ balancer://foo
649 * ProxyPassMatch ^(/.*\.gif)$ balancer://foo$1
941 proxy_balancer *balancer = NULL;
1076 access_status = ap_proxy_pre_request(&worker, &balancer, r, conf, &url);
1086 * Ensure that balancer is NULL if worker is NULL to prevent
1090 balancer = NULL;
1094 /* Initialise worker if needed, note the shared area must be initialized by the balancer logic */
1095 if (balancer) {
1099 if (balancer && balancer->s->max_attempts_set && !max_attempts)
1100 max_attempts = balancer->s->max_attempts;
1177 * Mark the worker as unusable if member of load balancer
1179 if (balancer
1189 * Mark the worker as unusable if member of load balancer
1191 if (balancer
1228 ap_proxy_post_request(worker, balancer, r, conf);
1300 /* Check if the balancer is defined in both override and base configs:
1301 * a) If it is, Create copy of base balancer and change the configuration
1303 * b) Otherwise, copy the balancer to tocopy array and merge it later.
1315 * balancer, so if some entry is not set there, we have to
1316 * update it according to the base balancer. */
1725 /* Distinguish the balancer from worker */
1727 proxy_balancer *balancer = ap_proxy_get_balancer(cmd->pool, conf, r, 0);
1741 if (!balancer) {
1742 const char *err = ap_proxy_define_balancer(cmd->pool, &balancer, conf, r, fake_copy, 0);
1747 ap_proxy_update_balancer(cmd->pool, balancer, fake_copy);
1750 const char *err = set_balancer_param(conf, cmd->pool, balancer, elts[i].key,
1755 new->balancer = balancer;
2196 proxy_balancer *balancer;
2226 return "BalancerMember can not have a balancer name when defined in a location";
2237 return "BalancerMember must define balancer name when outside <Proxy > section";
2243 /* Try to find the balancer */
2244 balancer = ap_proxy_get_balancer(cmd->temp_pool, conf, path, 0);
2245 if (!balancer) {
2246 err = ap_proxy_define_balancer(cmd->pool, &balancer, conf, path, "/", 0);
2252 worker = ap_proxy_get_worker(cmd->temp_pool, balancer, conf, ap_proxy_de_socketfy(cmd->temp_pool, name));
2255 "Defining worker '%s' for balancer '%s'",
2256 name, balancer->s->name);
2257 if ((err = ap_proxy_define_worker(cmd->pool, &worker, balancer, conf, name, 0)) != NULL)
2260 "Defined worker '%s' for balancer '%s'",
2261 ap_proxy_worker_name(cmd->pool, worker), balancer->s->name);
2296 proxy_balancer *balancer = NULL;
2309 * Parent directive arg is the worker/balancer name.
2317 /* Standard set directive with worker/balancer
2324 balancer = ap_proxy_get_balancer(cmd->pool, conf, name, 0);
2325 if (!balancer) {
2327 err = ap_proxy_define_balancer(cmd->pool, &balancer, conf, name, "/", 0);
2365 err = set_balancer_param(conf, cmd->pool, balancer, word, val);
2394 proxy_balancer *balancer = NULL;
2469 balancer = ap_proxy_get_balancer(cmd->pool, sconf, conf->p, 0);
2470 if (!balancer) {
2471 err = ap_proxy_define_balancer(cmd->pool, &balancer,
2501 if (worker == NULL && balancer == NULL) {
2518 err = set_balancer_param(sconf, cmd->pool, balancer,
2583 "A balancer name and scheme with list of params"),
2587 "on if the balancer should persist changes on reboot/restart made via the Balancer Manager"),
2597 "A balancer or worker name with list of params"),
2683 proxy_balancer *balancer = NULL;
2690 balancer = (proxy_balancer *)conf->balancers->elts;
2694 ap_rvputs(r, balancer->s->name, "</h1>\n\n", NULL);
2698 if (*balancer->s->sticky) {
2699 if (strcmp(balancer->s->sticky, balancer->s->sticky_path)) {
2700 ap_rvputs(r, "<td>", balancer->s->sticky, " | ",
2701 balancer->s->sticky_path, NULL);
2704 ap_rvputs(r, "<td>", balancer->s->sticky, NULL);
2711 apr_time_sec(balancer->s->timeout));
2713 balancer->lbmethod->name);
2722 ap_rprintf(r, "ProxyBalancer[%d]Name: %s\n", i, balancer->s->name);
2725 worker = (proxy_worker **)balancer->workers->elts;
2726 for (n = 0; n < balancer->workers->nelts; n++) {
2766 ++balancer;
2809 * NOTE: non-balancer members don't use shm at all...
2943 proxy_balancer **balancer,
2946 char **url),(worker,balancer,
2950 proxy_balancer *balancer,
2953 balancer,r,conf),DECLINED)