Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Heroku | how to read router logs

So my typical router log on the Cedar platform looks might look like

2012-03-22T18:26:34+00:00 heroku[router]: GET [my_url] dyno=web.9 queue=0 wait=0ms service=228ms status=302 bytes=212
2012-03-22T18:26:36+00:00 heroku[router]: GET [my_url] dyno=web.7 queue=0 wait=0ms service=23ms status=200 bytes=360
2012-03-22T18:26:45+00:00 heroku[router]: GET [my_url] dyno=web.30 queue=0 wait=0ms service=348ms status=201 bytes=1

I want to confirm my understanding of the terms queue, wait and service

My initial thoughts where that:

  • queue: The name of the queue if using background_job or resque
  • wait: how long is the request waiting in the router (Request Queueing in New Relic)
  • service: how long it actually takes your application to handle the request (not including queing time)

But my wait in my logs is always 0ms. Even if I have significant backlog.

Are my definitions wrong?

like image 442
Jonathan Avatar asked Mar 22 '12 19:03

Jonathan


1 Answers

  • Queue: The number of requests waiting to be processed by a dyno.
  • Wait: The length of time this request sat in the queue before being processed.
  • Service: The processing time of the request.

Your total response time will be wait + service.

like image 194
Douglas F Shearer Avatar answered Oct 14 '22 13:10

Douglas F Shearer