Uploaded image for project: 'Red Hat OpenStack Services on OpenShift'
  1. Red Hat OpenStack Services on OpenShift
  2. OSPRH-7405

create wsrep_notify.sh approach that can assign a single write master

XMLWordPrintable

    • False
    • Hide

      None

      Show
      None
    • False
    • ?
    • ?
    • ?
    • ?
    • None
    • Release Note Not Required
    • Hide

      RHOSO18Beta waived:PIDONE: Galera repicas

      Show
      RHOSO18Beta waived: PIDONE : Galera repicas
    • Approved
    • PIDONE Board
    • Critical

      dciabrin:

      ok so in the mean time, here's my backup plan. I'm going to
      enable wsrep_notify_cmd=/path/wsrep_notify.sh in the galera config to run a
      bash hook whenever a node get's connected to the primary componenat

      the script is being called by galera on all the pods. It's passing the list of
      members/pods that are in the active partition IIUC, so I'll sort this list of
      UUID, pick the 1st one and the pod that has the 1st UUID will be in charge of
      updating the "active" endpoint in the k8s service.

      that way i'm guaranteed that only a node from the active partition will be
      elected, and only one will do the update.

      I think that's a good approximation of A/P and it doesn't introduce much
      complexity

              rhn-engineering-dciabrin Damien Ciabrini
              rhn-engineering-mbayer Michael Bayer (Inactive)
              rhos-dfg-pidone
              Votes:
              0 Vote for this issue
              Watchers:
              5 Start watching this issue

                Created:
                Updated:
                Resolved: