mirror of
https://salsa.debian.org/freeipa-team/freeipa.git
synced 2025-01-11 00:31:56 -06:00
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 <rcritten@redhat.com> Reviewed-By: Christian Heimes <cheimes@redhat.com>
This commit is contained in:
parent
79b9982b86
commit
b47ddb0186
@ -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))
|
||||
)
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user