Skip to content

Commit

Permalink
k8sclient: bump QPS to 50
Browse files Browse the repository at this point in the history
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 <[email protected]>
  • Loading branch information
dcbw committed Sep 13, 2023
1 parent fff8519 commit 752f28c
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions pkg/k8sclient/k8sclient.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)
}
Expand Down

0 comments on commit 752f28c

Please sign in to comment.