From f18162fe2ad2506b880ae87e9f0ae33ad270a37b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Leloup=20Lo=C3=AFc=20=28lole=29?= Date: Fri, 8 Sep 2023 17:00:00 +0200 Subject: [PATCH] [IMP] cli: add unit to memory options The documentation is unclear about the unit used for the --limit-memory-soft and --limit-memory-hard options of odoo-bin. The unit used is bytes, but it isn't mentioned and the default unit is shown in mebibytes, causing confusion. closes odoo/documentation#5794 X-original-commit: 9fadc3355d6136e40b8e59373c1ac98a26b29f3f Signed-off-by: Antoine Vandevenne (anv) --- content/developer/reference/cli.rst | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/content/developer/reference/cli.rst b/content/developer/reference/cli.rst index f6cffa30e..ec77e044f 100644 --- a/content/developer/reference/cli.rst +++ b/content/developer/reference/cli.rst @@ -559,18 +559,18 @@ Multiprocessing .. option:: --limit-memory-soft - Maximum allowed virtual memory per worker. If the limit is exceeded, + Maximum allowed virtual memory per worker in bytes. If the limit is exceeded, the worker is killed and recycled at the end of the current request. - Defaults to *2048MiB*. + Defaults to *2048MiB (2048\*1024\*1024B)*. .. option:: --limit-memory-hard - Hard limit on virtual memory, any worker exceeding the limit will be + Hard limit on virtual memory in bytes, any worker exceeding the limit will be immediately killed without waiting for the end of the current request processing. - Defaults to *2560MiB*. + Defaults to *2560MiB (2560\*1024\*1024B)*. .. option:: --limit-time-cpu