From 207486064af0343f2a1c6bd54eddd9750be696e8 Mon Sep 17 00:00:00 2001 From: Malay Kumar Parida Date: Tue, 20 Feb 2024 16:15:59 +0530 Subject: [PATCH] Increase mgr resources to avoid mgr OOMKilled We had reduced the mgr resources to minimal possible values during the introduction of the resource profiles. But recently we have observed that the mgr is getting OOMKilled in some of the setups during some actions. Signed-off-by: Malay Kumar Parida --- controllers/defaults/resources.go | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/controllers/defaults/resources.go b/controllers/defaults/resources.go index 4778616c17..a9031ebe96 100644 --- a/controllers/defaults/resources.go +++ b/controllers/defaults/resources.go @@ -73,8 +73,8 @@ var ( corev1.ResourceMemory: resource.MustParse("1Gi"), }, Limits: corev1.ResourceList{ - corev1.ResourceCPU: resource.MustParse("0.5"), - corev1.ResourceMemory: resource.MustParse("1Gi"), + corev1.ResourceCPU: resource.MustParse("1"), + corev1.ResourceMemory: resource.MustParse("2Gi"), }, }, "mon": { @@ -126,8 +126,8 @@ var ( corev1.ResourceMemory: resource.MustParse("1.5Gi"), }, Limits: corev1.ResourceList{ - corev1.ResourceCPU: resource.MustParse("1"), - corev1.ResourceMemory: resource.MustParse("1.5Gi"), + corev1.ResourceCPU: resource.MustParse("2"), + corev1.ResourceMemory: resource.MustParse("3Gi"), }, }, "mon": { @@ -175,12 +175,12 @@ var ( PerformanceDaemonResources = map[string]corev1.ResourceRequirements{ "mgr": { Requests: corev1.ResourceList{ - corev1.ResourceCPU: resource.MustParse("1"), + corev1.ResourceCPU: resource.MustParse("1.5"), corev1.ResourceMemory: resource.MustParse("2Gi"), }, Limits: corev1.ResourceList{ - corev1.ResourceCPU: resource.MustParse("1"), - corev1.ResourceMemory: resource.MustParse("2Gi"), + corev1.ResourceCPU: resource.MustParse("3"), + corev1.ResourceMemory: resource.MustParse("4Gi"), }, }, "mon": {