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

[v24.2.x] Fix dissemination large shard count #22982

Conversation

vbotbuildovich
Copy link
Collaborator

Backport of PR #22977

The `update_leader_request` may only contain few of ntp leader updates.
In this case using a `fragmented_vector` with large chunk size is a
memory waste

Signed-off-by: Michał Maślanka <michal@redpanda.com>
(cherry picked from commit e1be74a)
Previously each time the leadership update request was received by the
`metadata_dissemination_handler` it created a copy for each of the shard
on the shard handling the request. This is inefficient and may lead to
OOM on the handler shard (especially for very large machines).

Instead of creating a copy for each shard we can simply use the const
reference as the updates vector doesn't change and it is safe to access
it from other cores.

Signed-off-by: Michał Maślanka <michal@redpanda.com>
(cherry picked from commit 8e4f51f)
@vbotbuildovich vbotbuildovich added this to the v24.2.x-next milestone Aug 21, 2024
@vbotbuildovich vbotbuildovich added the kind/backport PRs targeting a stable branch label Aug 21, 2024
@mmaslankaprv mmaslankaprv modified the milestones: v24.2.x-next, v24.2.3 Aug 21, 2024
@mmaslankaprv
Copy link
Member

/ci-repeat 1

@BenPope BenPope modified the milestones: v24.2.3, v24.2.4 Aug 22, 2024
@piyushredpanda piyushredpanda modified the milestones: v24.2.4, v24.2.3 Aug 22, 2024
@piyushredpanda piyushredpanda merged commit 21b5445 into redpanda-data:v24.2.x Aug 22, 2024
16 of 19 checks passed
@piyushredpanda
Copy link
Contributor

https://redpandadata.atlassian.net/browse/CORE-2632 known CI test failure

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