我在 Beanstalk 上安装了 WordPress,并安装了 EC2 和 RDS。我对 AWS 还很陌生。昨天,网站变得没有响应,状态为“未从实例收到数据”。当我尝试请求完整日志时,它超时了。我无法通过 FTP 或 SSH 进入实例,因为它也超时了。我唯一看到的是系统日志,但我没有看到任何让我眼前一亮的东西。
查看事件,问题似乎从 4xx 错误开始,然后变成 5xx 错误。
以下是条目:
2019-02-14 12:10:55 UTC-0500 WARN Environment health has transitioned from Ok to Severe. None of the instances are sending data.
2019-02-12 22:54:41 UTC-0500 INFO Environment health has transitioned from Warning to Ok.
2019-02-12 22:53:41 UTC-0500 WARN Environment health has transitioned from Ok to Warning. 100.0 % of the requests are failing with HTTP 5xx.
2019-02-12 22:45:42 UTC-0500 INFO Environment health has transitioned from Warning to Ok.
2019-02-12 22:44:42 UTC-0500 WARN Environment health has transitioned from Ok to Warning. 100.0 % of the requests are failing with HTTP 5xx.
2019-02-12 14:21:19 UTC-0500 INFO Environment health has transitioned from Severe to Ok.
2019-02-12 14:20:19 UTC-0500 WARN Environment health has transitioned from Ok to Severe. None of the instances are sending data.
2019-02-12 10:31:36 UTC-0500 INFO Environment health has transitioned from Severe to Ok.
2019-02-12 10:30:36 UTC-0500 WARN Environment health has transitioned from Ok to Severe. 97.2 % of the requests are erroring with HTTP 4xx.
我不知道根本问题是什么。任何帮助或指导都将不胜感激。
答案1
我遇到过类似的问题,比如无法使用 SSH,也无法在 beanstalk 控制台中看到日志。问题是由于我的 t2.mini 实例导致内存不足。将实例类型更改为 t2.small 甚至 t2.medium,问题应该会得到解决(除非您的内存不足是由某些编码错误引起的)