> * I've found a forking server like uwsgi / gunicorn to be the most
> performant strategy for most situations, as their "max_requests" settings
> to restart workers will eliminate most issues with process growth or memory
> leaks.  they both also offer numerous deployment and management benefits
>

You might be able to squeeze more juice out of uWSGI, but Gunicorn is pure
Python making it easier to deploy, manage and diagnose.

Also the performance depends on the load characteristics - the usual
bottleneck is SQL database performance. For static assets and such - they
should not be served from WSGI in the first place and you can nicely
offload this to CloudFlare or similar automatically. Real time like,
WebSockets, is a different beast and not relevant for WSGI.

Br,
Mikko



> and in addition to what Bert said...
>
> every deployment strategy has a pros and cons that are from tradeoffs in
> the design of the infrastructure. there is no overall "best option". your
> code could run blazingly fast on one stack with specific resources, and run
> terribly on another.
>
> while i have a handful of apps that could redeploy using a single-process
> strategy with no impact, moving my main app from a forked multi-process
> model to a series of single-process containers would greatly increase our
> cloud computing bills (we tested it a while back, and it would have
> required way more servers/resources).
>
> --
> You received this message because you are subscribed to the Google Groups
> "pylons-discuss" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to [email protected].
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/pylons-discuss/4459efb5-7ba5-487d-8409-3089ad3c308b%40googlegroups.com
> <https://groups.google.com/d/msgid/pylons-discuss/4459efb5-7ba5-487d-8409-3089ad3c308b%40googlegroups.com?utm_medium=email&utm_source=footer>
> .
>

-- 
You received this message because you are subscribed to the Google Groups 
"pylons-discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/pylons-discuss/CAK8RCUt%3D8wX4cWvEM4BVJn2hPOZ2btm5Jv0sO4RfLtSr56K1%2Bw%40mail.gmail.com.

Reply via email to