add metric for ancient append vec count (#25126)
This commit is contained in:
parent
8f1d4c1665
commit
3ce877d1ab
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue