Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

I have a bottle.py application that performs well in dev mode. However, a function that has a larger database query is causing the app to time out when run in either uwsgi or the browser to time out when run on mod_wsgi on apache. How should I go about trying to achieve reasonable performance in a production environment?

share|improve this question
    
So, does this larger database query "perform well" when it's run in the production environment in some way other than uwsgi or mod_wsgi (eg from the db commandline)? –  DerfK Aug 21 '12 at 1:04
    
There are no timeouts in mod_wsgi. Do you mean the browser times out? –  Graham Dumpleton Aug 21 '12 at 3:00
    
Yes the query does perform well. DerfK It usually returns in under .5 sec. Graham, I mis typed, the browser is the timeout in mod_wsgi. Uwsgi the time out appears server side. –  Don Albrecht Aug 21 '12 at 10:47
    
To add some clarity to the test configuration. I'm running all three servers simultaneously on the same box. The bottle.py server returns in <.5 sec –  Don Albrecht Aug 21 '12 at 12:59

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Browse other questions tagged or ask your own question.