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

backups: select random node to download backup #230

Merged
merged 1 commit into from
Nov 15, 2023

Conversation

WanzenBug
Copy link
Member

When chosing a node to download our backup, we should prevent the same node from downloading the backups all the time.

In the case we get a "preferred" topology, this is left to the kubernetes scheduler/CSI controllers: they should select different preferred nodes.

In the case we have no preferred topology given to use, we should do our own random selection. Otherwise we end up with the same node being chosen to download backups all the time, while the others sit idle.

When chosing a node to download our backup, we should prevent the same node
from downloading the backups all the time.

In the case we get a "preferred" topology, this is left to the kubernetes
scheduler/CSI controllers: they should select different preferred nodes.

In the case we have no preferred topology given to use, we should do our
own random selection. Otherwise we end up with the same node being chosen
to download backups all the time, while the others sit idle.

Signed-off-by: Moritz Wanzenböck <[email protected]>
@phoenix-bjoern
Copy link

LGTM. Thanks @WanzenBug !

Copy link
Member

@rck rck left a comment

Choose a reason for hiding this comment

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

LGTM

@rck rck merged commit 6af54bb into master Nov 15, 2023
5 checks passed
@rck rck deleted the random-backup-restore-nodes branch November 15, 2023 09:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants