mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-07-22 03:11:40 +00:00
Increase QPS in gc controller.
This commit is contained in:
parent
dcfe8f5d5c
commit
f469358a5f
@ -538,6 +538,9 @@ func startGarbageCollectorController(ctx ControllerContext) (controller.Interfac
|
||||
discoveryClient := ctx.ClientBuilder.DiscoveryClientOrDie("generic-garbage-collector")
|
||||
|
||||
config := ctx.ClientBuilder.ConfigOrDie("generic-garbage-collector")
|
||||
// Increase garbage collector controller's throughput: each object deletion takes two API calls,
|
||||
// so to get |config.QPS| deletion rate we need to allow 2x more requests for this controller.
|
||||
config.QPS *= 2
|
||||
metadataClient, err := metadata.NewForConfig(config)
|
||||
if err != nil {
|
||||
return nil, true, err
|
||||
|
Loading…
Reference in New Issue
Block a user