-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[#24540] docdb: Added flag rocksdb_allow_multiple_pending_compactions…
…_for_priority_thread_pool Summary: Idea is to avoid adding new compaction task for the same RocksDB instance while we already have a pending one. That was the way compaction logic worked in original RocksDB but due to some reasons wasn’t implemented for compaction tasks scheduling logic which is used with priority thread pool. As we saw earlier scheduling compaction tasks for the same RocksDB can lead to concurrent compaction tasks for the same tablet and also interferes with compaction picker logic making it unable to select (and as a result execute) a new compaction task for delayed time. This change adds `rocksdb_allow_multiple_pending_compactions_for_priority_thread_pool` flag which limits number of pending compaction to 1 small and 1 large when set to false. Jira: DB-13574 Test Plan: `ybd --cxx-test rocksdb_db_compaction_test --gtest_filter DBCompactionTest.LimitPendingCompactionTasks -n 50` for debug/asan/tsan Reviewers: sergei, arybochkin Reviewed By: sergei, arybochkin Subscribers: rthallam, ybase Tags: #jenkins-ready Differential Revision: https://phorge.dev.yugabyte.com/D39261
- Loading branch information
Showing
9 changed files
with
446 additions
and
94 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.