-
Notifications
You must be signed in to change notification settings - Fork 13
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
Add "2ha.sh" script, managing 2-node Canonical K8s HA AA clusters #692
Merged
Commits on Sep 23, 2024
-
Add "2ha.sh" script, managing 2-node Canonical K8s HA AA clusters
Scenario overview: * Canonical K8s cluster containing 2 nodes * Dqlite data store (unable to obtain quorum) * Primary node dqlite files stored on DRBD * sync block-level replication between the two nodes * cluster monitoring and failover handled through Pacemaker Script functionality: * boostrap the service * wait for a DRBD primary to be elected * detect the node role based on the DRBD status and Dqlite state * have the replica wait for the primary to be ready before continuing * recover Dqlite after failovers * transfer and apply recovery files to secondary nodes * transfer Dqlite files to DRBD and other backup locations, creating necessary symlinks * install required packages * purge all K8s data * clear Pacemaker taints * remove recovery data "2ha.sh start_service" is intended to be used as part of a systemd unit that bootstraps the k8s services, coordinating with the other node and taking any necessary steps to recover Dqlite.
Configuration menu - View commit details
-
Copy full SHA for 3ab1cec - Browse repository at this point
Copy the full SHA 3ab1cecView commit details
Commits on Sep 24, 2024
-
We're adding a guide that covers the 2-node A-A HA scenario.
Configuration menu - View commit details
-
Copy full SHA for a4e8828 - Browse repository at this point
Copy the full SHA a4e8828View commit details
Commits on Sep 25, 2024
-
Configuration menu - View commit details
-
Copy full SHA for 33ed437 - Browse repository at this point
Copy the full SHA 33ed437View commit details
Commits on Sep 30, 2024
-
Configuration menu - View commit details
-
Copy full SHA for 0f8bbca - Browse repository at this point
Copy the full SHA 0f8bbcaView commit details -
Configuration menu - View commit details
-
Copy full SHA for b1925f2 - Browse repository at this point
Copy the full SHA b1925f2View commit details -
Configuration menu - View commit details
-
Copy full SHA for 8d690c3 - Browse repository at this point
Copy the full SHA 8d690c3View commit details -
Configuration menu - View commit details
-
Copy full SHA for 97c287b - Browse repository at this point
Copy the full SHA 97c287bView commit details -
Configuration menu - View commit details
-
Copy full SHA for 3729dc2 - Browse repository at this point
Copy the full SHA 3729dc2View commit details
Commits on Oct 1, 2024
-
Configuration menu - View commit details
-
Copy full SHA for 1136524 - Browse repository at this point
Copy the full SHA 1136524View commit details
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.