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

Publish runtime metric in seconds #5893

Merged
merged 7 commits into from
Aug 11, 2022
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
17 changes: 17 additions & 0 deletions src/v/resource_mgmt/cpu_scheduling.h
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,24 @@ class scheduling_groups final {
}
ss::scheduling_group archival_upload() { return _archival_upload; }

std::vector<std::reference_wrapper<const ss::scheduling_group>>
BenPope marked this conversation as resolved.
Show resolved Hide resolved
all_scheduling_groups() const {
return {
std::cref(_default),
std::cref(_admin),
std::cref(_raft),
std::cref(_kafka),
std::cref(_cluster),
std::cref(_coproc),
std::cref(_cache_background_reclaim),
std::cref(_compaction),
std::cref(_raft_learner_recovery),
std::cref(_archival_upload)};
}

private:
ss::scheduling_group _default{
seastar::default_scheduling_group()}; // created and managed by seastar
Comment on lines +84 to +85
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good catch!

ss::scheduling_group _admin;
ss::scheduling_group _raft;
ss::scheduling_group _kafka;
Expand Down