如何解决uwsgi django跳过记录特定端点
我正在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 举报,一经查实,本站将立刻删除。