Skip to content

Commit

Permalink
chore: reduce Kubernetes client qps and burst limits to match control…
Browse files Browse the repository at this point in the history
  • Loading branch information
balpert89 committed Nov 25, 2024
1 parent 8b7d861 commit 7833274
Show file tree
Hide file tree
Showing 6 changed files with 12 additions and 12 deletions.
4 changes: 2 additions & 2 deletions broker/bucketbroker/cmd/bucketbroker/app/app.go
Original file line number Diff line number Diff line change
Expand Up @@ -38,8 +38,8 @@ func (o *Options) AddFlags(fs *pflag.FlagSet) {
fs.StringVar(&o.Kubeconfig, "kubeconfig", o.Kubeconfig, "Path pointing to a kubeconfig file to use.")
fs.StringVar(&o.Address, "address", "/var/run/iri-bucketbroker.sock", "Address to listen on.")

fs.Float32VarP(&o.QPS, "qps", "", 100, "Kubernetes client qps.")
fs.IntVar(&o.Burst, "burst", 200, "Kubernetes client burst.")
fs.Float32VarP(&o.QPS, "qps", "", 20, "Kubernetes client qps.")
fs.IntVar(&o.Burst, "burst", 30, "Kubernetes client burst.")

fs.StringVar(&o.Namespace, "namespace", o.Namespace, "Target Kubernetes namespace to use.")
fs.StringVar(&o.BucketPoolName, "bucket-pool-name", o.BucketPoolName, "Name of the target bucket pool to pin buckets to, if any.")
Expand Down
4 changes: 2 additions & 2 deletions broker/machinebroker/cmd/machinebroker/app/app.go
Original file line number Diff line number Diff line change
Expand Up @@ -53,8 +53,8 @@ func (o *Options) AddFlags(fs *pflag.FlagSet) {
fs.StringToStringVar(&o.BrokerDownwardAPILabels, "broker-downward-api-label", nil, "The labels to broker via downward API. "+
"Example is for instance to broker \"root-machine-uid\" initially obtained via \"machinepoollet.ironcore.dev/machine-uid\".")

fs.Float32VarP(&o.QPS, "qps", "", 100, "Kubernetes client qps.")
fs.IntVar(&o.Burst, "burst", 200, "Kubernetes client burst.")
fs.Float32VarP(&o.QPS, "qps", "", 20, "Kubernetes client qps.")
fs.IntVar(&o.Burst, "burst", 30, "Kubernetes client burst.")

fs.StringVar(&o.Namespace, "namespace", o.Namespace, "Target Kubernetes namespace to use.")
fs.StringVar(&o.MachinePoolName, "machine-pool-name", o.MachinePoolName, "Name of the target machine pool to pin machines to, if any.")
Expand Down
4 changes: 2 additions & 2 deletions broker/volumebroker/cmd/volumebroker/app/app.go
Original file line number Diff line number Diff line change
Expand Up @@ -38,8 +38,8 @@ func (o *Options) AddFlags(fs *pflag.FlagSet) {
fs.StringVar(&o.Kubeconfig, "kubeconfig", o.Kubeconfig, "Path pointing to a kubeconfig file to use.")
fs.StringVar(&o.Address, "address", "/var/run/iri-volumebroker.sock", "Address to listen on.")

fs.Float32VarP(&o.QPS, "qps", "", 100, "Kubernetes client qps.")
fs.IntVar(&o.Burst, "burst", 200, "Kubernetes client burst.")
fs.Float32VarP(&o.QPS, "qps", "", 20, "Kubernetes client qps.")
fs.IntVar(&o.Burst, "burst", 30, "Kubernetes client burst.")

fs.StringVar(&o.Namespace, "namespace", o.Namespace, "Target Kubernetes namespace to use.")
fs.StringVar(&o.VolumePoolName, "volume-pool-name", o.VolumePoolName, "Name of the target volume pool to pin volumes to, if any.")
Expand Down
4 changes: 2 additions & 2 deletions poollet/bucketpoollet/cmd/bucketpoollet/app/app.go
Original file line number Diff line number Diff line change
Expand Up @@ -90,8 +90,8 @@ func (o *Options) AddFlags(fs *pflag.FlagSet) {

fs.StringVar(&o.WatchFilterValue, "watch-filter", "", "Value to filter for while watching.")

fs.Float32VarP(&o.QPS, "qps", "", 100, "Kubernetes client qps.")
fs.IntVar(&o.Burst, "burst", 200, "Kubernetes client burst.")
fs.Float32VarP(&o.QPS, "qps", "", 20, "Kubernetes client qps.")
fs.IntVar(&o.Burst, "burst", 30, "Kubernetes client burst.")
fs.IntVar(&o.MaxConcurrentReconciles, "max-concurrent-reconciles", 1, "Maximum number of concurrent reconciles.")
}

Expand Down
4 changes: 2 additions & 2 deletions poollet/machinepoollet/cmd/machinepoollet/app/app.go
Original file line number Diff line number Diff line change
Expand Up @@ -112,8 +112,8 @@ func (o *Options) AddFlags(fs *pflag.FlagSet) {

fs.StringVar(&o.WatchFilterValue, "watch-filter", "", "Value to filter for while watching.")

fs.Float32VarP(&o.QPS, "qps", "", 100, "Kubernetes client qps.")
fs.IntVar(&o.Burst, "burst", 200, "Kubernetes client burst.")
fs.Float32VarP(&o.QPS, "qps", "", 20, "Kubernetes client qps.")
fs.IntVar(&o.Burst, "burst", 30, "Kubernetes client burst.")
fs.IntVar(&o.MaxConcurrentReconciles, "max-concurrent-reconciles", 1, "Maximum number of concurrent reconciles.")
}

Expand Down
4 changes: 2 additions & 2 deletions poollet/volumepoollet/cmd/volumepoollet/app/app.go
Original file line number Diff line number Diff line change
Expand Up @@ -91,8 +91,8 @@ func (o *Options) AddFlags(fs *pflag.FlagSet) {

fs.StringVar(&o.WatchFilterValue, "watch-filter", "", "Value to filter for while watching.")

fs.Float32VarP(&o.QPS, "qps", "", 100, "Kubernetes client qps.")
fs.IntVar(&o.Burst, "burst", 200, "Kubernetes client burst.")
fs.Float32VarP(&o.QPS, "qps", "", 20, "Kubernetes client qps.")
fs.IntVar(&o.Burst, "burst", 30, "Kubernetes client burst.")
fs.IntVar(&o.MaxConcurrentReconciles, "max-concurrent-reconciles", 1, "Maximum number of concurrent reconciles.")
}

Expand Down

0 comments on commit 7833274

Please sign in to comment.