Skip to content

Commit

Permalink
QPS and busrt adjustment (aws#436)
Browse files Browse the repository at this point in the history
  • Loading branch information
haouc authored and yash97 committed Nov 15, 2024
1 parent 41b1108 commit cdf82cd
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 6 deletions.
2 changes: 1 addition & 1 deletion controllers/core/pod_controller.go
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ type PodReconciler struct {

var (
PodRequeueRequest = ctrl.Result{Requeue: true, RequeueAfter: time.Second}
MaxPodConcurrentReconciles = 10
MaxPodConcurrentReconciles = 20
)

// Reconcile handles create/update/delete event by delegating the request to the handler
Expand Down
11 changes: 6 additions & 5 deletions pkg/config/loader.go
Original file line number Diff line number Diff line change
Expand Up @@ -50,15 +50,16 @@ const (
// Tested: 12 + 8 limits (not seeing significant degradation from 15+8)
// Larger number seems not make latency better than 12+8
UserServiceClientQPS = 12
UserServiceClientQPSBurst = 8
UserServiceClientQPSBurst = 18

// EC2 API QPS for instance service client
InstanceServiceClientQPS = 5
InstanceServiceClientBurst = 7
InstanceServiceClientQPS = 12
InstanceServiceClientBurst = 18

// API Server QPS
DefaultAPIServerQPS = 10
DefaultAPIServerBurst = 15
// Use the same values as default client (https://github.com/kubernetes-sigs/controller-runtime/blob/main/pkg/client/config/config.go#L85)
DefaultAPIServerQPS = 20
DefaultAPIServerBurst = 30
)

// LoadResourceConfig returns the Resource Configuration for all resources managed by the VPC Resource Controller. Currently
Expand Down

0 comments on commit cdf82cd

Please sign in to comment.