Skip to content

Commit

Permalink
Increase DI memory request and limits to 512Mi to avoid random OOMKills
Browse files Browse the repository at this point in the history
Signed-off-by: Jordi Gil <[email protected]>
  • Loading branch information
jordigilh committed Jan 2, 2024
1 parent aa584c5 commit ca1e99b
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions controllers/platform/services/services.go
Original file line number Diff line number Diff line change
Expand Up @@ -113,9 +113,13 @@ func (d DataIndex) GetEnvironmentVariables() []corev1.EnvVar {

func (d DataIndex) GetPodResourceRequirements() corev1.ResourceRequirements {
return corev1.ResourceRequirements{
Requests: corev1.ResourceList{
corev1.ResourceCPU: resource.MustParse("100m"),
corev1.ResourceMemory: resource.MustParse("512Mi"),
},
Limits: corev1.ResourceList{
corev1.ResourceCPU: resource.MustParse("500m"),
corev1.ResourceMemory: resource.MustParse("1Gi"),
corev1.ResourceCPU: resource.MustParse("100m"),
corev1.ResourceMemory: resource.MustParse("512Mi"),
},
}
}
Expand Down

0 comments on commit ca1e99b

Please sign in to comment.