From 01404edff970888c968ff1b77d7dbd76cb724094 Mon Sep 17 00:00:00 2001 From: Noel Georgi Date: Tue, 16 Jul 2024 17:09:30 +0530 Subject: [PATCH] chore: reduce memory requirement for contrplane nodes Reduce memory requirement for controlplane nodes by 200M. (2*1024-200). Signed-off-by: Noel Georgi --- pkg/minimal/limits.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkg/minimal/limits.go b/pkg/minimal/limits.go index 95da4f27a5..aa1a48e0b0 100644 --- a/pkg/minimal/limits.go +++ b/pkg/minimal/limits.go @@ -15,10 +15,10 @@ import ( // Memory returns the minimal/recommended amount of memory required to run the node. func Memory(typ machine.Type) (minimum, recommended uint64, err error) { - // We remove 100 MiB from the recommended memory to account for the kernel + // We remove 150 MiB from the recommended memory to account for the kernel switch typ { //nolint:exhaustive case machine.TypeControlPlane, machine.TypeInit: - minimum = 2*humanize.GiByte - 150*humanize.MiByte + minimum = 1848*humanize.MiByte - 150*humanize.MiByte recommended = 4*humanize.GiByte - 150*humanize.MiByte case machine.TypeWorker: