On Oct 3, 9:31 am, chiggsy <[EMAIL PROTECTED]> wrote:
> I want to run django via fastcgi, fronting it with nginx. Now, from
> the help, I see there are 2 options:
>
> method=IMPL prefork or threaded (default prefork)
>
> What are the pros and cons of the threaded model? I'm tending toward
> prefork, does anyone have any experience to share?
Not specifically for FASTGI solutions, but the document:
http://code.google.com/p/modwsgi/wiki/ProcessesAndThreading
contains some discussion of multiprocess/multithread modes for Apache/
mod_wsgi. Some stuff in there about data sharing and GIL would still
apply to FASTCGI even though FASTCGI processes are distinct from
Apache.
For Django, if you use multithreading, make sure you use Django 1.0 as
older versions had potential multithreading issues. In Django 1.0,
only known threading issues are in obscure corner cases where certain
features used in ways which wouldn't normally be used.
Do note that your own application code still has to be multithread
safe.
Graham
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Django users" group.
To post to this group, send email to django-users@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/django-users?hl=en
-~----------~----~----~----~------~----~------~--~---