mod_lbmethod_bybusyness.c

Checkout Tools
  • last updated 6 hours ago
Constraints
Constraints: committers
 
Constraints: files
Constraints: dates
* ap_proxy_balancer_get_best_worker cannot be exported and used as an optional

function at the same time. So rename ap_proxy_balancer_get_best_worker to

proxy_balancer_get_best_worker and make it static which is then used as an

optional function and recreate ap_proxy_balancer_get_best_worker as an

exported thin wrapper of proxy_balancer_get_best_worker.

  1. … 4 more files in changeset.
* Add missing log numbers
  1. … 3 more files in changeset.
* mod_proxy: Remove load order and link dependency between mod_lbmethod_*

modules and mod_proxy by providing mod_proxy's ap_proxy_balancer_get_best_worker

as an optional function.

PR: 62557

  1. … 6 more files in changeset.
mod_proxy_balancer: follow up to r1828890: indentation and 80 col.

  1. … 2 more files in changeset.
mod_proxy_balancer: Add hot spare member type and corresponding flag (R). Hot spare members are

used as drop-in replacements for unusable workers in the same load balancer set. This differs

from hot standbys which are only used when all workers in a set are unusable. PR 61140.

  1. … 10 more files in changeset.
Make sure updatelbstatus() is NULL

  1. … 4 more files in changeset.
Fix curly braces style

Remove useless empty lines

  1. … 4 more files in changeset.
Add lots of unique tags to error log messages

  1. … 172 more files in changeset.
mod_proxy: Make ap_proxy_retry_worker() into an optional function. Allows

mod_lbmethod_bybusyness, mod_lbmethod_byrequests, mod_lbmethod_bytraffic

and mod_lbmethod_heartbeat to be loaded without mod_proxy yet being present,

which happens when modules are loaded in alphabetical order.

  1. … 8 more files in changeset.
Move useful and shared balancer stuff to the shm slot...

Provide hooks for post-config/runtime addition of

balancers.

  1. … 6 more files in changeset.
Cleanup effort in prep for GA push:

Trim trailing whitespace... no func change

  1. … 118 more files in changeset.
Implement draining capability for proxy workers... only accept

sticky on these puppies.

  1. … 4 more files in changeset.
Cleanup... most don't need apr_hooks.h at all...
  1. … 15 more files in changeset.
Implement reset() funcs for the LBmethods...
  1. … 2 more files in changeset.
More movement to shared stuff...
  1. … 12 more files in changeset.
Use the new APLOG_USE_MODULE/AP_DECLARE_MODULE macros everywhere to take

advantage of per-module loglevels

  1. … 169 more files in changeset.
server_rec *r... Oops should be server_rec *s.

  1. … 5 more files in changeset.
Arrange the proxy_balancer_method:

- Put context back after the finder().

- Use server_rec as second parameter for reset() and age().

- Add the call for reset().

  1. … 6 more files in changeset.
Change the order of mod_proxy and mod_proxy_balancer child_init().

Change the balancer workers area to the address of workers instead copying the workers.

Arrange lbmethod accordingly.

Move the creation of conf->forward worker to mod_proxy child_init().

  1. … 8 more files in changeset.
Fold in initial template for methods to be able to

reset (initialize) and "age" their data, useful when

adding new workers, or when workers come back into

the fold....

Logic and code to come in a bit :)

  1. … 5 more files in changeset.
Correct logic with non-seq lbsets config'ed

Add in independent bybusyness lbmethod