Skip to content

sap_ha_install_hana_hsr: fixes to work for multiple secondaries#866

Merged
ja9fuchs merged 1 commit into
sap-linuxlab:devfrom
ja9fuchs:hsr-enh-multi-target
Sep 17, 2024
Merged

sap_ha_install_hana_hsr: fixes to work for multiple secondaries#866
ja9fuchs merged 1 commit into
sap-linuxlab:devfrom
ja9fuchs:hsr-enh-multi-target

Conversation

@ja9fuchs
Copy link
Copy Markdown
Contributor

  • improved some loops over the cluster nodes list using selectattr
  • new task to validate that exactly 1 primary is defined and at least 1 secondary
  • throttle 'secondary' tasks that execute on the primary at the same time otherwise and lead to conflicts
  • some tasks only need to run once

This enables the base setup of Multi-Target System Replication.

Tested with 1 primary and 2 secondaries:

 sap_ha_install_hana_hsr_cluster_nodes:
      - hana_site: DC1
        node_name: su1hana1
        node_ip: <private node ip>
        node_role: primary
      - hana_site: DC2
        node_name: su1hana2
        node_ip: <private node ip>
        node_role: secondary
      - hana_site: DC3
        node_name: su1hana3
        node_ip: <private node ip>
        node_role: secondary

Copy link
Copy Markdown
Contributor

@marcelmamula marcelmamula left a comment

Choose a reason for hiding this comment

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

LGTM, Tested on my cluster in AWS.

@ja9fuchs ja9fuchs merged commit 63c6f98 into sap-linuxlab:dev Sep 17, 2024
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.

2 participants