Heroku H18 503 "Requested Interruptions"

I see a lot of these. I understand what they mean, so I can’t understand why this is happening. Very inconsistent and not a timeout problem.

Relevant:

  • Php / Laravel / Postgres Heroku
  • I force SSL
  • i route / to / anotherroute
  • I can not replicate with any of the clients.
  • The route is not always the same, sometimes a simple asset download
  • I did not see application error messages
  • sock = customer
  • Service time always <1 second

Some log data:

Oct 29 18:22:12 myapp-web-production heroku / router: sock = client at = error code = H18 desc = "Request Interrupted" method = GET path = "/ aroute" host = ... request_id = ... fwd = "##. ##. ##. ###" dyno = web.1 connect = 2ms service = 34ms status = 503 bytes = 3816

October 29 18:22:13 myapp-web-production heroku / router: sock = client at = error code = H18 desc = "Request Interrupted" method = GET path = "/ aroute" host = ... request_id = ... fwd = "##. ##. ##. ###" dyno = web.1 connect = 1ms service = 538ms status = 503 bytes = 3822

Oct 29 18:22:14 myapp-web-production heroku / router: sock = client at = error code = H18 desc = "Request Interrupted" method = GET path = "/ aroute" host = ... request_id = ... fwd = "##. ##. ##. ###" dyno = web.1 connect = 1ms service = 406ms status = 503 bytes = 13927

I am stuck. Any help would be appreciated.

+6
source share
1 answer

I take the sock=client attribute to mean that the client just disconnects before the server can respond. We can reproduce this by adding an artificial delay of 10 s for the handler, and then, for example, requesting the endpoint in a web browser and closing it before the server can respond.

We simply filter out all H18 with sock=client from our logs.

+6
source

Source: https://habr.com/ru/post/977452/


All Articles