3 ms·
This is the blog post I was referring to http://genius.com/James-somers-herokus-ugly-secret-annotated http://genius.com/James-somers-herokus-ugly-secret-annotat
by chrisseaton 11y ago
This is the blog post I was referring to http://genius.com/James-somers-herokus-ugly-secret-annotated http://genius.com/James-somers-herokus-ugly-secret-annotated and the key graph http://images.rapgenius.com/75aa2143d3e9bf6b769fc9066f6c40c8.798x399x1.png http://images.rapgenius.com/75aa2143d3e9bf6b769fc9066f6c40c8....
Is that non-typical? Or am I mis-interpreting the graph? (Genuine questions, I've never done any web app operations.)
- coldtea 11y agoThat graph still shows time to process/respond, not CPU utilization. From the article the slowness is when "a dyno is tied up due to a long-running request" -- so, we they are probably still talking about slow IO operations, and servers running on the dyno that are not async to free it up in between. From Heroku's one optimization page: "Most applications are not CPU-bound on the web server". https://devcenter.heroku.com/articles/optimizing-dyno-usage https://devcenter.heroku.com/articles/optimizing-dyno-usage (And Heroku might be an outlier in having high real-cpu use too, as they tend to over-provision).
- chrisseaton 11y agoBut the graph shows time in waiting on web requests (dark green), time waiting on cache (teal), time waiting on the database (brown) and time queued before the interpreter gets the request (light green) separately to time spent running the Ruby interpreter. It's a cumulative graph. So if the IO isn't web requests, cache, database or waiting in a queue, what can the interpreter be waiting on? Local files?