From 8f157dc240ec407fab4ca1ddcce300a7f3b936cc Mon Sep 17 00:00:00 2001 From: Stefan Prodan Date: Mon, 21 Feb 2022 13:39:05 +0200 Subject: [PATCH] runtime: Increase client QPS and Burst to 50/100 Signed-off-by: Stefan Prodan --- runtime/client/client.go | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/runtime/client/client.go b/runtime/client/client.go index 25e4e21f..e2078221 100644 --- a/runtime/client/client.go +++ b/runtime/client/client.go @@ -46,18 +46,18 @@ const ( // restConfig := client.GetConfigOrDie(clientOptions) // } type Options struct { - // QPS indicates the maximum queries-per-second of requests sent to to the Kubernetes API, defaults to 20. + // QPS indicates the maximum queries-per-second of requests sent to the Kubernetes API, defaults to 50. QPS float32 - // Burst indicates the maximum burst queries-per-second of requests sent to the Kubernetes API, defaults to 50. + // Burst indicates the maximum burst queries-per-second of requests sent to the Kubernetes API, defaults to 100. Burst int } // BindFlags will parse the given pflag.FlagSet for Kubernetes client option flags and set the Options accordingly. func (o *Options) BindFlags(fs *pflag.FlagSet) { - fs.Float32Var(&o.QPS, flagQPS, 20.0, + fs.Float32Var(&o.QPS, flagQPS, 50.0, "The maximum queries-per-second of requests sent to the Kubernetes API.") - fs.IntVar(&o.Burst, flagBurst, 50, + fs.IntVar(&o.Burst, flagBurst, 100, "The maximum burst queries-per-second of requests sent to the Kubernetes API.") }