Skip to content
This repository was archived by the owner on May 5, 2025. It is now read-only.

Commit c8f42c4

Browse files
committed
sqs: Increase CPU limit to avoid CFS throttling
1 parent 709353f commit c8f42c4

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

pkg/reconciler/awssqssource/adapter.go

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -75,13 +75,15 @@ func adapterDeploymentBuilder(src *v1alpha1.AWSSQSSource, cfg *adapterConfig) co
7575
resource.EnvVars(common.MakeSecurityCredentialsEnvVars(src.Spec.Credentials)...),
7676
resource.EnvVars(cfg.configs.ToEnvVars()...),
7777

78+
// CPU throttling can be observed below a limit of 1,
79+
// although the CPU usage under load remains below 400m.
7880
resource.Requests(
7981
*kr.NewMilliQuantity(90, kr.DecimalSI), // 90m
80-
*kr.NewQuantity(1024*1024*18, kr.BinarySI), // 18Mi
82+
*kr.NewQuantity(1024*1024*30, kr.BinarySI), // 30Mi
8183
),
8284
resource.Limits(
83-
*kr.NewMilliQuantity(120, kr.DecimalSI), // 120m
84-
*kr.NewQuantity(1024*1024*30, kr.BinarySI), // 30Mi
85+
*kr.NewMilliQuantity(1000, kr.DecimalSI), // 1
86+
*kr.NewQuantity(1024*1024*45, kr.BinarySI), // 45Mi
8587
),
8688
)
8789
}

0 commit comments

Comments
 (0)