Python 我的Django应用程序在AWS Elastic Beanstalk上使用sigterm一段时间后失败

Python 我的Django应用程序在AWS Elastic Beanstalk上使用sigterm一段时间后失败,python,django,amazon-web-services,Python,Django,Amazon Web Services,我在AWS Elastic Beanstalk中部署了一个Django应用程序。有时它可以工作,但在一些请求之后,它停止工作并读取返回的日志: [Thu Feb 27 21:59:12.073643 2020] [mpm_prefork:notice] [pid 3195] AH00169: caught SIGTERM, shutting down [Thu Feb 27 21:59:13.429395 2020] [suexec:notice] [pid 3568] AH01232:

我在AWS Elastic Beanstalk中部署了一个Django应用程序。有时它可以工作,但在一些请求之后,它停止工作并读取返回的日志:

 [Thu Feb 27 21:59:12.073643 2020] [mpm_prefork:notice] [pid 3195] AH00169: caught SIGTERM, 
 shutting down
 [Thu Feb 27 21:59:13.429395 2020] [suexec:notice] [pid 3568] AH01232: suEXEC mechanism enabled 
 (wrapper: /usr/sbin/suexec)
 [Thu Feb 27 21:59:13.495004 2020] [so:warn] [pid 3568] AH01574: module wsgi_module is already 
 loaded, skipping
[Thu Feb 27 21:59:13.534589 2020] [http2:warn] [pid 3568] AH10034: The mpm module (prefork.c) is 
not supported by mod_http2. The mpm determines how things are processed in your server. HTTP/2 has 
more demands in this regard and the currently selected mpm will just not do. This is an advisory 
warning. Your server will continue to work, but the HTTP/2 protocol will be inactive.
[Thu Feb 27 21:59:13.534607 2020] [http2:warn] [pid 3568] AH02951: mod_ssl does not seem to be 
enabled
[Thu Feb 27 21:59:13.535166 2020] [lbmethod_heartbeat:notice] [pid 3568] AH02282: No slotmem from 
mod_heartmonitor
[Thu Feb 27 21:59:13.535239 2020] [:warn] [pid 3568] mod_wsgi: Compiled for Python/3.6.2.
[Thu Feb 27 21:59:13.535252 2020] [:warn] [pid 3568] mod_wsgi: Runtime using Python/3.6.8.
[Thu Feb 27 21:59:13.539566 2020] [mpm_prefork:notice] [pid 3568] AH00163: Apache/2.4.41 (Amazon) 
mod_wsgi/3.5 Python/3.6.8 configured -- resuming normal operations
[Thu Feb 27 21:59:13.539582 2020] [core:notice] [pid 3568] AH00094: Command line: '/usr/sbin/httpd 
-D FOREGROUND'
你能帮我了解一下问题出在哪里吗


谢谢

听起来您的应用程序(或Apache?)被要求关闭。您是否意识到任何可能停止或替换它的自动化?各种日志(您的应用程序、Apache、Elastic Beanstalk)是否表明有什么有用的东西?您好,jarmod,没有。我认为没有自动停止它。sigterm日志可能是Apache的正常行为,终止了工作人员。@jarmod,这里的问题是django应用程序似乎有正常行为,但它变得非常缓慢,难以使用,当出现这些问题时,日志也会返回:脚本在返回头之前超时:wsgi.py听起来像是您的应用程序(或Apache?)被要求关闭。您是否意识到任何可能停止或替换它的自动化?各种日志(您的应用程序、Apache、Elastic Beanstalk)是否表明有什么有用的东西?您好,jarmod,没有。我认为没有自动停止它。sigterm日志可能是Apache的正常行为,终止了工作人员。@jarmod,这里的问题是django应用程序似乎有正常行为,但它变得非常缓慢,难以使用,当出现这些问题时,日志还会返回:脚本在返回头之前超时:wsgi.py