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

Optionally ignore imbalanced AZs on MapNode step #215

Closed
wants to merge 2 commits into from

Conversation

aris-aiven
Copy link
Contributor

@aris-aiven aris-aiven commented Apr 16, 2024

When restoring a cluster, the new nodes AZ distribution may not match the one stored in the backup manifest. In this case, the MapNode fails even though the new nodes may actually be better distributed now.

The change allows mapping new nodes to their backup index in the presence of imperfect match between node AZs and backup AZs. A new exception is added to identify the imbalance error and catch it.

The option to the step defaults to false so as to retain backwards compatibility with the previous behaviour.

Ideally, a better solution would be to consider an AZ imbalance metric relative to some target replication factor, instead of naively remapping the backup indices. However, let's say this is good enough for the moment.

When restoring a cluster, the new nodes AZ distribution may not match the one
stored in the backup manifest. In this case, the `MapNode` fails even though the
new nodes may actually be better distributed now.

The change allows mapping new nodes to their backup index in the presence of
imperfect match between node AZs and backup AZs. A new exception is added to
identify the imbalance error and catch it.

The option to the step defaults to false so as to retain backwards compatibility
with the previous behaviour.

Ideally, a better solution would be to consider an AZ imbalance metric relative
to some target replication factor, instead of naively remapping the backup
indices. However, let's say this is good enough for the moment.
@aris-aiven aris-aiven force-pushed the aris-cassandra-ignore-imbalanced-azs branch from cba6e81 to 1884bde Compare April 16, 2024 21:35
@aris-aiven aris-aiven marked this pull request as ready for review April 17, 2024 09:18
@aris-aiven aris-aiven requested a review from a team April 17, 2024 09:18
@kmichel-aiven kmichel-aiven marked this pull request as draft May 1, 2024 18:47
@aris-aiven
Copy link
Contributor Author

This is not a good solution, and the problem shouldn't persist the both backup and new node AZ distributions are balanced.

@aris-aiven aris-aiven closed this May 22, 2024
@aris-aiven aris-aiven deleted the aris-cassandra-ignore-imbalanced-azs branch May 22, 2024 10:21
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.

1 participant