Skip to content

Commit

Permalink
🌱 increase clusterctl client throttle burst
Browse files Browse the repository at this point in the history
  • Loading branch information
nojnhuh committed Mar 28, 2023
1 parent 197e7f9 commit 2ebb6ea
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion cmd/clusterctl/client/cluster/proxy.go
Original file line number Diff line number Diff line change
Expand Up @@ -150,7 +150,7 @@ func (k *proxy) GetConfig() (*rest.Config, error) {

// Set QPS and Burst to a threshold that ensures the controller runtime client/client go doesn't generate throttling log messages
restConfig.QPS = 20
restConfig.Burst = 100
restConfig.Burst = 300

return restConfig, nil
}
Expand Down
2 changes: 1 addition & 1 deletion cmd/clusterctl/client/cluster/proxy_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ func TestProxyGetConfig(t *testing.T) {
g.Expect(conf.Host).To(Equal(tt.expectedHost))
g.Expect(conf.UserAgent).To(Equal(fmt.Sprintf("clusterctl/%s (%s)", version.Get().GitVersion, version.Get().Platform)))
g.Expect(conf.QPS).To(BeEquivalentTo(20))
g.Expect(conf.Burst).To(BeEquivalentTo(100))
g.Expect(conf.Burst).To(BeEquivalentTo(300))
g.Expect(conf.Timeout.String()).To(Equal("30s"))
})
}
Expand Down

0 comments on commit 2ebb6ea

Please sign in to comment.