Hire YC: Need high-traffic Django help ASAP
hey,
we just re-launched out site w/ Django, and are cant handle the peak traffic load. we have apache in the back (mod_python), nginx in the front, memcached. the database doesn't seem to be the bottleneck.
restarting apache yields fast response times up front, but gradually drifts to about 6-12 seconds per request.
we can't handle getting crushed with unacceptable load times much more without serious consequences, so if anyone is available to help, email me at `mattdennewitz at gmail` and lets talk.
8 comments
[ 2.2 ms ] story [ 23.7 ms ] threadresponse time is up to 30 sec with 1 thread and 50 processes. nginx is up front as a proxy and a file server.
what would lighty/fcgi replace?
Start looking for code you can optimize such as bad loops.
http://github.com/robhudson/django-debug-toolbar/
though his tree doesn't have the injectable measurement points I've added to the timer panel yet. I hesitate to suggest this for a production setting only because it's not had much third party exposure (or if it has no one's let me know), but "it works for me":
http://github.com/mmaney/django-debug-toolbar/
You might want to avoid the most recent commit (so use da1429...) - Rob had asked about adding support for the cache API's "add" method, and I threw that together based on the spec; that one part is completely untested other than that it doesn't cause a compilation error in my test setting.