feat: log evictions (#3930)

this will help log analysis with the counterpart of already logging all
remote download needs and downloads. ended up with a easily regexable
output in the final round.
This commit is contained in:
Joonas Koivunen
2023-04-03 14:15:41 +03:00
committed by GitHub
parent cf5cfe6d71
commit a415670bc3

View File

@@ -1127,6 +1127,9 @@ impl Timeline {
self.metrics
.evictions_with_low_residence_duration
.observe(delta);
info!(layer=%local_layer.short_id(), residence_millis=delta.as_millis(), "evicted layer after known residence period");
} else {
info!(layer=%local_layer.short_id(), "evicted layer after unknown residence period");
}
true