httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Matus UHLAR - fantomas <uh...@fantomas.sk>
Subject Re: [users@httpd] Question on need to restart Apache after adding/modifying module
Date Fri, 21 Sep 2007 09:30:14 GMT
> >   * it's not terribly safe to modify the configuration structures created
> >     by httpd, they really are applied in a serial manner, not as some state
> >     machine the config state.  Most platforms couldn't unlink a module and
> >     replace it with the same (new build) of a module even if you tried in
> >     a running process (why do you suppose you have to reboot after a kernel
> >     patch anyways?)

On 18.09.07 15:45, Pravin wrote:
> I got this idea from kernel only...
> if you compile any part of kernel as module, then you can insert, remove
> or modify it and then re-insert the kernel-module without restarting
> machine atall :-)
> and Its not that memory expensive in case of kernel...
> 
> But as we are now talking about user-space process, things do change
> I am not sure, but I think that it should be possible to do the same with
> userspace processes also

apache just doed not have functionality of runtime re-configuration without
restarting. Some of the functionality can be done through mod_perl, and
surely most of the functionality can be done with addon module.

However adding or removing of module usually causes reconfiguration of
config file (directives the module implements arte being added/removed), so
it mostly requires rebuilding of configuration in memory.

This is called restart, although you can use graceful restart for more
smooth reconfiguration (not killing child processes)

> I am not very clear about this trade off involved between speed/memory
> and flexibility.
> First I would like to be clear on whether its possible or not to have
> kernel like modules
> in userspace.

In fact, apache modules are the same thing as kernel modules. Note the
above.

-- 
Matus UHLAR - fantomas, uhlar@fantomas.sk ; http://www.fantomas.sk/
Warning: I wish NOT to receive e-mail advertising to this address.
Varovanie: na tuto adresu chcem NEDOSTAVAT akukolvek reklamnu postu.
Boost your system's speed by 500% - DEL C:\WINDOWS\*.*

---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
   "   from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


Mime
View raw message