我已经将一个简单的应用程序上传到 Heroku,它工作正常,但是,一段时间后它停止工作并且所有 GET 请求都会被阻止。
我收到此错误:
2011-05-13T13:04:11+00:00 app[web.1]: Started GET "/api/v1/69399ead0ed4ded38e7a101f7c8faf/2011-2-1.json" for 81.84.100.109 at Fri May 13 06:04:11 -0700 2011
2011-05-13T13:04:11+00:00 app[web.1]: Processing by ApiController#api_bounces as JSON
2011-05-13T13:04:11+00:00 app[web.1]: Parameters: {"api_id"=>"69399ead0ed4ded38e7a101f7c8faf", "init"=>"2011-2-1"}
2011-05-13T13:04:57+00:00 heroku[router]: Error H11 (Backlog too deep) -> GET bapi.heroku.com/favicon.ico dyno=none queue=0 wait=0ms service=0ms bytes=0
2011-05-13T13:05:05+00:00 heroku[router]: Error H12 (Request timeout) -> GET bapi.heroku.com/api/v1/69399ead0ed4ded38e7a101f7c8faf/2011-2-1.json dyno=web.1 queue=0 wait=0ms service=0ms bytes=0
2011-05-13T13:05:20+00:00 heroku[router]: Error H12 (Request timeout) -> GET bapi.heroku.com/api/v1/69399ead0ed4ded38e7a101f7c8faf/2011-2-1.json dyno=web.1 queue=0 wait=0ms service=0ms bytes=0
2011-05-13T13:05:36+00:00 heroku[router]: Error H12 (Request timeout) -> GET bapi.heroku.com/favicon.ico dyno=web.1 queue=0 wait=0ms service=0ms bytes=0
2011-05-13T13:05:36+00:00 heroku[router]: Error H12 (Request timeout) -> GET bapi.heroku.com/api/v1/69399ead0ed4ded38e7a101f7c8faf/2011-2-1.json dyno=web.1 queue=0 wait=0ms service=0ms bytes=0
我不明白为什么,这在其他应用程序中从未发生过。
您遇到积压工作太深的错误。您是否在单个测功机上运行?您的上传将消耗该测功机,因此任何其他请求都将排队。
http://devcenter.heroku.com/articles/backlog-too-deep
John。