Skip to content

Commit a0466ad

Browse files
Simplify cpu doc
1 parent 047eb68 commit a0466ad

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

doc/cpu.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
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 container 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 container CPU. By default, `TARGET_AVG` is 0.8 so 80%.
99

1010
```
1111
new_cpu = average_cpu / TARGET_AVG
@@ -17,7 +17,7 @@ If `new_cpu` is smaller than the current container limit, we just patch containe
1717

1818
### 2.2 If `new_cpu` is bigger than current container 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 container limit, we exponentially increase `new_cpu` with this formula:
2121
```
2222
new_cpu = new_cpu + (new_cpu * coeff)²
2323
```

0 commit comments

Comments
 (0)