mirror of
https://github.com/neondatabase/neon.git
synced 2026-05-05 23:30:38 +00:00
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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user