containerd/plugins/gc
Kirill A. Korinsky c8766123d9
Prevent GC from schedule itself with 0 period.
On startup `gcTimeSum` might work fast and return `0`, so on this case
the algorithm turns in infinity loop which simple consume CPU on timer
which fires without any interval.

Use `5ms` as fallback to have interval `245ms` for that case.

Closes: https://github.com/containerd/containerd/issues/5089

Signed-off-by: Kirill A. Korinsky <kirill@korins.ky>
2024-02-15 11:32:53 +01:00
..
metrics.go Move gc/scheduler to plugins/gc 2024-01-17 09:55:03 -08:00
scheduler_test.go Remove duplicated TOML duration parsers 2024-02-01 11:48:33 -08:00
scheduler.go Prevent GC from schedule itself with 0 period. 2024-02-15 11:32:53 +01:00