Technologies/NGINX/gunicorn.log.critical
NGINXNGINXMetric

gunicorn.log.critical

Number of critical log messages
Dimensions:None

Technical Annotations (23)

Configuration Parameters (7)
--timeoutrecommended: 600
Worker timeout in seconds; default 30 is too low for most App Service scenarios
--access-logfilerecommended: '-'
Writes access logs to stdout for App Service log collection
--error-logfilerecommended: '-'
Writes error logs to stderr for App Service log collection
appendfsyncrecommended: no
Redis parameter; use 'no' instead of 'everysec' to prevent blocking disk writes
preload_apprecommended: True
Required in Gunicorn config when using custom Dockerfile on Cloud Run to eliminate timeout cycle
timeoutrecommended: 1200
User tested 20-minute timeout but it only延ed each worker death—did not resolve root cause
-wrecommended: 4 (or (2 × CPU cores) + 1)
Worker count; insufficient workers cause timeouts under load
Error Signatures (7)
[CRITICAL] WORKER TIMEOUT (pid:log pattern
500http status
WORKER TIMEOUT (pid:log pattern
Worker (pid:*) was sent SIGKILL! Perhaps out of memory?log pattern
upstream prematurely closed connection while reading response header from upstreamlog pattern
502http status
Worker exiting (pid:log pattern
CLI Commands (2)
--access-logfilediagnostic
-w 4remediation
Technical References (7)
master/child process modelconceptApp Service LinuxcomponentGoogle App EnginecomponentGoogle Cloud RuncomponentB2 instance classcomponentgthread workercomponentgunicorn workercomponent
Related Insights (5)
Worker killed when timeout setting too low or missingcritical
Redis appendfsync blocking causes Gunicorn worker timeoutcritical
Database connectivity issues cause Gunicorn worker timeoutcritical
Gunicorn workers enter infinite timeout-SIGKILL cycle on Google App Enginecritical
Gunicorn worker timeout causes 20-30 second page delayscritical