summaryrefslogtreecommitdiffstats
path: root/modules/proxy/balancers/mod_lbmethod_bybusyness.c (follow)
Commit message (Collapse)AuthorAgeFilesLines
* mod_proxy: Follow up to r1912245: ap_proxy_ prefix for extern functions.Yann Ylavic2023-11-181-3/+3
| | | | | | | | | | | | | | Even if they are not part of the API (not in mod_proxy.h) hence requires no MMN bump, {get,set,increment_,decrement_}busy_count() being AP_PROXY_DECLARE()d could name-collide with a third-party module's functions. Rename them using the ap_proxy_ prefix, with an underscore after the verb for for all of them too (for consistency), that is: ap_proxy_{get,set,increment,decrement}_busy_count() git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1913930 13f79535-47bb-0310-9956-ffa450edef68
* Arrange the bybusyness logic and prevent bad busy valuesJean-Frederic Clere2023-09-111-3/+10
| | | | | | | this closes #383 git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1912245 13f79535-47bb-0310-9956-ffa450edef68
* * ap_proxy_balancer_get_best_worker cannot be exported and used as an optionalRuediger Pluem2018-07-251-2/+2
| | | | | | | | | | 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. git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1836603 13f79535-47bb-0310-9956-ffa450edef68
* * Add missing log numbersRuediger Pluem2018-07-201-1/+1
| | | | git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1836386 13f79535-47bb-0310-9956-ffa450edef68
* * mod_proxy: Remove load order and link dependency between mod_lbmethod_*Ruediger Pluem2018-07-201-1/+27
| | | | | | | | | | modules and mod_proxy by providing mod_proxy's ap_proxy_balancer_get_best_worker as an optional function. PR: 62557 git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1836381 13f79535-47bb-0310-9956-ffa450edef68
* mod_proxy_balancer: follow up to r1828890: indentation and 80 col.Yann Ylavic2018-05-291-4/+6
| | | | git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1832500 13f79535-47bb-0310-9956-ffa450edef68
* mod_proxy_balancer: Add hot spare member type and corresponding flag (R). ↵Jim Riggs2018-04-111-85/+20
| | | | | | | | | | 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. git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1828890 13f79535-47bb-0310-9956-ffa450edef68
* Make sure updatelbstatus() is NULLJim Jagielski2017-07-241-1/+2
| | | | git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1802845 13f79535-47bb-0310-9956-ffa450edef68
* Fix curly braces styleChristophe Jaillet2014-12-021-6/+5
| | | | | | Remove useless empty lines git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1642803 13f79535-47bb-0310-9956-ffa450edef68
* Add lots of unique tags to error log messagesStefan Fritsch2011-12-031-2/+2
| | | | git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1209766 13f79535-47bb-0310-9956-ffa450edef68
* mod_proxy: Make ap_proxy_retry_worker() into an optional function. AllowsGraham Leggett2011-12-021-2/+15
| | | | | | | | | 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. git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1209754 13f79535-47bb-0310-9956-ffa450edef68
* Move useful and shared balancer stuff to the shm slot...Jim Jagielski2011-11-251-1/+1
| | | | | | | Provide hooks for post-config/runtime addition of balancers. git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1206286 13f79535-47bb-0310-9956-ffa450edef68
* Cleanup effort in prep for GA push:Jim Jagielski2011-09-231-2/+2
| | | | | | | | Trim trailing whitespace... no func change git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1174751 13f79535-47bb-0310-9956-ffa450edef68
* Implement draining capability for proxy workers... only acceptJim Jagielski2011-09-131-5/+6
| | | | | | sticky on these puppies. git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1170256 13f79535-47bb-0310-9956-ffa450edef68
* Cleanup... most don't need apr_hooks.h at all...Jim Jagielski2011-05-091-1/+1
| | | | git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1101067 13f79535-47bb-0310-9956-ffa450edef68
* Implement reset() funcs for the LBmethods...Jim Jagielski2011-03-311-1/+9
| | | | git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1087407 13f79535-47bb-0310-9956-ffa450edef68
* More movement to shared stuff...Jim Jagielski2011-01-131-1/+1
| | | | git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1058623 13f79535-47bb-0310-9956-ffa450edef68
* Use the new APLOG_USE_MODULE/AP_DECLARE_MODULE macros everywhere to takeStefan Fritsch2010-06-061-1/+1
| | | | | | | advantage of per-module loglevels git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@951895 13f79535-47bb-0310-9956-ffa450edef68
* server_rec *r... Oops should be server_rec *s.Jean-Frederic Clere2009-05-131-2/+2
| | | | git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@774239 13f79535-47bb-0310-9956-ffa450edef68
* Arrange the proxy_balancer_method:Jean-Frederic Clere2009-05-121-4/+4
| | | | | | | | | - Put context back after the finder(). - Use server_rec as second parameter for reset() and age(). - Add the call for reset(). git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@773929 13f79535-47bb-0310-9956-ffa450edef68
* Change the order of mod_proxy and mod_proxy_balancer child_init().Jean-Frederic Clere2009-05-051-14/+14
| | | | | | | | | 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(). git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@771940 13f79535-47bb-0310-9956-ffa450edef68
* Fold in initial template for methods to be able toJim Jagielski2009-04-271-0/+10
| | | | | | | | | | | 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 :) git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@769020 13f79535-47bb-0310-9956-ffa450edef68
* Correct logic with non-seq lbsets config'edJim Jagielski2009-02-011-1/+1
| | | | git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@739854 13f79535-47bb-0310-9956-ffa450edef68
* Add in independent bybusyness lbmethodJim Jagielski2008-12-031-0/+129
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@722948 13f79535-47bb-0310-9956-ffa450edef68