On Mon, Oct 13, 2008 at 3:33 PM, xavier dutoit <[EMAIL PROTECTED]> wrote:
> > And on your config, you got each fastcgi running under a different > user too ? > I don't really need it but it is trivial with use of sudo. I use sudo to run all fcgi processes as the same user. If I would be less lazy I would create separate user for each site. Any reason you went for processes rather than thread ? > Robust, stable, no issues with GIL. The problems I had under load where the total number of processes/ > memory went too high, say that if you have 100 processes running > django, it uses too much resources, start swapping, load skyrocketing > and generally a lot of not so nice things. > > If I had one pool, I could put a ceiling of maxchildren=90, but I > don't understand how to put that upper limit with 10 sites (and 10 > different fastcgi servers) : > > if I put for each server maxchildren=90, it could potentially go up to > 900 processes, no good. But if I put a lower limit, say 9 and a > maxspare of 3, I would potentially have 9 sites doing nothing and > using 30 processes, while one is busy with 10 processes running, not > serving the 11th request, even so it has plenty of space to be able to > have more processes. I really doubt if all your django sites will be slashdotted at the same time. Anyway, if it happens it is already DOS or DDOS attack. I'd better leave maxchildren=90 for each site and think about getting more power for servers if the average load grows in long run. > Well, might not be a problem you have with django/python and I might > be looking at the wrong thing, but at least in php, I found it that > putting a maxchildren low enough so you drop new requests before > overloading the server avoid problems, and having one fastcgi server > for all the sites works better than independent ones. What is your > experience with django (mod_python shared pool of processes vs. > fastcgi separated ones) ? I have no experience with mod_python as I have been using django only with lighttpd and apache with mod_fastcgi. I like the comfort that I get by running processes where and how I want. I am sure that there is plenty of peole on list (including core team) who use mod_python and could be more useful than me. Valts. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Django users" 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/django-users?hl=en -~----------~----~----~----~------~----~------~--~---

