I am already preloading thanks to your Sydney presentation.

When I try to recreate the problem, I am surprised to find that I am
having a hard time creating the problem with apache and mod_wsgi, so I
am wondering now if the behavior I see only occurs when I run the app
with paster instead of apache/mod_msgi?

*Should* this be completely safe?  In other words, if an application
process is just starting and apache receives an http request, is there
a mechanism in place such that it will properly, patiently wait for
mod_wsgi to load the app completely before the request is fed to the
process?

(I can readily demonstrate that this is not the case when paster runs
the app.)

Thank you for your time,
Kent

On Sep 16, 5:00 pm, Graham Dumpleton <[email protected]>
wrote:
> On 16 September 2011 23:44, Kent <[email protected]> wrote:
>
> > Is there a way to force a delay (arbitrary or determined) so that when
> > apache restarts, it waits until the python app has loaded completely
> > before allowing requests to be taken by the process?
>
> > Our application stems from a turbogears project.  When I restart
> > apache it takes a few seconds for the application to load fully and if
> > I send an http request within the first several seconds after the
> > restart, then not only does the request fail, but all the subsequent
> > requests to the application (or at least that process) fail as well.
>
> > Any advise?
>
> Describe what you mean by request fails, providing any error messages
> from browser or Apache error logs.
>
> There are ways of preloading on process start, but I can't see how
> that will make a difference because even with lazy loading no request
> is allowed into your application until it is finished loading.
>
> There must be something else going on that is causing the problem so
> please provide more details.
>
> I will explain how to do preloading, but will need to be later.
>
> Graham

-- 
You received this message because you are subscribed to the Google Groups 
"modwsgi" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/modwsgi?hl=en.

Reply via email to