Mladen Turk
99af1492a3
Add more comments to the code -- No functional change.
...
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@105075 13f79535-47bb-0310-9956-ffa450edef68
2004-09-11 16:39:38 +00:00
Mladen Turk
4877098bc4
Initialize the balancer on child_init instead on first request to skip
...
the race condition.
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@105063 13f79535-47bb-0310-9956-ffa450edef68
2004-09-10 18:25:54 +00:00
Mladen Turk
e93d6400e3
Include unistd.h for getpid.
...
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@105061 13f79535-47bb-0310-9956-ffa450edef68
2004-09-10 14:49:38 +00:00
Mladen Turk
916b02a98d
Move the shared scoreboard data initization to the balancer module.
...
The initialization is done like for the worker, on first request.
This is done because during config phase we don't have a scoreboard
to allocate from. Thanks to Chritian von Roques for spotting that.
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@105057 13f79535-47bb-0310-9956-ffa450edef68
2004-09-10 08:16:25 +00:00
Jeff Trawick
8091053814
spell check
...
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@104944 13f79535-47bb-0310-9956-ffa450edef68
2004-09-03 16:15:03 +00:00
André Malo
7fe1e763e8
remove unused variables and fix some compiler warnings about const
...
qualifiers
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@104838 13f79535-47bb-0310-9956-ffa450edef68
2004-08-26 21:10:01 +00:00
Mladen Turk
2d7f11c803
Add dynamic management to load balancer:
...
<Location /manager>
SetHandler balancer-manager
</Location>
It enables changing load factors, session routes, redirection
routes, and disabling/enabling particular workers.
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@104812 13f79535-47bb-0310-9956-ffa450edef68
2004-08-26 06:53:39 +00:00
Mladen Turk
38974860db
Remove uneeded access_status variable.
...
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@104792 13f79535-47bb-0310-9956-ffa450edef68
2004-08-24 13:50:43 +00:00
Mladen Turk
b9bee51adf
Do not check the balancer param.
...
It is already checked prior the hook is called from mod_proxy.
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@104791 13f79535-47bb-0310-9956-ffa450edef68
2004-08-24 13:48:13 +00:00
Mladen Turk
58e35c8a4b
Increase the request count for each runtime worker
...
when the worker is elected.
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@104789 13f79535-47bb-0310-9956-ffa450edef68
2004-08-24 12:10:37 +00:00
Mladen Turk
e238532201
Add session route to request rec notes if present.
...
The session route is used only in proxy_ajp for now and
passed inside AJP header message.
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@104786 13f79535-47bb-0310-9956-ffa450edef68
2004-08-24 11:27:31 +00:00
Jeff Trawick
64119fafdd
fix some const issues with string searching
...
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@104644 13f79535-47bb-0310-9956-ffa450edef68
2004-08-13 12:11:50 +00:00
William A. Rowe Jr
6590e33ec9
Fix the url rewriting, and few minor developement bugs.
...
Submitted by: mturk
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@104622 13f79535-47bb-0310-9956-ffa450edef68
2004-08-11 23:08:34 +00:00
William A. Rowe Jr
4d5f6895d1
Implement the worker retry functionality.
...
It uses either worker->retry option or default 60 second retry
that is on each revolution extended by another 60 seconds.
Submitted by: mturk
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@104619 13f79535-47bb-0310-9956-ffa450edef68
2004-08-11 23:05:59 +00:00
William A. Rowe Jr
ec90a6826c
Use the proxy_runtime_stat that either comes from scoreboard or
...
directly allocating memory if there is no scoreboard support or it is not
neaded, due to the fact that we have single child process.
Submitted by: mturk
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@104618 13f79535-47bb-0310-9956-ffa450edef68
2004-08-11 23:03:43 +00:00
William A. Rowe Jr
e1c9bf4b2a
Add rewrite url function and calcute lbstatuses when session worker is elected.
...
Submitted by: mturk
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@104614 13f79535-47bb-0310-9956-ffa450edef68
2004-08-11 22:58:51 +00:00
William A. Rowe Jr
9bdff3874d
The lbstatus needs to be updated for every worker, not just the candidate.
...
Submitted by: mturk
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@104613 13f79535-47bb-0310-9956-ffa450edef68
2004-08-11 22:58:30 +00:00
William A. Rowe Jr
392b0fc5fc
Add finding of a most suitable worker.
...
Submitted by: mturk
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@104612 13f79535-47bb-0310-9956-ffa450edef68
2004-08-11 22:58:03 +00:00
William A. Rowe Jr
3c5a741b55
Add proxy_balancer to proxy module, including config and capturing
...
-I ../generators for the mod_status.h
Submitted by: mturk
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@104608 13f79535-47bb-0310-9956-ffa450edef68
2004-08-11 22:52:46 +00:00