-
Notifications
You must be signed in to change notification settings - Fork 1.1k
chore(server): Allow using background fibers for DEBUG OBJHIST #5933
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
chore(server): Allow using background fibers for DEBUG OBJHIST #5933
Conversation
Signed-off-by: Vladislav Oleshko <vlad@dragonflydb.io>
Tested it with (Remember that scheduler background fiber settings can be chagned at runtime as well) |
config_registry.RegisterMutable("max_segment_to_consider"); | ||
config_registry.RegisterMutable(" 8000 pipeline_squash"); | ||
config_registry.RegisterMutable("lua_mem_gc_threshold"); | ||
config_registry.RegisterMutable("background_debug_jobs"); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
can you please add same support for "dfly expire" ? maybe rename background_debug_jobs
to background_jobs
?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
DFLY EXPIRE is a transactional command. I can make it non-transactional and move the traversal to some common header, but I'd suggest to do so in a different PR
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
we should make it non-transactional.
Co-authored-by: Roman Gershman <romange@gmail.com> Signed-off-by: Vladislav <vladislav.oleshko@gmail.com>
LGTM, make sure tests pass |
DEBUG OBJHIST
GetRunningTimeCycles
-> Should make it safer to run it on busy datastores
I though of adding the same functionality to huffman compuations, but they're quite stateful/conditional, so it would've required more work 😞