On Mar 29, 7:52 pm, Max Ischenko <[email protected]> wrote:
> Hi jj,
>
> On Sun, Mar 29, 2009 at 00:42, jose <[email protected]> wrote:
>
> I can certainly sympathize here. ;)
>
> I have tried various deployment solutions as well for my work on
> developers.org.ua project. I used to use supervisord plus mod_proxy + paster
> serve (cherrypy wsgi). To start supervisord on boot time I wrote simple
> /etc/event.d/supervisor script, I think I posted this solution to pylons
> wiki.
>
> It worked nicely but then I discovered mod_wsgi and I was hooked. It was
> considerably simpler setup compared to superisor/paster/http_proxy. It run
> ok for about 4-5 months and then I switched deployment again. I had
> experienced strange Apache behaviour where it would cease to serve incoming
> requests even though on the surface everything seems just fine. I struggle
> for a couple of weeks and then gave up. I am not sure it was mod_wsgi fault
> or something eniterly different.
Don't know if that was related to zombie issue you asked about on
mod_wsgi list back in November or not. You were asked to supply some
more specific information but you never responded. Bit hard to solve
what ever problem it was when you don't followup about it. -(
Anyway, all indications suggest it was something about your specific
application, environment or configuration, as no general problem with
mod_wsgi has come up which would explain such behaviour and no one
else has reported anything like it.
I do find though that a lot of problems people have are because they
use embedded mode, especially with prefork, and do not bother to
properly configure the Apache MPM settings to appropriate values for
fat Python web applications. I have blogged about this previously in
relation to mod_python, but also relevant to mod_wsgi embedded mode.
http://blog.dscpl.com.au/2009/03/load-spikes-and-excessive-memory-usage.html
Graham
> Anyway, I switched back to paster (cherrypy WSGI) but I used monit instead
> of supervisor (I already used it to monitor apache and other system
> resources and it was trivial task to add paster monitor checks). And I also
> set up nginx as a front-proxy.
> And it all works amazingly good right now.
>
> I run three identical paster servers which are proxied by nginx, using
> round-robin load balancing. nginx also serves all static content and works
> as a proxy to apache. Apache now has far fewer modules, mainly mod_php for
> our PHP pages.
>
> See alsohttp://unblog.developers.org.ua/2009/03/nginx.html
>
> If you are interested I guess I could post relevant configs here or to
> Pylons wiki
>
> --
> Max.Ischenko // twitter.com/maxua
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"pylons-discuss" 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/pylons-discuss?hl=en
-~----------~----~----~----~------~----~------~--~---