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?
Asked
Active
Viewed 268 times
1
-
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 01:04
-
There are no timeouts in mod_wsgi. Do you mean the browser times out? – Graham Dumpleton Aug 21 '12 at 03: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