我正在运行 Puma 2.8.2 服务器来 stub 我的一些后端服务。有时 Puma 服务器会无缘无故地死掉。
error.log 中没有错误,下面是 access.log 的摘录:
10.210.140.21 - - [15/Oct/2014 09:28:22] "GET /status HTTP/1.1" 200 - 0.0030
- Gracefully stopping, waiting for requests to finish
- Goodbye!
=== puma startup: 2014-10-15 09:28:24 +0100 ===
10.210.140.21 - - [15/Oct/2014 09:28:24] "GET /status HTTP/1.1" 200 - 0.0254
有什么想法会导致这种情况吗?
最佳答案
如果这个问题在 Heroku 中出现并且您使用的是 Heroku 免费测功机,那么问题是您使用的是免费测功机。因为您的应用会在闲置 30 分钟后进入休眠状态。
您可以在以下链接找到更多信息:
关于ruby - Puma 服务器无故死机,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/26592150/