-
Notifications
You must be signed in to change notification settings - Fork 68
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Incorrect statistics mapping #162
Comments
@jonas0616 I am suspecting that there are changes with rocksdb itself. |
@linxGnu
It seems like the statistics mappings were already incorrect even before v1.8.15. |
@jonas0616 In order to get stats, you need to create Statistic Object. See also: I don't think RocksDB expose to C API yet. |
I've set For example, to print the ticker count every minute: val := opts.GetTickerCount(grocksdb.TickerType_NON_LAST_LEVEL_SEEK_DATA_USEFUL_NO_FILTER)
logrus.WithField("TickerType", grocksdb.TickerType_NON_LAST_LEVEL_SEEK_DATA_USEFUL_NO_FILTER).
WithField("value", val).
Infof("non_last_level_seek_data_useful_no_filter")
val = opts.GetTickerCount(grocksdb.TickerType_NON_LAST_LEVEL_SEEK_DATA_USEFUL_FILTER_MATCH)
logrus.WithField("TickerType", grocksdb.TickerType_NON_LAST_LEVEL_SEEK_DATA_USEFUL_FILTER_MATCH).
WithField("value", val).
Infof("non_last_level_seek_data_useful_filter_match") After making some iterator requests to the RocksDB and wait for one minute, the results are:
Now, search the
|
@linxGnu |
After upgrading grocksdb from v1.8.12 to v1.9.3, I noticed that some statistics values appeared abnormal.
For example, I found the value of
rocksdb.compact.write.bytes
in the LOG file (periodically dumped stats) showed it as 278576274:However, the value retreived using
opts.GetTickerCount()
remained at 539.Interestingly, the value for
rocksdb.db.iter.bytes.read
was exactly 539, leading I to suspect that the statistics might have been incorrectly mapped.The text was updated successfully, but these errors were encountered: