From b47ddb0186eae69bca09d93035d69a24e7a03595 Mon Sep 17 00:00:00 2001 From: Rob Crittenden Date: Wed, 23 Sep 2020 11:39:39 -0400 Subject: [PATCH] Reduce the memory requirement from 1.6 to 1.2 GB We know from practical experience in PR-CI and Azure that 1.2 is the absolute minimum necessary for a base installation. https://pagure.io/freeipa/issue/8404 Signed-off-by: Rob Crittenden Reviewed-By: Christian Heimes --- ipaserver/install/installutils.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/ipaserver/install/installutils.py b/ipaserver/install/installutils.py index 2ce0fd820..17009bde1 100644 --- a/ipaserver/install/installutils.py +++ b/ipaserver/install/installutils.py @@ -1032,13 +1032,13 @@ def check_available_memory(ca=False): also may not be constrained but it's the best approximation. 2GB is the rule-of-thumb minimum but the server is installable with - less. + much less. The CA uses ~150MB in a fresh install. Use Kb instead of KiB to leave a bit of slush for the OS """ - minimum_suggested = 1000 * 1000 * 1000 * 1.6 + minimum_suggested = 1000 * 1000 * 1000 * 1.2 if not ca: minimum_suggested -= 150 * 1000 * 1000 if in_container(): @@ -1062,7 +1062,7 @@ def check_available_memory(ca=False): logger.debug("Available memory is %sB", available) if available < minimum_suggested: raise ScriptError( - "Less than the minimum 1.6GB of RAM is available, " + "Less than the minimum 1.2GB of RAM is available, " "%.2fGB available" % (available / (1024 * 1024 * 1024)) )