问题描述
我正在Docker中使用 Dockerfile 和 uWWsgi 使用 Django 2.2 来运行应用程序
...
EXPOSE 8000
## Tell uWsgi where to find your wsgi file:
ENV UWsgi_Wsgi_FILE=qcg/wsgi.py
# Base uWsgi configuration (you shouldn't need to change these):
ENV UWsgi_HTTP=:8000 UWsgi_MASTER=1 UWsgi_HTTP_AUTO_CHUNKED=1 UWsgi_HTTP_KEEPALIVE=1 UWsgi_LAZY_APPS=1 UWsgi_Wsgi_ENV_BEHAVIOR=holy
# Number of uWsgi workers and threads per worker (customize as needed):
ENV UWsgi_WORKERS=2 UWsgi_THREADS=4
# uWsgi static file serving configuration (customize or comment out if not needed):
ENV UWsgi_STATIC_MAP="/static/=/static_cdn/static_root/" UWsgi_STATIC_EXPIRES_URI="/static/.*\.[a-f0-9]{12,}\.(css|js|png|jpg|jpeg|gif|ico|woff|ttf|otf|svg|scss|map|txt) 315360000"
应用已通过具有上述uWsgi配置的Dockerfile部署在AWS ECS上。
已将负载均衡器配置为在/ping/
进行运行状况检查,并以200状态码作为响应返回pong
。
AWS CloudWatch日志中充满了/ping/
请求,使得难以在AWS CloudWatch中分析日志。
是否可以将这些ping日志移至其他Log Group
或从日志中跳过?
解决方法
暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!
如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。
小编邮箱:dio#foxmail.com (将#修改为@)