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
Copy file name to clipboardExpand all lines: README.md
+15-6Lines changed: 15 additions & 6 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -8,24 +8,33 @@
8
8
Kube-reqsizer has two primary custom flags:
9
9
10
10
```
11
-
-annotation-filter bool
11
+
--annotation-filter bool
12
12
13
13
Enable a annotation filter for pod scraping.
14
14
Enabling this will ensure that the controller
15
15
only sets requests of controllers of which pods have the annotation.
16
-
(auto.request.operator/optimize=true)
17
16
18
-
-sample-size int
17
+
auto.request.operator/optimize=true
19
18
20
-
The sample size to create an average from when reconciling. (default 1)
19
+
--sample-size int (default 1)
20
+
21
+
The sample size to create an average from when reconciling.
22
+
23
+
--min-seconds int (default 1)
24
+
25
+
Minimum seconds between pod restart.
26
+
This ensures the controller will not restart a pod if the minimum time
27
+
has not passed since it has started sampling it.
21
28
```
22
29
23
-
Sample size is the amount of data-points the controller will store in cache before constructing an average for the pod. After a requests resizing, the cache will clean itself and a new average will be calculated based on the sample size.
30
+
Disclaimer:
31
+
32
+
`sample-size` is the amount of data-points the controller will store in cache before constructing an average for the pod. After a requests resizing, the cache will clean itself and a new average will be calculated based on the sample size. If `min-seconds` has not yet passed since the pod has last been supposed to be sample-reconciled, the controller will keep sampling the pod until `min-seconds` have been reached and only then zero the sample and restart from cache.
0 commit comments