ZcashFoundation / zebra

Zcash - Financial Privacy in Rust 🦓
https://zfnd.org/zebra/
Apache License 2.0
412 stars 106 forks source link

fix(state): Updates `total_size_on_disk` metric to be the total sst file size #8966

Closed arya2 closed 1 month ago

arya2 commented 1 month ago

Motivation

The db metrics printed by Zebra when it starts up seem too high, it looks like the total sst size in RocksDB includes the live database size.

Solution

Tests

Manually tested that the output matches the cache directory size reported by du -hs

PR Author's Checklist

PR Reviewer's Checklist