Is it possible to configure the request timeout on heroku?
I have some report queries that that take longer than the default 30 seconds heroku provides. Ideally, I’d like to set it for specific requests (just the reports).
Thanks.
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Heroku seems to encourage responses of 500ms or less. Since they don’t mention altering the request timeout on that page my guess would be that they don’t support changing it (though you could ask Heroku Support).
What kind of work are you doing for your report?
Can you run calculation work in a background job and store the result? (e.g. in memcache, in another table in your database, etc) How up-to-date does the information need to be?
Can you speed up your query? What does your query plan look like? Is there room for improvement by changing how the data is queried or adding indexes?
Would an approach like HTTP streaming help?
I would suggest trying approaches 1 or 2 first and seeing if they help. If you give us more detail on what exactly you’re doing we may be able to help more.