I'm using mod_wsgi in daemon mode with a django application.  I've
been looking through the mod_wsgi docs and haven't been able to find
an answer to one question I have.  What would make me want to choose
to use processes vs threads vs a combination of the two?  For example,
if I want a total of 10 threads, I could do any of the following:

threads=10 [leaving processes out so it defaults to 1]
processes=10 threads=1
processes=5 threads=2
processes=2 threads=5

What are the tradeoffs?

What I would expect is that generally, you'd want a large number of
threads and a small number of processes, to reduce resource usage on
the server.  Except that it may be good to have 2 processes, rather
than one, if max-requests is set.  That way there is one process that
is probably still running when the other is being restarted after
hitting it's request limit.  Is this logic correct?  Any factors that
I am failing to take into account?

Thanks!

-- 
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