Skip to content

Commit 9527da6

Browse files
Simplify cpu doc
1 parent 047eb68 commit 9527da6

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

doc/cpu.md

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,25 +1,25 @@
11
# How is container CPU calculated ?
22
Kondense resize each container CPU every second with the following steps.
33

4-
## 1. Calculate average CPU usage of the container.
4+
## 1. Calculate average CPU usage
55
Kondense calculate the average CPU usage over the last `INTERVAL` seconds. By default, `INTERVAL` is 10 seconds.
66

77
### 2. Calculate new CPU
8-
To calculate the new container CPU, we need the `TARGET_AVG`. By default, `TARGET_AVG` is 0.8 so 80%.
8+
We need the `TARGET_AVG` to calculate the new CPU. By default, `TARGET_AVG` is 0.8 so 80%.
99

1010
```
1111
new_cpu = average_cpu / TARGET_AVG
1212
```
1313

14-
### 2.1 If `new_cpu` is smaller than current container cpu limit
14+
### 2.1 If `new_cpu` is smaller than current CPU limit
1515

16-
If `new_cpu` is smaller than the current container limit, we just patch container CPU limit with this `new_cpu`.
16+
If `new_cpu` is smaller than the current CPU limit, we just patch CPU limit with this `new_cpu`.
1717

18-
### 2.2 If `new_cpu` is bigger than current container cpu limit
18+
### 2.2 If `new_cpu` is bigger than current CPU limit
1919

20-
If this `new_cpu` is higher than the current CPU container limit, we exponentially increase `new_cpu` with this formula:
20+
If `new_cpu` is higher than the current CPU limit, we exponentially increase `new_cpu` with this formula:
2121
```
2222
new_cpu = new_cpu + (new_cpu * coeff)²
2323
```
2424
The bigger the `coeff`, the stronger Kondense will increase the CPU.
25-
We patch the container CPU limit with this `new_cpu`.
25+
We patch the CPU limit with this `new_cpu`.

0 commit comments

Comments
 (0)