Core directives
worker_shutdown_timeout directive
Main context; no documented default; introduced in 1.11.11. Limits graceful worker shutdown duration; Nginx attempts to close remaining open connections at expiry. Partial snippet, not a universal tuning recommendation.
Formal Syntax & Structure
nginx syntaxnginx
worker_shutdown_timeout time;Parameters & Attributes
| Name | Type | Description |
|---|---|---|
| time | duration | Graceful shutdown timeout |
Working Example
Example Snippetnginx
worker_shutdown_timeout 10s;