AWS Elastic Beanstalk通知-环境运行状况已从“正常”过渡到“警告”

时间:2019-02-09 06:45:08

标签: amazon-elastic-beanstalk

我一直收到以下消息。但是我的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"

谢谢。

1 个答案:

答案 0 :(得分:0)

示例原因可能是

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