Slowness from an unexpected place...Submitted by jessie on Sat, 09/10/2011 - 11:10am |
There has been some slowness on Pacecarz lately, especially when submitting speeds. I finally got time to look into this last night.
The first step was figuring out what exactly was slow. I went to download a profiler for Django (via wget). To my suprise, it took ages to do the DNS lookup.
Ahah! I recalled that there is a call to an external service in the log-speed code. That DNS call must be taking ages.
Fixed the DNS problem, and everything speed up by 10x or so.
I love it when a plan comes together.
- jessie's blog
- 869 reads