Context
I've written a simple service that consists of
- A Python Script
- Running in Flask Framework
- Hosted on Heroku - (currently running 1 dyno)
The mechanics of the data transfer are somewhat unique
- Something calls the Heroku app
- The Heroku app uses
urllib2.urlopen
to call a Google-GTFS api and the python script parses this data using the GTFS python module - Then the python returns (
json.dumps
) JSON
Issue
I've run a blitz.io test on this service with with 30 concurrent users and I get a bunch of timeout issues.
The heroku logs show a bunch of these errors
2013-10-13T02:30:20.101085+00:00 heroku[router]: at=error
code=H19 desc="Backend connection timeout" method=GET path=myapppath myappurl fwd=ipaddress dyno=web.1 connect=5001ms service= status=503 bytes=
Question
How do I fix this?