网页 综合 更新时间 2026-11-17 05:41:52

Control Interface (gunicornc) - Gunicorn

自动蜘蛛 gunicorn.org 正文约 1016 字
Gunicorn provides a control interface similar to birdc for the BIRD routing daemon. This allows you to inspect and manage a running Gunicorn instance via a Unix socket.
The control interface consists of two parts:
By default, Gunicorn creates the control socket at $XDG_RUNTIME_DIR/gunicorn.ctl. If XDG_RUNTIME_DIR is unset or does not point to an existing directory, it falls back to $HOME/.gunicorn/gunicorn.ctl:
Or specify a custom path:
When run without the -c flag, gunicornc enters interactive mode with readline support:
Per-App Worker Limits
When using dirty add, workers only load apps that haven't reached their worker limits. If all apps are at their limits, no new workers will be spawned. The response will include a reason field explaining this.
Use the -j flag for JSON output when scripting:
The control socket uses filesystem permissions for access control:
To allow group access:
To disable the control socket entirely:
The control interface uses a JSON-based protocol with length-prefixed framing:
访问原文 返回搜索 https://gunicorn.org/guides/gunicornc/
本页为82搜索生成的网页快照,内容来自站内索引;演示数据的原文链接仅作示例。