From: Graham Dumpleton <Graham.Dumple...@gmail.com>
Date: Wed, 26 Sep 2007 02:58:08 -0000
Local: Tues, Sep 25 2007 10:58 pm
Subject: Re: Django 100% threadsafe with DB?
On Sep 26, 10:27 am, "Benjamin Slavin" <benjamin.sla...@gmail.com>
wrote: > On 9/25/07, Mike Scott <mic...@gmail.com> wrote: Can you find the discussions on Google groups and post references to > > It should be threadsafe - [... ] web applications [...] pretty much > Mike, > There are two issues here. Thread safe and concurrent operation, and > Django DOES supports concurrent operation (separate processes on the > Django DOES NOT support threaded operation (and from what I've them. > This is why Apache must be configured to use the prefork model instead In which case there should also be a warning that Django cannot be > of the worker model. used with Apache/mod_python on Windows as the Apache winnt MPM is also multithreaded. Also, why are there instructions posted for running a FASTCGI process in multithreaded mode and that wouldn't be safe either. I have pointed out the Apache inconsistency before. At the same time, The most recent response I got was that any threading problems were http://groups.google.com/group/django-developers/browse_frm/thread/bf... Thus any issues with multithreading are perhaps more to do with how That you have made this statement that 'prefork' must be used, do you > In practice this doesn't tend to pose a problem for web deployments. Although Apache/mod_python can be setup for prefork MPM, it is not > Both FCGI and Apache are designed so that they can work with non > thread-safe applications. ideal for Python web applications due to the generally large memory requirements of the web frameworks. It is much more preferable that worker MPM be used as it cuts down on the number of Apache child processes. If you ever want Django to be taken up and offered as an option by commodity web hosters then you must be able to support a multithreaded server as they cannot afford the memory requirements of mod_python, mod_wsgi or fastcgi solutions used in a multiprocess/ single threaded mode. Can we please somehow settle this issue once and for all. I have tried Graham You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
| ||||||||||||||