add metric for ancient append vec count (#25126)

This commit is contained in:
Jeff Washington (jwash) 2022-05-11 08:01:04 -05:00 committed by GitHub
parent 8f1d4c1665
commit 3ce877d1ab
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 7 additions and 0 deletions

View File

@ -83,6 +83,8 @@ pub struct HashStats {
pub roots_older_than_epoch: AtomicUsize,
pub accounts_in_roots_older_than_epoch: AtomicUsize,
pub append_vec_sizes_older_than_epoch: AtomicUsize,
/// # ancient append vecs encountered
pub ancient_append_vecs: AtomicUsize,
}
impl HashStats {
pub fn calc_storage_size_quartiles(&mut self, storages: &SnapshotStorages) {
@ -202,6 +204,11 @@ impl HashStats {
self.roots_older_than_epoch.load(Ordering::Relaxed) as i64,
i64
),
(
"ancient_append_vecs",
self.ancient_append_vecs.load(Ordering::Relaxed) as i64,
i64
),
(
"append_vec_sizes_older_than_epoch",
self.append_vec_sizes_older_than_epoch