Skip to content

Commit

Permalink
sync-controller: adjust resource limits and requests
Browse files Browse the repository at this point in the history
  • Loading branch information
absorbb committed Jan 22, 2025
1 parent dd2b986 commit 5f5d75f
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions sync-controller/job_runner.go
Original file line number Diff line number Diff line change
Expand Up @@ -759,12 +759,12 @@ func (j *JobRunner) createPod(podName string, task TaskDescriptor, configuration
VolumeMounts: volumeMounts,
Resources: v1.ResourceRequirements{
Limits: v1.ResourceList{
v1.ResourceCPU: *resource.NewMilliQuantity(int64(2000), resource.DecimalSI),
v1.ResourceCPU: *resource.NewMilliQuantity(int64(500), resource.DecimalSI),
// 8Gi
v1.ResourceMemory: *resource.NewQuantity(int64(math.Pow(2, 33)), resource.BinarySI),
},
Requests: v1.ResourceList{
v1.ResourceCPU: *resource.NewMilliQuantity(int64(50), resource.DecimalSI),
v1.ResourceCPU: *resource.NewMilliQuantity(int64(100), resource.DecimalSI),
// 256Mi
v1.ResourceMemory: *resource.NewQuantity(int64(math.Pow(2, 28)), resource.BinarySI),
},
Expand All @@ -778,7 +778,7 @@ func (j *JobRunner) createPod(podName string, task TaskDescriptor, configuration
VolumeMounts: volumeMounts,
Resources: v1.ResourceRequirements{
Limits: v1.ResourceList{
v1.ResourceCPU: *resource.NewMilliQuantity(int64(1000), resource.DecimalSI),
v1.ResourceCPU: *resource.NewMilliQuantity(int64(500), resource.DecimalSI),
// 2Gi
v1.ResourceMemory: *resource.NewQuantity(int64(math.Pow(2, 31)), resource.BinarySI),
},
Expand Down

0 comments on commit 5f5d75f

Please sign in to comment.