Skip to content

bug: The recommended value for worker_shutdown_timeout is 240 seconds. #1853

Description

@Miss-you

Issue description

current

  worker_shutdown_timeout: 3s     # timeout for a graceful shutdown of worker processes

https://github.com/apache/incubator-apisix/blob/master/conf/config.yaml#L104

recommendation

  worker_shutdown_timeout: 240s     # timeout for a graceful shutdown of worker processes

reasons:

  1. 3 seconds is too short, once a graceful restart will quickly disconnect the long connection
  2. The default value for nginx ingress is 240 seconds.

image

Environment

  • apisix version (cmd: apisix version):
  • OS:

Minimal test code / Steps to reproduce the issue

What's the actual result? (including assertion message & call stack if applicable)

What's the expected result?

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions