Skip to content

Commit cf07ff2

Browse files
authored
Merge pull request #178287 from dennispadia/depadia-hana-ha-changelog
Changes to HANA active-read enabled setup for RHEL
2 parents 3b509d4 + 4de0f72 commit cf07ff2

File tree

1 file changed

+10
-11
lines changed

1 file changed

+10
-11
lines changed

articles/virtual-machines/workloads/sap/sap-hana-high-availability-rhel.md

Lines changed: 10 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ ms.service: virtual-machines-sap
1010
ms.topic: article
1111
ms.tgt_pltfrm: vm-linux
1212
ms.workload: infrastructure
13-
ms.date: 10/08/2021
13+
ms.date: 11/02/2021
1414
ms.author: radeltch
1515

1616
---
@@ -719,7 +719,7 @@ Make sure that the cluster status is ok and that all of the resources are starte
719719

720720
Starting with SAP HANA 2.0 SPS 01 SAP allows Active/Read-Enabled setups for SAP HANA System Replication, where the secondary systems of SAP HANA system replication can be used actively for read-intense workloads. To support such setup in a cluster a second virtual IP address is required which allows clients to access the secondary read-enabled SAP HANA database. To ensure that the secondary replication site can still be accessed after a takeover has occurred the cluster needs to move the virtual IP address around with the secondary of the SAPHana resource.
721721

722-
This section describes the additional steps that are required to manage HANA Active/Read enabled system replication in a Red Hat high availability cluster with second virtual IP.
722+
This section describes the additional steps that are required to manage HANA Active/Read enabled system replication in a Red Hat high availability cluster with second virtual IP.
723723

724724
Before proceeding further, make sure you have fully configured Red Hat High Availability Cluster managing SAP HANA database as described in above segments of the documentation.
725725

@@ -778,10 +778,9 @@ pcs resource create secnc_HN1_03 ocf:heartbeat:azure-lb port=62603
778778
779779
pcs resource group add g_secip_HN1_03 secnc_HN1_03 secvip_HN1_03
780780
781-
RHEL 8.x:
782-
pcs constraint colocation add g_secip_HN1_03 with slave SAPHana_HN1_03-clone 4000
783-
RHEL 7.x:
784-
pcs constraint colocation add g_secip_HN1_03 with slave SAPHana_HN1_03-master 4000
781+
pcs constraint location g_secip_HN1_03 rule score=INFINITY hana_hn1_sync_state eq SOK and hana_hn1_roles eq 4:S:master1:master:worker:master
782+
783+
pcs constraint location g_secip_HN1_03 rule score=4000 hana_hn1_sync_state eq PRIM and hana_hn1_roles eq 4:P:master1:master:worker:master
785784
786785
pcs property set maintenance-mode=false
787786
```
@@ -811,13 +810,13 @@ In next section, you can find the typical set of failover tests to execute.
811810

812811
Be aware of the second virtual IP behavior, while testing a HANA cluster configured with read-enabled secondary:
813812

814-
1. When you migrate **SAPHana_HN1_HDB03** cluster resource to **hn1-db-1**, the second virtual IP will move to the other server **hn1-db-0**. If you have configured AUTOMATED_REGISTER="false" and HANA system replication is not registered automatically, then the second virtual IP will run on **hn1-db-0,** as the server is available and cluster services are online.
815-
816-
2. When testing server crash, the second virtual IP resources (**rsc_secip_HN1_HDB03**) and Azure load balancer port resource (**rsc_secnc_HN1_HDB03**) will run on the primary server alongside the primary virtual IP resources. While the secondary server is down, the applications that are connected to the read-enabled HANA database will connect to the primary HANA database. The behavior is expected as you do not want applications that are connected to read-enabled HANA database to be inaccessible while the time secondary server is unavailable.
813+
1. When you migrate **SAPHana_HN1_03** cluster resource to secondary site **hn1-db-1**, the second virtual IP will continue to run on the same site **hn1-db-1**. If you have set AUTOMATED_REGISTER="true" for the resource and HANA system replication is registered automatically on **hn1-db-0**, then your second virtual IP will also move to **hn1-db-0**.
817814

818-
3. When the secondary server is available and the cluster services are online, the second virtual IP and port resources will automatically move to the secondary server, even though HANA system replication may not be registered as secondary. You need to make sure that you register the secondary HANA database as read enabled before you start cluster services on that server. You can configure the HANA instance cluster resource to automatically register the secondary by setting parameter AUTOMATED_REGISTER=true.
815+
2. On testing server crash, second virtual IP resources (**secvip_HN1_03**) and azure load balancer port resource (**secnc_HN1_03**) will run on primary server alongside the primary virtual IP resources. So, till the time secondary server is down, application that are connected to read-enabled HANA database will connect to primary HANA database. The behavior is expected as you do not want applications that are connected to read-enabled HANA database to be inaccessible till the time secondary server is unavailable.
819816

820-
4. During failover and fallback, the existing connections for applications, using the second virtual IP to connect to the HANA database may be interrupted.
817+
3. During failover and fallback of second virtual IP address, it may happen that the existing connections on applications that uses second virtual IP to connect to the HANA database may get interrupted.
818+
819+
The setup maximizes the time that the second virtual IP resource will be assigned to a node where a healthy SAP HANA instance is running.
821820

822821
## Test the cluster setup
823822

0 commit comments

Comments
 (0)