-
Notifications
You must be signed in to change notification settings - Fork 3.8k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
kvserver: distribute
COCKROACH_SCHEDULER_CONCURRENCY
across stores
`COCKROACH_SCHEDULER_CONCURRENCY` defaults to 8 per CPU core, capped at 96, to avoid putting excessive pressure on the Go scheduler. However, it was applied individually to each store, which means that nodes with e.g. 10 stores would run up to 960 workers. This can lead to scheduler thrashing, as well as excessive memory usage since it also serves to bound the amount of data pulled into memory for concurrent Raft ready processing. This patch instead divides the worker count across stores. Epic: none Release note (ops change): the default Raft scheduler concurrency, controlled by `COCKROACH_SCHEDULER_CONCURRENCY` and defaulting to 8 per CPU core capped at 96, is now divided evenly across stores instead of applying individually per store. This avoids excessive Go scheduler pressure and memory usage on nodes with many stores. The common case of 1 store per node is not affected.
- Loading branch information
1 parent
e514a07
commit a9ed7be
Showing
4 changed files
with
45 additions
and
5 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
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