我最近将我的 Django API 后端部署到 AWS EB 到他们的 Linux 2 系统(确切的平台名称是Python 3.7 running on 64bit Amazon Linux 2)。
几乎一切都按预期工作,但我的应用程序运行状况是Severe,经过数小时的调试,我不知道为什么。
正在使用以下端点(django-health-check模块)处理应用程序的健康检查。
url(r'^ht/', include('health_check.urls'))
Run Code Online (Sandbox Code Playgroud)
100% 的请求的状态代码为 ,200但我的整体健康状况如下:
|--------------------|----------------|---------------------------------------------------|
| instance-id | status | cause |
|--------------------|----------------|---------------------------------------------------|
| Overall | Degraded | Impaired services on all instances. |
| i-0eb89f... | Severe | Following services are not running: release. |
|--------------------|----------------|---------------------------------------------------|
Run Code Online (Sandbox Code Playgroud)
最奇怪的是,这条消息Following services are not running: release.是互联网独有的(似乎以前没有人遇到过这样的问题)。
另一个奇怪的事情是我的/var/log/healthd/daemon.log文件的内容类似于
W, [2020-07-21T09:00:01.209091 #3467] WARN …Run Code Online (Sandbox Code Playgroud) django health-monitoring amazon-ec2 amazon-web-services amazon-elastic-beanstalk