Dieser Inhalt ist in der von Ihnen ausgewählten Sprache nicht verfügbar.
Chapter 1. Introduction to SAP NetWeaver or SAP S/4HANA High Availability
Deploy two or more systems in a Pacemaker cluster and configure your SAP NetWeaver or S/4HANA application server instances in the cluster for an advanced high availability (HA) of your applications. The cluster HA setup helps you manage your SAP services automatically in the case of a failure.
1.1. Terminology Link kopierenLink in die Zwischenablage kopiert!
node
One host or system in a HA cluster setup, also called a cluster member.
cluster
Cluster is the high-availability setup using the Pacemaker cluster manager from the RHEL HA Add-On. It consists of two or more members, or nodes.
instance
One dedicated SAP application server installation.
1.2. SAP NetWeaver or S/4HANA High Availability Link kopierenLink in die Zwischenablage kopiert!
An SAP NetWeaver or S/4HANA environment as a high-availability system consists of a set of different instances. The central services instance (SCS or ASCS) and the database instances are single points of failure. Therefore, it is important that you configure an HA solution to protect these instances to avoid data loss or corruption and unnecessary outages of the SAP system.
For the application servers, the enqueue lock table, which is managed by the Standalone Enqueue Server in the ASCS instance, is the most critical component. To enhance resilience, the Enqueue Replication Server (ERS) keeps a backup copy of the Standalone Enqueue Server’s lock table. In an HA setup the ASCS instance runs on a different server than the ERS instance to keep the lock table and its backup separate.
The Standalone Enqueue Server 2 and Enqueue Replicator 2 are improved versions of the classic enqueue replication components.
Figure1.1: SAP application server instances in an HA cluster setup using a shared filesystem for the instances
Standalone Enqueue Server (ENSA1)
SAP NetWeaver and SAP S/4HANA older than ABAP Platform 2020 support enqueue replication as ENSA1. When there is an issue with the ASCS instance in an ENSA1 setup, it is required that the ASCS instance recover next to the ERS instance. That means an HA cluster must start the ASCS instance on the host where the ERS instance is currently running. Using the classic enqueue replication components, this is necessary to restore the enqueue lock table from the backup managed by the ERS instance into the ASCS instance. See The SAP Lock Concept and Standalone Enqueue Server for more information on how the Standalone Enqueue Server (ENSA1) works.
Standalone Enqueue Server 2 (ENSA2)
Starting with SAP NetWeaver 7.52 and S/4HANA, the ENSA2 setup is supported. Starting with S/4HANA 1809, ENSA2 is the default installation. Contrary to the ENSA1 setup, the new Standalone Enqueue Server 2 does not have to follow the Enqueue Replicator 2 anymore. This means that the HA cluster can start the ASCS instance on any available cluster node, no matter on which node the ERS instance is running. The new version is able to restore the lock table through the network connection between the ASCS and ERS instances. Using the ENSA2 configuration enhances the flexibility and allows the configuration of more than two HA cluster nodes for even higher resiliency. For more information on ENSA2, see SAP Note 2630416 - Support for Standalone Enqueue Server 2. Using SAP S/4HANA, you can also configure a cost-optimized HA cluster. In such a setup you configure the cluster for managing the HANA system replication as well as managing the ASCS and ERS instances. For more information, see Configuring a Cost-Optimized SAP S/4HANA HA cluster (HANA System Replication + ENSA2) using the RHEL HA Add-On.
Multi-SID support
You can manage the ASCS/ERS instances for multiple SAP environments (Multi-SID) within the same HA cluster. In this case you must take additional considerations into account.
- Unique SID and instance number
To avoid conflicts, you must install each pair of ASCS/ERS instances with a different SID. Additionally, each instance must have a unique instance number, even if the instances belong to different SIDs.
- Sizing
Ensure that each HA cluster node meets the SAP requirements for sizing to support multiple instances. You can check SAP resources like Hardware Requirements or Sizing - Helping our Customers Determine Their Hardware Requirements.
1.3. Cluster resource agents for SAP SAP application server instances Link kopierenLink in die Zwischenablage kopiert!
The following two packages provide the components for managing SAP application server instances in a HA cluster:
-
resource-agents-sap -
sap-cluster-connector(only needed when the SAP HA Interface is used)
You must use resource-agents-sap-4.15.1 or a newer version for the simplified filesystem configuration. Older versions do not provide the mandatory SAPStartSrv resource agent.
The packages provide the resource agents and additional tools for your setup:
The listed packages provide the following resource agents and additional tools for your setup:
SAPDatabase
The
SAPDatabaseresource agent manages a legacy database for a SAP environment, like Oracle, IBM DB2, SAP ASE or SAP MaxDB. You can use this resource only in combination with a SAP NetWeaver setup.SAPInstance
The
SAPInstanceresource agent manages the SAP application server instances using the SAP Start Service that is part of the SAP Kernel. In addition to the ASCS, ERS, PAS, and AAS instances, it can also manage other SAP instance types, like standalone SAP Web Dispatcher or standalone SAP Gateway instances. See How to manage standalone SAP Web Dispatcher instances using the RHEL HA Add-On for information on how to configure a pacemaker resource for managing such instances. The SAP startup framework is responsible for all operations of theSAPInstanceresource agent, and it communicates with thesapstartsrvprocess of each SAP instance for status information.sapstartsrvknows 4 status colors:Expand Color
Meaning
GREEN
Everything is fine.
YELLOW
Something is wrong, but the service is still working.
RED
The service does not work.
GRAY
The service is stopped.
The
SAPInstanceresource agent interprets GREEN and YELLOW as healthy, and it reports the statuses RED and GRAY asNOT_RUNNINGto the cluster. The versions of theSAPInstanceresource agent shipped with RHEL 9 also support SAP instances that are managed by the systemd-enabled SAP Startup framework. See The Systemd-Based SAP Startup Framework for further details.SAPStartSrv
The
SAPStartSrvresource agent manages thesapstartsrvservice for a given SAP application instance. It is responsible for starting, stopping and probing the service. Configure it without a recurring monitor operation to avoid resource group and instance failures. TheSAPInstanceresource automatically handles the recovery of a failedsapstartsrvprocess itself. TheSAPStartSrvresource must be part of the instance resource group, and it must start before and stop after theSAPInstanceresource.sapping and sappong
The
sappingandsappongsystemd services manage the visibility of thesapservicesfile during the system startup process. This mechanism prevents thesapinitstartup script from automatically starting the SAP instance services when the instances are managed by the cluster. These two services are part of theresource-agents-sappackage. Thesappingsystemd service runs before thesapinitstartup script and renames the/usr/sap/sapservicesfile temporarily during the system startup to make it unavailable tosapinit. Thesappongsystemd service runs after thesapinitscript and restores the/usr/sap/sapservicesfile to the original name to make it available again for manual control.sap_cluster_connector
The
sap_cluster_connectortool connects the SAP HA interface with the Pacemaker cluster. The SAP application instance uses the tool to query the cluster for resource status information or to execute cluster commands for resource actions, like stopping a resource. Configure this interface for any individual instance that you configure in the cluster but also want to control using SAP tools. Thesap_cluster_connectortool is optional and provided in the packagesap-cluster-connector.
1.4. Support policies for SAP NetWeaver or S/4HANA Link kopierenLink in die Zwischenablage kopiert!
Red Hat supports the following components of the solution:
- Basic operating system configuration for running SAP NetWeaver or S/4HANA on RHEL, based on SAP guidelines
- RHEL HA Add-On
- Red Hat HA solutions for SAP NetWeaver or S/4HANA