[Web-SIG] multi-threaded or multi-process wsgi apps
chris at simplistix.co.uk
Wed Nov 28 22:52:05 CET 2007
Ian Bicking wrote:
> At least in Pylons apps, configuration is setup during instantiation.
> Configuration is generally copyable (consisting of stuff like strings,
> not open file objects), so it can be cloned across processes easily.
I can understand sharing across threads, but how do you share across
>> The second is a problem I see an app I'm working on heading towards.
>> The app has web-alterable configuration, so in a multi-threaded and
>> particular multi-process environment, I need some way to get the other
>> threads or processes to re-read their configuration when it has changed.
> In Paste/Pylons the configuration is stored in the environment (which is
> per-request), and put into a threadlocal object for access.
Again, how about across processes?
And if the configuration changes once the app is up and running, how do
you propogate changes to all the other app processes?
Simplistix - Content Management, Zope & Python Consulting
More information about the Web-SIG