foundationdb
foundationdb copied to clipboard
StorageMetrics.BytesStored estimate excludes the StorageServer's private keyspace
StorageMetrics.BytesStored is an estimate of stored KV records in `` to \xff\xff which excludes the local private keyspace. With ChangeFeeds, this space might not be trivial in size, but also if any bug were to cause accumulation of data there it would not be accounted for.
This sounds like a good new metric to add. I think we should keep around the old StorageMetrics.BytesStored as well, because non-private data is important for data distribution. Maybe we can add a StorageMetrics.PrivateBytesStored metric.