Re: Surving Static Files on Django

2005-10-13 Thread Jacob Kaplan-Moss
On Oct 13, 2005, at 7:15 AM, Sune Kirkeby wrote: On 9/29/05, Jacob Kaplan-Moss <[EMAIL PROTECTED]> wrote: To pick one example: in a dynamic serving situation, KeepAlive is your friend; [ snip a lot ] Hmmm... HTTP Keep-Alive? Then either I'm misunderstanding you, or everything you say is ex

Re: Surving Static Files on Django

2005-10-13 Thread Sune Kirkeby
On 9/29/05, Jacob Kaplan-Moss <[EMAIL PROTECTED]> wrote: > To pick one example: in a dynamic serving situation, KeepAlive is > your friend; [ snip a lot ] Hmmm... HTTP Keep-Alive? Then either I'm misunderstanding you, or everything you say is exactly opposite to what I remember reading elsewhere

Re: Surving Static Files on Django

2005-09-29 Thread Jacob Kaplan-Moss
On Sep 29, 2005, at 8:03 AM, Simon Willison wrote: That's more a limitation of mod_python than of Django itself. I imagine that FastCGI and SCGI avoid this issue almost entirely - the modules themselves are much smaller so it's less wasteful to use them to serve static files as well as Djan

Re: Surving Static Files on Django

2005-09-29 Thread Simon Willison
On 28 Sep 2005, at 21:25, Jacob Kaplan-Moss wrote: Why? In case you hadn't noticed, Django has a pretty large memory footprint; between Apache, mod_python, Python, the database drivers, etc., Apache server processes tend to weigh about 10M each (at least on my servers). Unfortunately, A

Re: Concurrent-request memory footprints (was Surving Static Files on Django)

2005-09-28 Thread Adrian Holovaty
On 9/28/05, Jeremy Dunck <[EMAIL PROTECTED]> wrote: > I hadn't noticed. Do you just load up your web servers with memory, > or do you (allow Apache to) throttle concurrent requests? In my experience with chicagocrime.org, I've found that the key lies in manipulating the values of StartServers, M

Re: Concurrent-request memory footprints (was Surving Static Files on Django)

2005-09-28 Thread Jacob Kaplan-Moss
On Sep 28, 2005, at 3:38 PM, Jeremy Dunck wrote: On 9/28/05, Jacob Kaplan-Moss <[EMAIL PROTECTED]> wrote: ...In case you hadn't noticed, Django has a pretty large memory footprint; between Apache, mod_python, Python, the database drivers, etc., Apache server processes tend to weigh about 10M e

Concurrent-request memory footprints (was Surving Static Files on Django)

2005-09-28 Thread Jeremy Dunck
On 9/28/05, Jacob Kaplan-Moss <[EMAIL PROTECTED]> wrote: > ...In case you hadn't noticed, Django has a pretty large memory > footprint; between Apache, mod_python, Python, the database drivers, > etc., Apache server processes tend to weigh about 10M each (at least > on my servers). I hadn't notic

Re: Surving Static Files on Django

2005-09-28 Thread Jacob Kaplan-Moss
On Sep 28, 2005, at 2:48 PM, Jakub Labath wrote: 1. No it doesn't have to be external web server. However, if you have the resources, it really should be another server -- or at least another instance of Apache running on the same server. Why? In case you hadn't noticed, Django has a pr

Re: Surving Static Files on Django

2005-09-28 Thread Jakub Labath
Hi, 1. No it doesn't have to be external web server. Here is what I do with Apache. SetHandler python-program PythonHandler django.core.handlers.modpython SetEnv DJANGO_SETTINGS_MODULE mysite.settings.main SetHandler None The SetHandler None w

Surving Static Files on Django

2005-09-28 Thread Armin
Hey Everyone, So.. I need to host all my non-django-generated files in an external web server? Meaning that if my site requires a css file or an image file, then it shouldn't be bugging django for it? Does that mean I should leave my static html pages in an external page as well? Or use the temp