Update Measurements app in yc-ecp: configure custom gunicorn command with access log settings

This commit is contained in:
emelinda 2026-08-05 01:39:43 +03:00
parent d46ba48d22
commit d5884d3a3b

View File

@ -58,6 +58,14 @@ spec:
port:
_default: 8000
# entrypoint.sh запускает gunicorn без --access-logfile, поэтому
# запросы не попадают в лог; подменяем команду целиком
command:
_default: ["/bin/bash", "-ec"]
args:
_default:
- gunicorn -w 4 -k uvicorn.workers.UvicornWorker -b 0.0.0.0:8000 --timeout 240 --access-logfile - --access-logformat '%(h)s "%(r)s" %(s)s %(b)s %(M)sms' measurements.main:app
resources:
requests:
cpu: