Tweak max_requests_jitter docs a bit.

- Added a versionadded directive
- Added a news item
This commit is contained in:
Berker Peksag 2014-10-03 16:42:12 +03:00
parent 94d931956e
commit 8b83a285cd
3 changed files with 8 additions and 2 deletions

View File

@ -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
+++++++ +++++++

View File

@ -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
~~~~~~~ ~~~~~~~

View File

@ -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
""" """