Skip to content

Commit

Permalink
Docstring updated for set_memory_limits()
Browse files Browse the repository at this point in the history
  • Loading branch information
idlesign committed Nov 15, 2017
1 parent 3a21fe1 commit 2d4e284
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion uwsgiconf/options/workers_cheapening.py
Original file line number Diff line number Diff line change
Expand Up @@ -212,12 +212,15 @@ def set_memory_limits(self, rss_soft=None, rss_hard=None):
:param int rss_soft: Don't spawn new workers if total resident memory usage
of all workers is higher than this limit in bytes.
.. warning:: This option expects memory reporting enabled:
``.logging.set_basic_params(memory_report=1)``
:param int rss_hard: Try to stop workers if total workers resident memory usage
is higher that thi limit in bytes.
"""
self._set('cheaper-rss-limit-soft', rss_soft)
self._set('cheaper-rss-limit-soft', rss_soft)
self._set('cheaper-rss-limit-hard', rss_hard)

return self._section
Expand Down

0 comments on commit 2d4e284

Please sign in to comment.