From 485b2696749a93d67ca58a3d54b9b659766903d1 Mon Sep 17 00:00:00 2001 From: Christian Schwarz Date: Mon, 20 Feb 2023 16:35:23 +0100 Subject: [PATCH] eviction: tone down logs to debug!() level if there were no evictions fixes #3647 --- pageserver/src/tenant/timeline/eviction_task.rs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/pageserver/src/tenant/timeline/eviction_task.rs b/pageserver/src/tenant/timeline/eviction_task.rs index fc84517cc2..fe7e7a1654 100644 --- a/pageserver/src/tenant/timeline/eviction_task.rs +++ b/pageserver/src/tenant/timeline/eviction_task.rs @@ -199,7 +199,9 @@ impl Timeline { } } } - if stats.errors > 0 || stats.not_evictable > 0 { + if stats.candidates == stats.not_evictable { + debug!(stats=?stats, "eviction iteration complete"); + } else if stats.errors > 0 || stats.not_evictable > 0 { warn!(stats=?stats, "eviction iteration complete"); } else { info!(stats=?stats, "eviction iteration complete");