disk: give the image prune five minutes, not crictl's two seconds
Hanzo CI/CD / test (linux-amd64) (push) Skipped
Hanzo CI/CD / test (linux-arm64) (push) Skipped
Hanzo CI/CD / test-advisory (push) Skipped
Hanzo CI/CD / test-amd64 (push) Successful in 3m1s
Hanzo CI/CD / cicd (push) Successful in 3m2s
CI/CD / cicd (push) Successful in 6m7s

Co-authored-by: Hanzo Dev <[email protected]>
This commit is contained in:
2026-10-02 08:39:59 -07:00
co-authored by Hanzo Dev
parent 7d6a4cbb78
commit 7e5f730fb7
+4 -1
View File
@@ -13,7 +13,10 @@ import (
// evict drops what the node keeps only to save a download or a rebuild.
func evict(ctx context.Context, log *slog.Logger) {
step(ctx, log, "images", "/usr/local/bin/crictl", "rmi", "--prune")
// crictl gives each request two seconds by default, and removing an image's
// layers takes longer than that: the prune reported DeadlineExceeded while
// containerd went on deleting.
step(ctx, log, "images", "/usr/local/bin/crictl", "--timeout=5m", "rmi", "--prune")
step(ctx, log, "journal", "/usr/bin/journalctl", "--vacuum-size=256M")
log.Info("evict tmp", "bytes", sweep(host+"/tmp", day, plainFiles))
for _, c := range caches(host) {