crowell / modpagespeed_tmp

Automatically exported from code.google.com/p/modpagespeed
Apache License 2.0
0 stars 0 forks source link

Reconfiguring ServerContext's on the fly #711

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
IIS supports reloading configurations without actually restarting affected 
processes. 
Currently we have a  workaround* in place to make this work for us with IISpeed 
& psol.
Traffic server doesn't restart its worker process when a new configuration is 
available as well.

I think it would be great if this would be supported through official SDK 
api's. 

* Currently, we leak the old server context after shutting it down. 
Alternatively, we can recreate our complete process context, which is not ideal 
either.

Original issue reported on code.google.com by osch...@we-amp.com on 29 May 2013 at 1:07

GoogleCodeExporter commented 9 years ago
I think it might be easiest to have a mechanism to update 
server_context->global_options() under mutex.

Original comment by jmara...@google.com on 29 May 2013 at 1:15

GoogleCodeExporter commented 9 years ago
It's not always enough to just change the config since it might have things 
like cache sizes and the like that get deep-copied into implementation (or even 
chose which implementations get used)

Original comment by morlov...@google.com on 29 May 2013 at 2:21