Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[v23.1.x] Put consumers in their own scheduling group #10410

Conversation

vbotbuildovich
Copy link
Collaborator

@vbotbuildovich vbotbuildovich commented Apr 27, 2023

Backport of PR #10398

Release Notes

  • none

By analogy with smp_groups which is already public we need to
access this outside of application.cc to pass the right scheduling
groups through to instantiations of services in our redpanda fixture.

(cherry picked from commit d505693)
This scheduling group is used for consumer fetch processing. We assign
it the same priority as the default group (where most other kafka
handling takes place), but by putting it into its own group we prevent
non-fetch requests from being significantly delayed when fetch requests
use all the CPU.

Issue redpanda-data/core-internal#435

(cherry picked from commit d133843)
Add the with_scheduling_group call to switch to the kafka scheduling
group in the fetch handling flow. See prior change for context.

Issue redpanda-data/core-internal/redpanda-data#435.

(cherry picked from commit 9a93a9c)
Introduce a config tunable which would let users set the scheduling
group to use for kafka fetch request back to the default group.

Also useful for quick A/B testing of the perf effect of the change.

(cherry picked from commit bc72f5e)
@vbotbuildovich vbotbuildovich added this to the v23.1.x-next milestone Apr 27, 2023
@vbotbuildovich vbotbuildovich added the kind/backport PRs targeting a stable branch label Apr 27, 2023
@piyushredpanda piyushredpanda modified the milestones: v23.1.x-next, v23.1.8 Apr 27, 2023
@mmaslankaprv mmaslankaprv marked this pull request as ready for review April 27, 2023 14:50
@mmaslankaprv mmaslankaprv merged commit 550ba18 into redpanda-data:v23.1.x Apr 27, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/redpanda kind/backport PRs targeting a stable branch
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants