为什么我的渲染json:数据请求在Heroku上突然变慢? [英] Why are my render json: data requests suddenly slow on Heroku?

查看:132
本文介绍了为什么我的渲染json:数据请求在Heroku上突然变慢?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

这是一个模糊的问题,但希望有人能够认识到它。



今天有一段时间,我在Heroku上以JSON形式回应的所有请求都非常缓慢。定期的HTML请求没问题......它只是我的控制器使用呈现json:XXX ,似乎需要1分钟才能做出响应。我没有更新我的应用程序,或在系统内更改任何内容。



这种症状对任何人都响了吗?或者任何人都可以给我如何进一步诊断的建议?



我知道这不是数据库,因为我做了一个简单的路由,它只是返回一个字符串作为JSON对象,甚至该路由也需要1分钟才能响应。编辑:我最近做的唯一的事情是升级到2个网页dynos。编辑:我最近做的唯一的事情是升级到2个网页dynos。但我用2个dynos进行了简短的测试,并且所有的东西似乎都能正常工作......

编辑2:让它变得更加怪异...日志显示请求速度非常快!但它只是不会在浏览器上显示好一分钟左右。 wtf?




Jul 12 05:26:08 appbeta app / web.2:UsersController处理#显示为JSON
Jul 12 05:26:08 appbeta app / web.2:参数:{id=>test_user}
Jul 12 05:26:08 appbeta app / web.2:Completed 200 OK在24ms(查看:0.4ms)



但它并没有在我的屏幕上显示整整一分钟。

解决方案

解决。这是一个Heroku平台问题。



https:/ /status.heroku.com/incidents/649

 调查
我们的自动系统检测到潜在平台错误。
我们正在调查。

发布于七月12,2014 23:38 UTC


This is a vague question, but hoping someone just recognizes it.

Sometime today, all my requests that respond as JSON on Heroku are incredibly slow. Regular HTML requests are fine... it's just my controllers that use render json: XXX that seem to take 1 minute to respond. I didn't update my app, or change ANYTHING at all within the system.

Does this symptom ring a bell for anyone? Or can anyone give me advice on how to further diagnose?

I know it's not the database, because I made a simple route that just returned a string as a JSON object, and even that route takes 1 min to respond.

Here's hoping.

EDIT: The only thing I did lately was upgrade to 2 web dynos. But I tested briefly with 2 dynos and everything seemed to be working fine...

EDIT2: To make it weirder... logging reveals the request is very fast!! But it just doesn't display on the browser for a good minute or so. wtf?

Jul 12 05:26:08 appbeta app/web.2: Processing by UsersController#show as JSON Jul 12 05:26:08 appbeta app/web.2: Parameters: {"id"=>"test_user"} Jul 12 05:26:08 appbeta app/web.2: Completed 200 OK in 24ms (Views: 0.4ms)

Like, this request occurs... fast right? But it doesn't show on my screen for a whole minute or so.

解决方案

Resolved. It was a Heroku platform issue.

https://status.heroku.com/incidents/649

Investigating
Our automated systems have detected potential platform errors. 
We are investigating.

Posted Jul 12, 2014 23:38 UTC

这篇关于为什么我的渲染json:数据请求在Heroku上突然变慢?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆