Skip to content

Commit 020d23a

Browse files
authored
QPS and busrt adjustment (#436)
1 parent 6b74ea8 commit 020d23a

File tree

2 files changed

+7
-6
lines changed

2 files changed

+7
-6
lines changed

controllers/core/pod_controller.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ type PodReconciler struct {
5656

5757
var (
5858
PodRequeueRequest = ctrl.Result{Requeue: true, RequeueAfter: time.Second}
59-
MaxPodConcurrentReconciles = 10
59+
MaxPodConcurrentReconciles = 20
6060
)
6161

6262
// Reconcile handles create/update/delete event by delegating the request to the handler

pkg/config/loader.go

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -49,15 +49,16 @@ const (
4949
// Tested: 12 + 8 limits (not seeing significant degradation from 15+8)
5050
// Larger number seems not make latency better than 12+8
5151
UserServiceClientQPS = 12
52-
UserServiceClientQPSBurst = 8
52+
UserServiceClientQPSBurst = 18
5353

5454
// EC2 API QPS for instance service client
55-
InstanceServiceClientQPS = 5
56-
InstanceServiceClientBurst = 7
55+
InstanceServiceClientQPS = 12
56+
InstanceServiceClientBurst = 18
5757

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

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

0 commit comments

Comments
 (0)