Using GetProperty(), we can print LevelDB internal statistic
GetProperty() Provides four metrics
leveldb.sstables : Describes all of sstables contents
leveldb.stats : Statistic about internal operations
leveldb.approximate-memory-usage : Approximate number of bytes of memory in use by DB
leveldb.num-files-at-level : Number of files at level
In default, we disable printing leveldb.sstables
LevelDB collects useful metrics, and we can exploit these functions at the wrapper level.
We can also consider how to pass parameters to the wrapper level.
For example, 1) enable/disable to print index-specific internal metrics, 2) optional printing metrics.
GetProperty()
, we can print LevelDB internal statisticGetProperty()
Provides four metricsleveldb.sstables
: Describes all of sstables contentsleveldb.stats
: Statistic about internal operationsleveldb.approximate-memory-usage
: Approximate number of bytes of memory in use by DBleveldb.num-files-at-level
: Number of files at levelleveldb.sstables
LevelDB collects useful metrics, and we can exploit these functions at the wrapper level. We can also consider how to pass parameters to the wrapper level. For example, 1) enable/disable to print index-specific internal metrics, 2) optional printing metrics.