Skip to content
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

Add write stall stats to info command output #396

Merged
merged 2 commits into from
Nov 19, 2021

Conversation

caipengbo
Copy link
Contributor

Kvrocks uses RocksDB as the storage engine. When RocksDB can't flush and compact data promptly, it uses a feature called " Write Stalls" to try and slow the amount of data coming into the engine.

This is information user should know. Currently, Kvrocks uses RocksDB's EventListener mechanism to capture stall information. The user must grep the log to get this information.

So I add it to the output of the INFO command so that users can get information from the INFO command directly. It can also be easily applied to their monitor systems.

git-hulk
git-hulk previously approved these changes Nov 19, 2021
Copy link
Member

@git-hulk git-hulk left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, so speedy.

Copy link
Member

@ShooterIT ShooterIT left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

should we also show "io_stalls.total_slowdown" and "io_stalls.total_stop"

src/server.cc Outdated Show resolved Hide resolved
Co-authored-by: Wang Yuan <wangyuancode@163.com>
@caipengbo
Copy link
Contributor Author

should we also show "io_stalls.total_slowdown" and "io_stalls.total_stop"

@ShooterIT I don't think it's necessary to add io_stalls.total_slowdown and io_stalls.total_stop. Since this value is equal to the sum of the listed three, the user can simply add them through the monitoring system.

If we all add it, we'll have too much information.

@ShooterIT
Copy link
Member

fine, both are ok to me

@ShooterIT ShooterIT merged commit 7b62daf into apache:unstable Nov 19, 2021
ShooterIT added a commit to ShooterIT/kvrocks that referenced this pull request Dec 7, 2021
Co-authored-by: Wang Yuan <wangyuancode@163.com>
@ShooterIT ShooterIT mentioned this pull request Dec 7, 2021
ShooterIT added a commit that referenced this pull request Dec 7, 2021
Co-authored-by: Wang Yuan <wangyuancode@163.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants