2008/11/19 Rob Hudson <[EMAIL PROTECTED]>:
>
> Is there a general rule of thumb that can guide a person on what
> numbers might need to be put for:
>
>    WSGIDaemonProcess processes=X threads=Y
>
> I'm curious if knowing what your requests per [time period] is if that
> can guide you what to put here.  I have a small blog (couple hundred
> hits per day?) that I just guess doesn't need much.  But I'll be
> setting up a larger site  (10,000 hits per day?) that I'm not sure of
> a good guideline to use.
>
> If there is not guideline, is there a way to know that you need to
> adjust these?

Hmmm, even 10000 hits per day is not a large site.

For that would just not bother setting processes or threads and just
let WSGIDaemonProcess default to single process with 15 threads. That
should be more than adequate.

Do note that technically setting 'processes=1' is not the same as not
setting the option. When you use 'processes' option for
WSGIDaemonProcess, even if a single process, the wsgi.multiprocess
flag in WSGI environment is set to True.

Thus, don't say 'processes=1', allow it to be defaulted to 1 instead.
The only time you would want 'processes=1' is if you are running a
cluster of machines and application is spread across them yet only
running single process on each. In this case there are actually
multiple process, just distributed and need way to flag that.

Graham

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"modwsgi" group.
To post to this group, send email to modwsgi@googlegroups.com
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