mirror of
https://github.com/frappe/gunicorn.git
synced 2026-01-14 11:09:11 +08:00
Tweak max_requests_jitter docs a bit.
- Added a versionadded directive - Added a news item
This commit is contained in:
parent
94d931956e
commit
8b83a285cd
@ -11,6 +11,8 @@ Core
|
|||||||
++++
|
++++
|
||||||
|
|
||||||
- fix `#863 <https://github.com/benoitc/gunicorn/issues/863>`_: fix race condition error.
|
- fix `#863 <https://github.com/benoitc/gunicorn/issues/863>`_: fix race condition error.
|
||||||
|
- fix `#862 <https://github.com/benoitc/gunicorn/pull/862>`_: add ``max_requests_jitter``
|
||||||
|
configuration option.
|
||||||
|
|
||||||
Logging
|
Logging
|
||||||
+++++++
|
+++++++
|
||||||
|
|||||||
@ -152,12 +152,14 @@ max_requests_jitter
|
|||||||
* ``--max-requests-jitter INT``
|
* ``--max-requests-jitter INT``
|
||||||
* ``0``
|
* ``0``
|
||||||
|
|
||||||
The maximum jitter to add to the max_requests setting.
|
The maximum jitter to add to the max-requests setting.
|
||||||
|
|
||||||
The jitter causes the restart per worker to be randomized by
|
The jitter causes the restart per worker to be randomized by
|
||||||
``randint(0, max_requests_jitter)``. This is intended to stagger worker
|
``randint(0, max_requests_jitter)``. This is intended to stagger worker
|
||||||
restarts to avoid all workers restarting at the same time.
|
restarts to avoid all workers restarting at the same time.
|
||||||
|
|
||||||
|
.. versionadded:: 19.2
|
||||||
|
|
||||||
timeout
|
timeout
|
||||||
~~~~~~~
|
~~~~~~~
|
||||||
|
|
||||||
|
|||||||
@ -640,8 +640,10 @@ class MaxRequestsJitter(Setting):
|
|||||||
The maximum jitter to add to the max-requests setting.
|
The maximum jitter to add to the max-requests setting.
|
||||||
|
|
||||||
The jitter causes the restart per worker to be randomized by
|
The jitter causes the restart per worker to be randomized by
|
||||||
randint(0, max_requests_jitter). This is intended to stagger worker
|
``randint(0, max_requests_jitter)``. This is intended to stagger worker
|
||||||
restarts to avoid all workers restarting at the same time.
|
restarts to avoid all workers restarting at the same time.
|
||||||
|
|
||||||
|
.. versionadded:: 19.2
|
||||||
"""
|
"""
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user