【问题标题】:AWS Elastic Beanstalk Notification - Environment health has transitioned from Ok to WarningAWS Elastic Beanstalk 通知 - 环境运行状况已从正常转变为警告
【发布时间】:2019-07-03 09:00:41
【问题描述】:

我不断收到以下消息。但是我的nginx 日志中没有任何内容表明请求返回状态为5xx。此外,应用程序似乎按预期工作。任何指示为什么我可能会得到这些?

留言:

环境运行状况已从“正常”转变为“警告”。 50.0% 的请求以 HTTP 5xx 失败。请求率(12.0 个请求/分钟)不足以确定应用程序的运行状况。 2 个实例中有 1 个受到影响。有关详细信息,请参阅实例运行状况。

eb 日志大约在同一时间显示以下事件。它们看起来像是一次黑客攻击。我的猜测是这些 POST 请求失败使 EB 认为实例不健康。任何建议,我们如何防止这种情况?谢谢。

2019/02/10 23:49:37 [error] 3263#0: *23308 upstream prematurely closed connection while reading response header from upstream, client: 172.31.35.221, server: , request: "POST /51314.php HTTP/1.1", upstream: "http://172.17.0.2:80/51314.php", host: "xxx.xxx.xxx.xxx"

2019/02/10 23:49:37 [error] 3263#0: *23308 upstream prematurely closed connection while reading response header from upstream, client: 172.31.35.221, server: , request: "POST /fusheng.php HTTP/1.1", upstream: "http://172.17.0.2:80/fusheng.php", host: "xxx.xxx.xxx.xxx"

2019/02/10 23:49:38 [error] 3263#0: *23308 upstream prematurely closed connection while reading response header from upstream, client: 172.31.35.221, server: , request: "POST /repeat.php HTTP/1.1", upstream: "http://172.17.0.2:80/repeat.php", host: "xxx.xxx.xxx.xxx"

2019/02/10 23:49:39 [error] 3263#0: *23308 upstream prematurely closed connection while reading response header from upstream, client: 172.31.35.221, server: , request: "POST /api.php HTTP/1.1", upstream: "http://172.17.0.2:80/api.php", host: "xxx.xxx.xxx.xxx"

2019/02/10 23:49:40 [error] 3263#0: *23308 upstream prematurely closed connection while reading response header from upstream, client: 172.31.35.221, server: , request: "POST /xiaodai.php HTTP/1.1", upstream: "http://172.17.0.2:80/xiaodai.php", host: "xxx.xxx.xxx.xxx"

2019/02/10 23:49:40 [error] 3263#0: *23308 upstream prematurely closed connection while reading response header from upstream, client: 172.31.35.221, server: , request: "POST /xiaodai.php HTTP/1.1", upstream: "http://172.17.0.2:80/xiaodai.php", host: "xxx.xxx.xxx.xxx"

谢谢。

【问题讨论】:

    标签: amazon-elastic-beanstalk


    【解决方案1】:

    示例原因可以是

    • nginx 代理在实例上崩溃
    • 实例上的 CPU 使用率高
    • 实例上的高内存使用率
    • 实例上部署失败

    【讨论】:

    • 对不起。可能应该在原帖中提到。这些都不是原因。我检查过。谢谢。
    猜你喜欢
    • 2015-11-16
    • 2018-04-01
    • 2015-08-05
    • 2021-01-16
    • 2014-04-29
    • 2018-11-07
    • 1970-01-01
    • 2016-09-06
    • 2020-10-13
    相关资源
    最近更新 更多