You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Add configurable QPS and burst settings for kube API client (#2411)
* Add configurable QPS and burst settings for kube API client
Introduce new flags to configure `QPS` and `Burst` for the Kubernetes API client, enabling better control over API rate limits.
Signed-off-by: R.K <[email protected]>
* Set a token bucket rate limiter for Kubernetes client
Replaced direct QPS and Burst configuration with a token bucket rate limiter using Kubernetes client-go's flowcontrol package.
Signed-off-by: R.K <[email protected]>
* Reorganize import for flowcontrol in main.go
Signed-off-by: R.K <[email protected]>
---------
Signed-off-by: R.K <[email protected]>
flag.StringVar(&metricsAddr, "metrics-bind-address", ":8080", "The address the metric endpoint binds to.")
86
89
flag.StringVar(&probeAddr, "health-probe-bind-address", ":8081", "The address the probe endpoint binds to.")
@@ -95,7 +98,8 @@ func main() {
95
98
flag.StringVar(&namespace, "namespace", os.Getenv(EnvKubeflowNamespace), "The namespace to monitor kubeflow jobs. If unset, it monitors all namespaces cluster-wide."+
96
99
"If set, it only monitors kubeflow jobs in the given namespace.")
97
100
flag.IntVar(&controllerThreads, "controller-threads", 1, "Number of worker threads used by the controller.")
98
-
101
+
flag.IntVar(&clientQps, "kube-api-qps", 20, "QPS indicates the maximum QPS to the master from this client.")
102
+
flag.IntVar(&clientBurst, "kube-api-burst", 30, "Maximum burst for throttle.")
0 commit comments