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

[DPE-4375] Add cluster manual re-join handler #560

Merged
merged 4 commits into from
Jan 27, 2025

Conversation

sinclert-canonical
Copy link
Contributor

@sinclert-canonical sinclert-canonical commented Jan 21, 2025

This PR adds logic to manually re-join a MySQL replica that has gone OFFLINE, to the cluster, whenever MySQL 8.0.21+ auto re-join attempts have been exhausted.

Description

There are edge cases where a MySQL instance that has lost connection to the cluster it originally belong to (i.e. OFFLINE), exhaust its automatic retries (by default 3 retries, with 5 mins between each, starting with MySQL 8.0.21). For those cases, a manual re-join should be performed.


Depends on #563.

src/charm.py Outdated Show resolved Hide resolved
Copy link
Contributor

@carlcsaposs-canonical carlcsaposs-canonical left a comment

Choose a reason for hiding this comment

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

@sinclert-canonical sinclert-canonical force-pushed the sinclert/4375/cluster-manual-rejoin branch from 37b81ac to 175dc6c Compare January 22, 2025 13:45
@sinclert-canonical
Copy link
Contributor Author

PR waiting on #553 to be merged in order to update mysql charm lib.

@sinclert-canonical sinclert-canonical force-pushed the sinclert/4375/cluster-manual-rejoin branch from 175dc6c to e0431be Compare January 24, 2025 08:37
@sinclert-canonical
Copy link
Contributor Author

Branch rebased from main.

@sinclert-canonical sinclert-canonical merged commit c8e60d4 into main Jan 27, 2025
101 of 102 checks passed
@sinclert-canonical sinclert-canonical deleted the sinclert/4375/cluster-manual-rejoin branch January 27, 2025 08:29
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