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

Add "2ha.sh" script, managing 2-node Canonical K8s HA AA clusters #692

Merged
merged 9 commits into from
Oct 2, 2024

Commits on Sep 23, 2024

  1. 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.
    petrutlucian94 committed Sep 23, 2024
    Configuration menu
    Copy the full SHA
    3ab1cec View commit details
    Browse the repository at this point in the history

Commits on Sep 24, 2024

  1. Add 2-node HA guide

    We're adding a guide that covers the 2-node A-A HA scenario.
    petrutlucian94 committed Sep 24, 2024
    Configuration menu
    Copy the full SHA
    a4e8828 View commit details
    Browse the repository at this point in the history

Commits on Sep 25, 2024

  1. Configuration menu
    Copy the full SHA
    33ed437 View commit details
    Browse the repository at this point in the history

Commits on Sep 30, 2024

  1. Configuration menu
    Copy the full SHA
    0f8bbca View commit details
    Browse the repository at this point in the history
  2. s/2-node/two-node

    petrutlucian94 committed Sep 30, 2024
    Configuration menu
    Copy the full SHA
    b1925f2 View commit details
    Browse the repository at this point in the history
  3. Address comments

    petrutlucian94 committed Sep 30, 2024
    Configuration menu
    Copy the full SHA
    8d690c3 View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    97c287b View commit details
    Browse the repository at this point in the history
  5. Address comments

    petrutlucian94 committed Sep 30, 2024
    Configuration menu
    Copy the full SHA
    3729dc2 View commit details
    Browse the repository at this point in the history

Commits on Oct 1, 2024

  1. Configuration menu
    Copy the full SHA
    1136524 View commit details
    Browse the repository at this point in the history