Searched refs:balancer (Results 1 - 10 of 10) sorted by relevance

/httpd/modules/proxy/examples/
H A Dmod_lbmethod_rr.c42 static proxy_worker *find_best_roundrobin(proxy_balancer *balancer, argument
54 balancer->name, (int)getpid());
57 if (!balancer->context) {
60 balancer->context = (void *)ctx;
63 balancer->name, (int)getpid());
65 ctx = (rr_data *)balancer->context;
73 worker = (proxy_worker **)balancer->workers->elts;
75 for (i = 0; i < balancer->workers->nelts; i++, worker++) {
96 if (ctx->index >= balancer->workers->nelts) {
102 static apr_status_t reset(proxy_balancer *balancer, server_re argument
107 age(proxy_balancer *balancer, server_rec *s) argument
[all...]
/httpd/modules/proxy/
H A Dmod_proxy_balancer.c17 /* Load balancer module for Apache proxy */
26 static const char *balancer_mutex_type = "proxy-balancer-shm";
54 extern void proxy_update_members(proxy_balancer **balancer, request_rec *r,
66 if (strncasecmp(url, "balancer:", 9) == 0) {
110 proxy_balancer *balancer)
115 workers = (proxy_worker **)balancer->workers->elts;
117 for (i = 0; i < balancer->workers->nelts; i++) {
121 "Looking at %s -> %s initialized?", balancer->s->name,
133 if (!balancer->s->max_attempts_set && balancer
109 init_balancer_members(apr_pool_t *p, server_rec *s, proxy_balancer *balancer) argument
204 find_route_worker(proxy_balancer *balancer, const char *route, request_rec *r) argument
269 find_session_route(proxy_balancer *balancer, request_rec *r, char **route, const char **sticky_used, char **url) argument
325 find_best_worker(proxy_balancer *balancer, request_rec *r) argument
407 force_recovery(proxy_balancer *balancer, server_rec *s) argument
453 proxy_balancer_pre_request(proxy_worker **worker, proxy_balancer **balancer, request_rec *r, proxy_server_conf *conf, char **url) argument
621 proxy_balancer_post_request(proxy_worker *worker, proxy_balancer *balancer, request_rec *r, proxy_server_conf *conf) argument
677 recalc_factors(proxy_balancer *balancer) argument
701 proxy_balancer *balancer; local
762 proxy_balancer *balancer; local
986 proxy_balancer *balancer, *bsel = NULL; local
1661 proxy_balancer *balancer; local
[all...]
H A Dmod_proxy.h78 #define BALANCER_PREFIX "balancer://"
115 proxy_balancer *balancer; /* only valid for reverse-proxys */ member in struct:proxy_alias
136 apr_array_header_t *workers; /* non-balancer workers, eg ProxyPass http://example.com */
355 int lbset; /* load balancer cluster set */
412 proxy_balancer *balancer; /* which balancer am I in? */ member in struct:proxy_worker
477 const char *name; /* name of the load balancer method*/
478 proxy_worker *(*finder)(proxy_balancer *balancer,
481 apr_status_t (*reset)(proxy_balancer *balancer, server_rec *s);
482 apr_status_t (*age)(proxy_balancer *balancer, server_re
[all...]
H A Dmod_proxy.c283 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
281 set_balancer_param(proxy_server_conf *conf, apr_pool_t *p, proxy_balancer *balancer, const char *key, const char *val) argument
941 proxy_balancer *balancer = NULL; local
1727 proxy_balancer *balancer = ap_proxy_get_balancer(cmd->pool, conf, r, 0); local
2196 proxy_balancer *balancer; local
2296 proxy_balancer *balancer = NULL; local
2394 proxy_balancer *balancer = NULL; local
2683 proxy_balancer *balancer = NULL; local
[all...]
H A Dproxy_util.c75 /* Global balancer counter */
867 proxy_balancer *balancer; local
870 * First check if mapping against a balancer and see
877 (balancer = ap_proxy_get_balancer(r->pool, sconf, real, 1))) {
879 proxy_worker **worker = (proxy_worker **)balancer->workers->elts;
887 /* The balancer comparison is a bit trickier. Given the context
888 * BalancerMember balancer://alias http://example.com/foo
889 * ProxyPassReverse /bash balancer://alias/bar
892 for (n = 0; n < balancer->workers->nelts; n++) {
1071 * verifies that the balancer nam
1086 proxy_balancer *balancer; local
1115 ap_proxy_update_balancer(apr_pool_t *p, proxy_balancer *balancer, const char *url) argument
1139 ap_proxy_define_balancer(apr_pool_t *p, proxy_balancer **balancer, proxy_server_conf *conf, const char *url, const char *alias, int do_malloc) argument
1551 ap_proxy_get_worker(apr_pool_t *p, proxy_balancer *balancer, proxy_server_conf *conf, const char *url) argument
1652 ap_proxy_define_worker(apr_pool_t *p, proxy_worker **worker, proxy_balancer *balancer, proxy_server_conf *conf, const char *url, int do_malloc) argument
1783 ap_proxy_define_match_worker(apr_pool_t *p, proxy_worker **worker, proxy_balancer *balancer, proxy_server_conf *conf, const char *url, int do_malloc) argument
2012 ap_proxy_pre_request(proxy_worker **worker, proxy_balancer **balancer, request_rec *r, proxy_server_conf *conf, char **url) argument
2071 ap_proxy_post_request(proxy_worker *worker, proxy_balancer *balancer, request_rec *r, proxy_server_conf *conf) argument
3252 ap_proxy_find_balancershm(ap_slotmem_provider_t *storage, ap_slotmem_instance_t *slot, proxy_balancer *balancer, unsigned int *index) argument
[all...]
H A Dmod_proxy_ftp.c1120 if ((err = PROXY_THREAD_LOCK(worker->balancer)) != APR_SUCCESS) {
1139 if ((uerr = PROXY_THREAD_UNLOCK(worker->balancer)) != APR_SUCCESS) {
/httpd/modules/proxy/balancers/
H A Dmod_lbmethod_bybusyness.c28 static proxy_worker *find_best_bybusyness(proxy_balancer *balancer, argument
52 balancer->s->name);
60 worker = (proxy_worker **)balancer->workers->elts;
61 for (i = 0; i < balancer->workers->nelts; i++, worker++) {
121 static apr_status_t reset(proxy_balancer *balancer, server_rec *s) argument
125 worker = (proxy_worker **)balancer->workers->elts;
126 for (i = 0; i < balancer->workers->nelts; i++, worker++) {
133 static apr_status_t age(proxy_balancer *balancer, server_rec *s) argument
H A Dmod_lbmethod_byrequests.c46 * If a balancer is configured as follows:
74 static proxy_worker *find_best_byrequests(proxy_balancer *balancer, argument
97 balancer->s->name);
103 worker = (proxy_worker **)balancer->workers->elts;
104 for (i = 0; i < balancer->workers->nelts; i++, worker++) {
152 static apr_status_t reset(proxy_balancer *balancer, server_rec *s) argument
156 worker = (proxy_worker **)balancer->workers->elts;
157 for (i = 0; i < balancer->workers->nelts; i++, worker++) {
163 static apr_status_t age(proxy_balancer *balancer, server_rec *s) argument
H A Dmod_lbmethod_bytraffic.c45 static proxy_worker *find_best_bytraffic(proxy_balancer *balancer, argument
69 balancer->s->name);
75 worker = (proxy_worker **)balancer->workers->elts;
76 for (i = 0; i < balancer->workers->nelts; i++, worker++) {
124 static apr_status_t reset(proxy_balancer *balancer, server_rec *s) argument
128 worker = (proxy_worker **)balancer->workers->elts;
129 for (i = 0; i < balancer->workers->nelts; i++, worker++) {
138 static apr_status_t age(proxy_balancer *balancer, server_rec *s) argument
H A Dmod_lbmethod_heartbeat.c259 static proxy_worker *find_best_hb(proxy_balancer *balancer, argument
301 for (i = 0; i < balancer->workers->nelts; i++) {
302 worker = &APR_ARRAY_IDX(balancer->workers, i, proxy_worker *);
345 static apr_status_t reset(proxy_balancer *balancer, server_rec *s) argument
350 static apr_status_t age(proxy_balancer *balancer, server_rec *s) argument

Completed in 801 milliseconds