Tejaskriya commented on PR #8260: URL: https://github.com/apache/ozone/pull/8260#issuecomment-2796108416
@peterxcli , as we are using BackgroundService, there is no pre-existing way to directly add a throttle on cpu usage. We can sleep + resume the thread, but afaik, compaction will be holding a lock, so I am not sure if this could cause issues, could you share your insights on this? Moreover, rocksDB already takes care of executing compaction when writes are less: > CompactRangeOptions::allow_write_stall When set to true, it will execute immediately even if doing so would cause the DB to enter write stall mode. Otherwise, it'll sleep until load is low enough. Default value is false -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected] --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
