Apache HTTPD
Functions | Variables
mod_lbmethod_bybusyness.c File Reference
#include "mod_proxy.h"
#include "scoreboard.h"
#include "ap_mpm.h"
#include "apr_version.h"
#include "ap_hooks.h"

Go to the source code of this file.

Functions

static int is_best_bybusyness (proxy_worker *current, proxy_worker *prev_best, void *baton)
 
static proxy_workerfind_best_bybusyness (proxy_balancer *balancer, request_rec *r)
 
static apr_status_t reset (proxy_balancer *balancer, server_rec *s)
 
static apr_status_t age (proxy_balancer *balancer, server_rec *s)
 
static int lbmethod_bybusyness_post_config (apr_pool_t *pconf, apr_pool_t *plog, apr_pool_t *ptemp, server_rec *s)
 
static void register_hook (apr_pool_t *p)
 

Variables

static apr_OFN_proxy_balancer_get_best_worker_tap_proxy_balancer_get_best_worker_fn = NULL
 
static const proxy_balancer_method bybusyness
 
static int *const aplog_module_index = &( lbmethod_bybusyness_module.module_index)
 

Function Documentation

◆ age()

static apr_status_t age ( proxy_balancer balancer,
server_rec s 
)
static

Definition at line 73 of file mod_lbmethod_bybusyness.c.

◆ find_best_bybusyness()

static proxy_worker * find_best_bybusyness ( proxy_balancer balancer,
request_rec r 
)
static

Definition at line 45 of file mod_lbmethod_bybusyness.c.

◆ is_best_bybusyness()

static int is_best_bybusyness ( proxy_worker current,
proxy_worker prev_best,
void *  baton 
)
static

Definition at line 28 of file mod_lbmethod_bybusyness.c.

◆ lbmethod_bybusyness_post_config()

static int lbmethod_bybusyness_post_config ( apr_pool_t pconf,
apr_pool_t plog,
apr_pool_t ptemp,
server_rec s 
)
static

< Module has handled this stage.

< Module has handled this stage.

< Module has handled this stage.

Definition at line 89 of file mod_lbmethod_bybusyness.c.

◆ register_hook()

static void register_hook ( apr_pool_t p)
static

Definition at line 110 of file mod_lbmethod_bybusyness.c.

◆ reset()

static apr_status_t reset ( proxy_balancer balancer,
server_rec s 
)
static

Definition at line 61 of file mod_lbmethod_bybusyness.c.

Variable Documentation

◆ ap_proxy_balancer_get_best_worker_fn

apr_OFN_proxy_balancer_get_best_worker_t* ap_proxy_balancer_get_best_worker_fn = NULL
static

Definition at line 26 of file mod_lbmethod_bybusyness.c.

◆ aplog_module_index

int* const aplog_module_index = &( lbmethod_bybusyness_module.module_index)
static

Definition at line 116 of file mod_lbmethod_bybusyness.c.

◆ bybusyness

const proxy_balancer_method bybusyness
static
Initial value:
=
{
"bybusyness",
&age,
}
static apr_status_t age(proxy_balancer *balancer, server_rec *s)
static proxy_worker * find_best_bybusyness(proxy_balancer *balancer, request_rec *r)
static apr_status_t reset(proxy_balancer *balancer, server_rec *s)
return NULL
Definition mod_so.c:359

Definition at line 78 of file mod_lbmethod_bybusyness.c.