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.3.x] c/health: reduced number of health_node_report copies #18017

Conversation

mmaslankaprv
Copy link
Member

Backport of PR #17863

Every time the `health_monitor_backend::get_cluster_health` was called
we returned a copy of each node health report. The health report data
structure maybe large as it contains all partition replica information.

To reduce the number of copies while still not interrupting asynchronous
iteration over the health report changed the API to return a list of
shared pointers.

Node health reports aren't modified in place by health monitor backend
rather than that they are completely replaced. This makes it easy to
share the underlying data without worrying about concurrent access.

Signed-off-by: Michał Maślanka <michal@redpanda.com>
(cherry picked from commit 226b9bf)
@mmaslankaprv mmaslankaprv added this to the v23.3.x-next milestone Apr 23, 2024
@mmaslankaprv mmaslankaprv added the kind/backport PRs targeting a stable branch label Apr 23, 2024
@mmaslankaprv mmaslankaprv marked this pull request as ready for review April 23, 2024 06:30
Signed-off-by: Michał Maślanka <michal@redpanda.com>
@mmaslankaprv
Copy link
Member Author

known ci-failure

@mmaslankaprv mmaslankaprv merged commit 3a5508e into redpanda-data:v23.3.x Apr 23, 2024
12 of 16 checks passed
@mmaslankaprv mmaslankaprv deleted the vbotbuildovich/backport-17863-v23.3.x-504 branch April 23, 2024 11:51
@piyushredpanda piyushredpanda modified the milestones: v23.3.x-next, v23.3.13 Apr 23, 2024
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.

3 participants