I was wondering what effect external clients would see on a fairly busy site if the apache2 server was reconfigured and then an /etc/init.d/apache2 reload command was issued?
I know in theory current actions should hold without issues, but what would the total effect be on the site?
For the sake of this example, lets assume i want to perform a reload once per minute. would this degrade the site performance a great deal?
Thanks
Using
/etc/init.d/apache2 reload
is the equivalent of a graceful restart. As you said the current connections are carried to the end before the child dies. As children dies they are replaced by new children with the new configuration (see apache doc for restarting).In practice it might slow down a little as it takes some ressources to restart the child, reload the config and close & open log files, but that is hardly noticeable for the clients.
As for your example, it probably depends on how much free ressources you have on your server and on the size of the log files and the config but it wouldn't kill the site performance in my view.
G'day,
I suspect that reloading one a minute would affect your site performance but it would very much depend on:
All of these will affect your response time to the reload. I think having a reload per minute is a bit excessive and will only degrade your site performance.
I'd suggest making a server HUP part of the process when a new config is rolled out as we do.
We've seen maximum traffic levels of 3.8 million hits per second and 7 million hits per second for over an hour during major news events and such an approach to config updates does not affect our servers.
HTH
cheers,