uvicorn/docs
Jonas Haag a01a33eb8f
Add --limit-max-requests-jitter to stagger worker restarts (#2707)
* feat: max_requests_jitter

* format

* type check

* Fix test

* Add type annotation for `Server.limit_max_requests`

Mypy infers `int` from the first branch and errors on the `None`
assignment in the else branch.

* Use `cached_property` for `Server.limit_max_requests`

Keeps `__init__` clean by moving the jitter computation out.

* Document `--limit-max-requests-jitter` setting

---------

Co-authored-by: Marcelo Trylesinski <marcelotryle@gmail.com>
2026-02-15 20:52:08 +00:00
..
concepts Add section about event loop (#2725) 2025-10-12 16:43:26 +01:00
deployment chore: rename master branch to main (#2691) 2025-09-13 07:09:03 +00:00
img Add contributing page to the docs (#1197) (#1224) 2021-11-23 16:22:22 +01:00
overrides docs: redirect uvicorn.org to uvicorn.dev (#2705) 2025-09-21 13:53:12 +00:00
plugins Update repository references from 'encode' to 'Kludex' across documentation and configuration files (#2684) 2025-09-10 21:48:53 +02:00
CNAME Add CNAME 2019-03-13 14:13:28 +00:00
contributing.md chore: drop mention to scripts/publish (#2696) 2025-09-20 00:54:06 +00:00
index.md Add discord to README (#2718) 2025-10-02 18:49:43 +00:00
installation.md docs: add installation section (#2661) 2025-07-06 17:12:34 +02:00
release-notes.md fix typos (#2800) 2026-02-02 10:33:31 +00:00
server-behavior.md docs: add note about server behavior on exceptions (#2535) 2024-12-14 10:58:09 +01:00
settings.md Add --limit-max-requests-jitter to stagger worker restarts (#2707) 2026-02-15 20:52:08 +00:00
sponsorship.md Update repository references from 'encode' to 'Kludex' across documentation and configuration files (#2684) 2025-09-10 21:48:53 +02:00
uvicorn.png uvicorn image 2017-06-06 13:11:21 +01:00