gpt4 book ai didi

ruby - Puma 服务器无故死机

转载 作者:数据小太阳 更新时间:2023-10-29 07:08:29 24 4
gpt4 key购买 nike

我正在运行 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 分钟后进入休眠状态。

您可以在以下链接找到更多信息:

https://devcenter.heroku.com/articles/free-dyno-hours

关于ruby - Puma 服务器无故死机,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/26592150/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com