I am running Django on a webserver in conjunction with a fileserver and a database server. All of these machines have over 6 gigs of ram and dual core Xeon processors. They also are running on raid-5 HDD.
However, as little as 5000 hits a day brings my site down to a crawl during peak hours! The funny thing is, I have plenty of free ram space and processor during these peak hours. I am not really sure why this is happening, but I suspect it has something to do with Django and here is why: Whenever someone goes to the site (the home page), a new database connection is created with the Django database. I have caching enabled: CACHE_MIDDLEWARE_SECONDS = 300 CACHE_MIDDLEWARE_KEY_PREFIX = '' CACHE_BACKEND = "file:///data/cache" so I am a little confused as to why a new DB connection is even opened. Shouldn't it only open a new connection when the page doesn't exist in cache? I have tried increasing the number of Apache and Postgres users, as well as increasing the timeout settings. I made sure to give all of the sites a unique PythonInterpreter name as well. SPECS: Red Hat ES 4 Postgres 8.0.7 Apache 2.0.52 mod_python --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---