Skip to content

Conversation

@yuzefovich
Copy link
Member

We have a pool of distsql runner workers (proportional to vCPUs per node) that execute SetupFlowRequest RPCs in parallel with the main goroutine of the gateway flow. This commit adds two counters to track number of requests done via those parallel workers as well as sequentially via the main goroutine, which should give us signal whether a cluster needs adjustment of sql.distsql.num_runners cluster setting.

Epic: None
Release note: None

@blathers-crl
Copy link

blathers-crl bot commented Jan 7, 2026

It looks like your PR touches production code but doesn't add or edit any test code. Did you consider adding tests to your PR?

🦉 Hoot! I am a Blathers, a bot for CockroachDB. My owner is dev-inf.

@cockroach-teamcity
Copy link
Member

This change is Reviewable

We have a pool of distsql runner workers (proportional to vCPUs per
node) that execute SetupFlowRequest RPCs in parallel with the main
goroutine of the gateway flow. This commit adds two counters to track
number of requests done via those parallel workers as well as
sequentially via the main goroutine, which should give us signal whether
a cluster needs adjustment of `sql.distsql.num_runners` cluster setting.

Release note: None
@yuzefovich yuzefovich force-pushed the distsql-runner-metrics branch from accbb84 to 1d2713d Compare January 8, 2026 00:04
@yuzefovich yuzefovich added backport-25.2.x Flags PRs that need to be backported to 25.2 backport-25.3.x Flags PRs that need to be backported to 25.3 backport-25.4.x Flags PRs that need to be backported to 25.4 backport-26.1.x Flags PRs that need to be backported to 26.1 labels Jan 8, 2026
@yuzefovich yuzefovich marked this pull request as ready for review January 8, 2026 00:14
@yuzefovich yuzefovich requested review from a team as code owners January 8, 2026 00:14
@yuzefovich yuzefovich requested review from golgeek and srosenberg and removed request for a team, golgeek and srosenberg January 8, 2026 00:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

backport-25.2.x Flags PRs that need to be backported to 25.2 backport-25.3.x Flags PRs that need to be backported to 25.3 backport-25.4.x Flags PRs that need to be backported to 25.4 backport-26.1.x Flags PRs that need to be backported to 26.1

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants