mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-07-27 13:37:30 +00:00
allow higher burst
This commit is contained in:
parent
666b6b9e85
commit
b3dad83c2a
@ -109,6 +109,11 @@ func (f *discoveryFactory) DiscoveryClient() (discovery.CachedDiscoveryInterface
|
|||||||
return nil, err
|
return nil, err
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// The more groups you have, the more discovery requests you need to make.
|
||||||
|
// given 25 groups (our groups + a few custom resources) with one-ish version each, discovery needs to make 50 requests
|
||||||
|
// double it just so we don't end up here again for a while. This config is only used for discovery.
|
||||||
|
cfg.Burst = 100
|
||||||
|
|
||||||
if f.cacheDir != "" {
|
if f.cacheDir != "" {
|
||||||
wt := cfg.WrapTransport
|
wt := cfg.WrapTransport
|
||||||
cfg.WrapTransport = func(rt http.RoundTripper) http.RoundTripper {
|
cfg.WrapTransport = func(rt http.RoundTripper) http.RoundTripper {
|
||||||
|
Loading…
Reference in New Issue
Block a user