Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
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