Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
110418: rangefeed: shard the rangefeed scheduler r=erikgrinaker a=erikgrinaker

This patch shards the rangefeed scheduler, to reduce contention on the scheduler mutex. Each shard has a separate mutex and worker pool, and processors are assigned round-robin to shards.

The default shard size is 8 workers, which corresponds to 2 CPUs with default settings. This is configurable via the environment variable `COCKROACH_RANGEFEED_SCHEDULER_SHARD_SIZE`.

Resolves cockroachdb#110427.

Epic: none
Release note: None

Co-authored-by: Erik Grinaker <[email protected]>
  • Loading branch information
craig[bot] and erikgrinaker committed Sep 18, 2023
2 parents 6cbd07e + c5cedc8 commit e25067a
Show file tree
Hide file tree
Showing 4 changed files with 374 additions and 171 deletions.
Loading

0 comments on commit e25067a

Please sign in to comment.