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

sap_ha_install_hana_hsr: fixes to work for multiple secondaries #866

Merged
merged 1 commit into from
Sep 17, 2024

Conversation

ja9fuchs
Copy link
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
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
3 of 4 checks passed
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