Skip to content

Commit a9c4f3e

Browse files
Update cpu interval doc
1 parent 2f4e536 commit a9c4f3e

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -138,7 +138,7 @@ If we have a container named `nginx` in our pod, the variable name should be `NG
138138
| \<CONTAINER NAME>\_CPU_MAX_INC | 0.5 | Maximum CPU increase for one correction. e.g. 0.5 is a 50% increase. |
139139
| \<CONTAINER NAME>\_CPU_MAX_DEC | 0.1 | Maximum CPU decrease for one correction. e.g. 0.1 is a 10% decrease. |
140140
| \<CONTAINER NAME>\_CPU_TARGET_AVG | 0.8 | Target CPU average for the container. It is from 0 to 1. e.g. 0.8 means a target cpu usage of 80%. |
141-
| \<CONTAINER NAME>\_CPU_INTERVAL | 6 | Target CPU average for the container. It is from 0 to 1. e.g. 0.8 means a target cpu usage of 80%. |
141+
| \<CONTAINER NAME>\_CPU_INTERVAL | 6 | CPU interval in seconds to calculate the CPU average. Each interval last 1 second.|
142142
| \<CONTAINER NAME>\_CPU_COEFF | 6 | Used to calculate the new cpu limit when a cpu increase is needed. The higher the coeff, the higher the new cpu limit. |
143143

144144
### More

doc/cpu.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
Kondense resize each container CPU every second with the following steps.
33

44
## 1. Calculate average CPU usage
5-
Kondense calculate the average CPU usage over the last `INTERVAL` seconds. By default, `INTERVAL` is 10 seconds.
5+
Kondense calculate the average CPU usage over the last `INTERVAL` seconds. By default, `INTERVAL` is 6 seconds.
66

77
### 2. Calculate new CPU
88
We need the `TARGET_AVG` to calculate the new CPU. By default, `TARGET_AVG` is 0.8 so 80%.

0 commit comments

Comments
 (0)