Skip to content

Commit

Permalink
Increase mgr resources to avoid mgr OOMKilled
Browse files Browse the repository at this point in the history
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 <[email protected]>
  • Loading branch information
malayparida2000 committed Feb 22, 2024
1 parent 621cd28 commit 2074860
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions controllers/defaults/resources.go
Original file line number Diff line number Diff line change
Expand Up @@ -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": {
Expand Down Expand Up @@ -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": {
Expand Down Expand Up @@ -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": {
Expand Down

0 comments on commit 2074860

Please sign in to comment.