Skip to content

Commit

Permalink
chore: reduce memory requirement for contrplane nodes
Browse files Browse the repository at this point in the history
Reduce memory requirement for controlplane nodes by 200M. (2*1024-200).

Signed-off-by: Noel Georgi <[email protected]>
  • Loading branch information
frezbo committed Jul 16, 2024
1 parent 980f9eb commit 01404ed
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pkg/minimal/limits.go
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit 01404ed

Please sign in to comment.