httpd-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Harrie Hazewinkel <har...@covalent.net>
Subject [PATCH-concept] more dynamic configuration
Date Fri, 06 Jul 2001 19:24:12 GMT
HI all,


Attached is a patch that adds more dynamic configuration.
It places some of the MPM variables such as 'ap_max_daemons_limit',
'ap_daemons_limit', 'ap_daemons_min_free' and 'ap_daemons_max_free' 
in the scoreboard. This enables management modules to do
dynamic (runtime) configuration without requiring a restart of the
Apache HTTP server.


How is it done:
1) The patch adds a hook after the creation of the scoreboard
	which is used by the MPM to transfer the variables in
	the scoreboard and allows a management modules to change
	those.
2) The MPM during its server maintenance (or spawning of extra
processes)
	use the variables that are now in the scoreboard.
	The children are not influenced in performance from this
	for the variables: 'ap_max_daemons_limit',
	'ap_daemons_limit', 'ap_daemons_min_free' and 'ap_daemons_max_free'.
3) The a child uses now the 'max_requests_per_child' from the
scoreboard.
	Which is has little or no impact on the request processing.

This patch works only for the PREFORK MPM. If it is seen as usefull,
we can do the same with the other MPMs and, for instance, add
'ap_threads_min_spare' in the scoreboard as well to allow dynamic
configuration.

Let me know what you think of it.

Harrie
-- 
address: Covalent Technologies, 645 Howard St, San Francisco, CA - 94105
phone: +1-415-536-5221                               fax:+1-415-536-5210
personal website: http://www.lisanza.net/
Mime
View raw message