mod_lbmethod_bybusyness.html.en revision c44eeebd065e2c8cd028016b45c58afb480aaf8f
beff4152e9f0fe90885458d1a1733b183a2a8816Christian Maeder<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
e9458b1a7a19a63aa4c179f9ab20f4d50681c168Jens Elkner<html xmlns="http://www.w3.org/1999/xhtml" lang="en" xml:lang="en"><head><!--
e6d40133bc9f858308654afb1262b8b483ec5922Till Mossakowski XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
2725abe920f91de62ae5c0b7230c1627cccf5fabChristian Maeder This file is generated from xml source: DO NOT EDIT
98890889ffb2e8f6f722b00e265a211f13b5a861Corneliu-Claudiu Prodescu XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
3f69b6948966979163bdfe8331c38833d5d90ecdChristian Maeder<title>mod_lbmethod_bybusyness - Apache HTTP Server Version 2.5</title>
b53688bfed888214b485cf76439d57262d80e0a7Christian Maeder<link href="/style/css/manual.css" rel="stylesheet" media="all" type="text/css" title="Main stylesheet" />
b53688bfed888214b485cf76439d57262d80e0a7Christian Maeder<link href="/style/css/manual-loose-100pc.css" rel="alternate stylesheet" media="all" type="text/css" title="No Sidebar - Default font size" />
b53688bfed888214b485cf76439d57262d80e0a7Christian Maeder<link href="/style/css/manual-print.css" rel="stylesheet" media="print" type="text/css" /><link rel="stylesheet" type="text/css" href="/style/css/prettify.css" />
f3a94a197960e548ecd6520bb768cb0d547457bbChristian Maeder<script src="/style/scripts/prettify.min.js" type="text/javascript">
b53688bfed888214b485cf76439d57262d80e0a7Christian Maeder<link href="/images/favicon.ico" rel="shortcut icon" /></head>
0a26144c20fa9cdcd05011ca5019cbac8e4afae0cmaeder<p class="menu"><a href="/mod/">Modules</a> | <a href="/mod/quickreference.html">Directives</a> | <a href="http://wiki.apache.org/httpd/FAQ">FAQ</a> | <a href="/glossary.html">Glossary</a> | <a href="/sitemap.html">Sitemap</a></p>
93603bd881e43d4ff5a57d7ca4e2b9fa619f25b4cmaeder<div class="up"><a href="./"><img title="<-" alt="<-" src="/images/left.gif" /></a></div>
109a53dbf4c9233f869f63ba7a7f3fece49973c3Christian Maeder<a href="http://www.apache.org/">Apache</a> > <a href="http://httpd.apache.org/">HTTP Server</a> > <a href="http://httpd.apache.org/docs/">Documentation</a> > <a href="../">Version 2.5</a> > <a href="./">Modules</a></div>
109a53dbf4c9233f869f63ba7a7f3fece49973c3Christian Maeder<div id="preamble"><h1>Apache Module mod_lbmethod_bybusyness</h1>
bbba10ee00dcf6bcbc9f22473b1acd0983b10512notanartist<p><span>Available Languages: </span><a href="/en/mod/mod_lbmethod_bybusyness.html" title="English"> en </a></p>
109a53dbf4c9233f869f63ba7a7f3fece49973c3Christian Maeder<table class="module"><tr><th><a href="module-dict.html#Description">Description:</a></th><td>Pending Request Counting load balancer scheduler algorithm for <code class="module"><a href="/mod/mod_proxy_balancer.html">mod_proxy_balancer</a></code></td></tr>
109a53dbf4c9233f869f63ba7a7f3fece49973c3Christian Maeder<tr><th><a href="module-dict.html#Status">Status:</a></th><td>Extension</td></tr>
ea5ccb1c6e89486a54e1f4bd95840147e96093edChristian Maeder<tr><th><a href="module-dict.html#ModuleIdentifier">Module�Identifier:</a></th><td>lbmethod_bybusyness_module</td></tr>
109a53dbf4c9233f869f63ba7a7f3fece49973c3Christian Maeder<tr><th><a href="module-dict.html#SourceFile">Source�File:</a></th><td>mod_lbmethod_bybusyness.c</td></tr>
109a53dbf4c9233f869f63ba7a7f3fece49973c3Christian Maeder<tr><th><a href="module-dict.html#Compatibility">Compatibility:</a></th><td>Split off from <code class="module"><a href="/mod/mod_proxy_balancer.html">mod_proxy_balancer</a></code> in 2.3</td></tr></table>
109a53dbf4c9233f869f63ba7a7f3fece49973c3Christian Maeder<p>This module does not provide any configuration directives of its own.
fe495a0978e5aa70776103c37fb0eb2bd6abea69Eugen KuksaIt requires the services of <code class="module"><a href="/mod/mod_proxy_balancer.html">mod_proxy_balancer</a></code>, and
91e24fc45834b35f2a3830d72565640251149bf3Christian Maederprovides the <code>bybusyness</code> load balancing method.</p>
109a53dbf4c9233f869f63ba7a7f3fece49973c3Christian Maeder<li><img alt="" src="/images/down.gif" /> <a href="#busyness">Pending Request Counting Algorithm</a></li>
109a53dbf4c9233f869f63ba7a7f3fece49973c3Christian Maeder<p>This module provides no
109a53dbf4c9233f869f63ba7a7f3fece49973c3Christian Maeder directives.</p>
0130083f314580170af1195037be3325f125fbceChristian Maeder<li><code class="module"><a href="/mod/mod_proxy.html">mod_proxy</a></code></li>
109a53dbf4c9233f869f63ba7a7f3fece49973c3Christian Maeder<li><code class="module"><a href="/mod/mod_proxy_balancer.html">mod_proxy_balancer</a></code></li>
109a53dbf4c9233f869f63ba7a7f3fece49973c3Christian Maeder</ul><ul class="seealso"><li><a href="#comments_section">Comments</a></li></ul></div>
109a53dbf4c9233f869f63ba7a7f3fece49973c3Christian Maeder<div class="top"><a href="#page-header"><img alt="top" src="/images/up.gif" /></a></div>
109a53dbf4c9233f869f63ba7a7f3fece49973c3Christian Maeder<h2><a name="busyness" id="busyness">Pending Request Counting Algorithm</a></h2>
a461314c811f4187dff85c8be079a41b2f13f176Christian Maeder <p>Enabled via <code>lbmethod=bybusyness</code>, this scheduler keeps
4eb859461f8fd904f40f57261cf23e5c73cf8ecaChristian Maeder track of how many requests each worker is currently assigned at present. A new
a31430de8b0632d29f42634d6395e982bf31b14dChristian Maeder request is automatically assigned to the worker with the lowest
109a53dbf4c9233f869f63ba7a7f3fece49973c3Christian Maeder number of active requests. This is useful in the case of workers
b53688bfed888214b485cf76439d57262d80e0a7Christian Maeder that queue incoming requests independently of Apache, to ensure that
b53688bfed888214b485cf76439d57262d80e0a7Christian Maeder queue length stays even and a request is always given to the worker
be43c3fa0292555bd126784ae27ff5c1d23438cbChristian Maeder most likely to service it the fastest and reduce latency.</p>
a389e88e0acb83d8489bdc5e55bc5522b152bbecEugen Kuksa <p>In the case of multiple least-busy workers, the statistics (and
a389e88e0acb83d8489bdc5e55bc5522b152bbecEugen Kuksa weightings) used by the Request Counting method are used to break the
b53688bfed888214b485cf76439d57262d80e0a7Christian Maeder tie. Over time, the distribution of work will come to resemble that
16b71dad8d398af412d66a4f4763f1ada5b03d23Christian Maeder characteristic of <code>byrequests</code> (as implemented
f39b8dd9651dfcc38b06191cda23cacbfc298323Christian Maeder by <code class="module"><a href="/mod/mod_lbmethod_byrequests.html">mod_lbmethod_byrequests</a></code>).</p>
b53688bfed888214b485cf76439d57262d80e0a7Christian Maeder<p><span>Available Languages: </span><a href="/en/mod/mod_lbmethod_bybusyness.html" title="English"> en </a></p>
b53688bfed888214b485cf76439d57262d80e0a7Christian Maeder</div><div class="top"><a href="#page-header"><img src="/images/up.gif" alt="top" /></a></div><div class="section"><h2><a id="comments_section" name="comments_section">Comments</a></h2><div class="warning"><strong>Notice:</strong><br />This is not a Q&A section. Comments placed here should be pointed towards suggestions on improving the documentation or server, and may be removed again by our moderators if they are either implemented or considered invalid/off-topic. Questions on how to manage the Apache HTTP Server should be directed at either our IRC channel, #httpd, on Freenode, or sent to our <a href="http://httpd.apache.org/lists.html">mailing lists</a>.</div>
9d6562465b41f17c7967d4e5678f34811d958cb2Christian Maeder<script type="text/javascript"><!--//--><![CDATA[//><!--
b53688bfed888214b485cf76439d57262d80e0a7Christian Maedervar comments_shortname = 'httpd';
502483734c83d0bf1eadcc94113d0362f8713784Christian Maedervar comments_identifier = 'http://httpd.apache.org/docs/trunk/mod/mod_lbmethod_bybusyness.html';
b53688bfed888214b485cf76439d57262d80e0a7Christian Maeder(function(w, d) {
be43c3fa0292555bd126784ae27ff5c1d23438cbChristian Maeder if (w.location.hostname.toLowerCase() == "httpd.apache.org") {
7f7460e7095628f3437b116ee78d3043d11f8febChristian Maeder d.write('<div id="comments_thread"><\/div>');
16b71dad8d398af412d66a4f4763f1ada5b03d23Christian Maeder var s = d.createElement('script');
b53688bfed888214b485cf76439d57262d80e0a7Christian Maeder s.src = 'https://comments.apache.org/show_comments.lua?site=' + comments_shortname + '&page=' + comments_identifier;
4eb859461f8fd904f40f57261cf23e5c73cf8ecaChristian Maeder (d.getElementsByTagName('head')[0] || d.getElementsByTagName('body')[0]).appendChild(s);
4eb859461f8fd904f40f57261cf23e5c73cf8ecaChristian Maeder d.write('<div id="comments_thread">Comments are disabled for this page at the moment.<\/div>');
4eb859461f8fd904f40f57261cf23e5c73cf8ecaChristian Maeder})(window, document);
4eb859461f8fd904f40f57261cf23e5c73cf8ecaChristian Maeder<p class="apache">Copyright 2015 The Apache Software Foundation.<br />Licensed under the <a href="http://www.apache.org/licenses/LICENSE-2.0">Apache License, Version 2.0</a>.</p>
b53688bfed888214b485cf76439d57262d80e0a7Christian Maeder<p class="menu"><a href="/mod/">Modules</a> | <a href="/mod/quickreference.html">Directives</a> | <a href="http://wiki.apache.org/httpd/FAQ">FAQ</a> | <a href="/glossary.html">Glossary</a> | <a href="/sitemap.html">Sitemap</a></p></div><script type="text/javascript"><!--//--><![CDATA[//><!--
2353f65833a3da763392f771223250cd50b8d873Christian Maederif (typeof(prettyPrint) !== 'undefined') {
b53688bfed888214b485cf76439d57262d80e0a7Christian Maeder prettyPrint();