Explorar el Código

Document that worker_max_memory_per_child is in kilobytes. Closes #3466

Ask Solem hace 8 años
padre
commit
17f8ede92c
Se han modificado 1 ficheros con 8 adiciones y 1 borrados
  1. 8 1
      docs/userguide/configuration.rst

+ 8 - 1
docs/userguide/configuration.rst

@@ -1902,12 +1902,19 @@ it's replaced with a new one. Default is no limit.
 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
 
 Default: No limit.
+Type: int (kilobytes)
 
-Maximum amount of resident memory that may be consumed by a
+Maximum amount of resident memory, in kilobytes, that may be consumed by a
 worker before it will be replaced by a new worker. If a single
 task causes a worker to exceed this limit, the task will be
 completed, and the worker will be replaced afterwards.
 
+Example:
+
+.. code-block:: python
+
+    worker_max_memory_per_child = 12000  # 12MB
+
 .. setting:: worker_disable_rate_limits
 
 ``worker_disable_rate_limits``