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.1.x] Respect target local retention settings when moving cloud enabled partition replicas #19834

Conversation

vbotbuildovich
Copy link
Collaborator

Backport of PR #19820

With non strict local retention the storage manager will not trigger
data eviction immediately when partition is eligible for eviction but
will allow local data to use the whole available disk space. Using
standard partition movement policy would force raft to deliver all local
data over the network which is not necessary and might take long time.

Changed the controller backend to always override the learner start
offset when non strict retention is enabled and deliver over the network
only data that would normally be retained if strict local retention is
turned on.

Signed-off-by: Michał Maślanka <michal@redpanda.com>
(cherry picked from commit bf97be3)
Signed-off-by: Michał Maślanka <michal@redpanda.com>
(cherry picked from commit 4d56cfe)
@vbotbuildovich vbotbuildovich added this to the v24.1.x-next milestone Jun 13, 2024
@vbotbuildovich vbotbuildovich added the kind/backport PRs targeting a stable branch label Jun 13, 2024
@mmaslankaprv mmaslankaprv merged commit ef8cee9 into redpanda-data:v24.1.x Jun 13, 2024
19 checks passed
@piyushredpanda piyushredpanda modified the milestones: v24.1.x-next, v24.1.8 Jun 14, 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