-
Notifications
You must be signed in to change notification settings - Fork 467
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 a slow flag to commands with heavy disk IO #2474
Comments
Is there any mechanism that will accompany this flag after it is added? And what is the metric for heavy disk IO? |
Generally there're easier way and heavier way. Tagging can allow better techniques for scheduling, like independent io-task-pool or throttle for these tasks ( These techniques doesn't be implemented now, lol). Generally for user task "heavy request" might have a lower priority and avoid affect the light operations
No, lol, I guess this should be guessed by user and a bit hard to analysis, especially on zset or other heavy structure |
A simple method is to check that if a command only involves a constant number of rocksdb read/writes, e.g. Otherwise it can be a time consuming operation, e.g. |
Like mentioned by @mapleFU , it has potential benefits for optimization and scheduling. Also, we can generate some doc from it to let users know which commands are time-consuming. |
Besides, the heavy disk "write" IO api might have higher risk on new Context api: #2332 |
Can I be assigned this issue? |
@jonathanc-n Assigned, thank you! |
Search before asking
Motivation
We can add a new command flag e.g.
slow
and apply it to all commands that can lead to heavy disk IO (rocksdb read/write).Solution
No response
Are you willing to submit a PR?
The text was updated successfully, but these errors were encountered: