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
Tune the client side rate limit parameter to speed up bundle loading time.
- Set QPS and Burst to 100 by default.
- Add flags to allow override the values.
@@ -105,6 +105,7 @@ support bundle contents using native k8s tooling like kubectl`,
105
105
}
106
106
107
107
if!skipLoad {
108
+
start:=time.Now()
108
109
err=o.CreateUnstructuredClusterObjects()
109
110
110
111
iferr!=nil {
@@ -124,6 +125,8 @@ support bundle contents using native k8s tooling like kubectl`,
124
125
// ignore the error creation
125
126
_=o.CreatedFailedObjectsList()
126
127
logrus.Info("All resources loaded successfully")
128
+
129
+
logrus.Infof("Time to load all objects: %s seconds", time.Since(start))
127
130
}
128
131
129
132
err=eg.Wait()
@@ -145,6 +148,8 @@ func init() {
145
148
simulatorCmd.PersistentFlags().StringVar(&bundlePath, "bundle-path", ".", "location to support bundle. default is .")
146
149
simulatorCmd.PersistentFlags().BoolVar(&resetHome, "reset", false, "reset sim-home, will clear the contents and start a clean etcd + apiserver instance")
147
150
simulatorCmd.PersistentFlags().BoolVar(&skipLoad, "skip-load", false, "skip load / re-load of bundle. this will ensure current etcd contents are only accessible")
151
+
simulatorCmd.PersistentFlags().Float32Var(&clientQPS, "client-qps", apiserver.DefaultClientQPS, "QPS for the kubernete client to push objects to the api server")
152
+
simulatorCmd.PersistentFlags().IntVar(&clientBurst, "client-burst", apiserver.DefaultClientBurst, "Burst for the kubernete client to push objects to the api server")
148
153
}
149
154
150
155
// GetServiceClusterIP will return the service cluster IP from the support bundle
0 commit comments