From 752f28c2bca899ec0f6edd40491695b1924d894e Mon Sep 17 00:00:00 2001 From: Dan Williams Date: Fri, 8 Sep 2023 08:37:20 -0500 Subject: [PATCH] k8sclient: bump QPS to 50 Multus is a pretty critical piece of infrastructure, so it shouldn't be subject to the same lower QPS limits as most components are. Signed-off-by: Dan Williams --- pkg/k8sclient/k8sclient.go | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/pkg/k8sclient/k8sclient.go b/pkg/k8sclient/k8sclient.go index 7de8e79d0..cdc209737 100644 --- a/pkg/k8sclient/k8sclient.go +++ b/pkg/k8sclient/k8sclient.go @@ -441,6 +441,10 @@ func GetK8sClient(kubeconfig string, kubeClient *ClientInfo) (*ClientInfo, error config.ContentType = "application/vnd.kubernetes.protobuf" // Set the config timeout to one minute. config.Timeout = time.Minute + // Allow multus (especially in server mode) to make more concurrent requests + // to reduce client-side throttling + config.QPS = 50 + config.Burst = 50 return newClientInfo(config) }