7

I'm wondering what is the best way to track unicorn timeouts from my app.

There are some bits of the app which are slow and they currently timeout quietly. I could increase the timeout but that is shoving the problem under the carpet. Ideally, I would like to get an airbrake notification or something of that effect. I'm not looking for a performance guide, just a way to efficiently and reliably get informed about timeouts.

How have other people handled timeouts from their rails app using unicorn? scan the nginx error log? plug in a handler in unicorn config? handler in nginx config?

[Ubuntu 12.04+nginx+unicorn+rails 3.2+ruby 1.9.3]

4

2 回答 2

0

请参阅 Unicorn 手册网站的“配置器”部分。有一系列关于积压和超时的项目应该可以为您提供所需的控制。

于 2012-10-29T02:53:25.050 回答
0

我倾向于在New Relic上创建一个帐户,使用他们的newrelic_rpmgem 并在他们的 Web 应用程序中收集与此问题相关的性能数据。NR 提供对这种情况有用的免费帐户级别。

使用这种有点懒惰的检测方法的好处是双重的:在您的应用程序中不需要自定义检测实现;并且无需检查您的下游网络服务器日志中是否存在 503 服务器错误。

于 2012-10-24T07:40:47.033 回答