Skip to content

Commit cb045c1

Browse files
committed
🚑 hotfix concurrent workers
modified: README.md; modified: charts/kube-reqsizer/Chart.yaml; modified: charts/kube-reqsizer/values.yaml; modified: main.go
1 parent cceb1bc commit cb045c1

File tree

4 files changed

+4
-4
lines changed

4 files changed

+4
-4
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ minCPU: 0
4545
cpuFactor: 1
4646
memoryFactor: 1
4747
logLevel: info
48-
concurrentWorkers: 100
48+
concurrentWorkers: 20
4949
```
5050
## Prerequisites
5151
- The metrics server must be deployed in your cluster. Read more about [Metrics Server](https://github.com/kubernetes-sigs/metrics-server). This controller uses the **metrics.k8s.io** extension API group (apis/metrics.k8s.io/v1beta1)

charts/kube-reqsizer/Chart.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,4 +13,4 @@ type: application
1313
# This is the chart version. This version number should be incremented each time you make changes
1414
# to the chart and its templates, including the app version.
1515
# Versions are expected to follow Semantic Versioning (https://semver.org/)
16-
version: 0.8.0
16+
version: 0.8.1

charts/kube-reqsizer/values.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ minCPU: 0
1010
cpuFactor: 1
1111
memoryFactor: 1
1212
logLevel: info
13-
concurrentWorkers: 100
13+
concurrentWorkers: 20
1414

1515

1616
controllerManager:

main.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@ func main() {
7474
flag.Float64Var(&cpuFactor, "cpu-factor", 1, "A factor to multiply CPU requests when reconciling. 1 By default.")
7575
flag.Float64Var(&memoryFactor, "memory-factor", 1, "A factor to multiply Memory requests when reconciling. 1 By default.")
7676

77-
flag.UintVar(&concurrentWorkers, "concurrent-workers", 100, "How many pods to sample in parallel. This may affect the controller's stability.")
77+
flag.UintVar(&concurrentWorkers, "concurrent-workers", 20, "How many pods to sample in parallel. This may affect the controller's stability.")
7878

7979
flag.Int64Var(&minMemory, "min-memory", 0, "Minimum memory in (Mi) that the controller can set a pod request to. 0 is infinite")
8080
flag.Int64Var(&minCPU, "min-cpu", 0, "Minimum CPU in (m) that the controller can set a pod request to. 0 is infinite")

0 commit comments

Comments
 (0)