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

  • 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

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.

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)
Note

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 SAPDatabase resource 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 SAPInstance resource 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 the SAPInstance resource agent, and it communicates with the sapstartsrv process of each SAP instance for status information. sapstartsrv knows 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 SAPInstance resource agent interprets GREEN and YELLOW as healthy, and it reports the statuses RED and GRAY as NOT_RUNNING to the cluster. The versions of the SAPInstance resource 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 SAPStartSrv resource agent manages the sapstartsrv service 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. The SAPInstance resource automatically handles the recovery of a failed sapstartsrv process itself. The SAPStartSrv resource must be part of the instance resource group, and it must start before and stop after the SAPInstance resource.

  • sapping and sappong

    The sapping and sappong systemd services manage the visibility of the sapservices file during the system startup process. This mechanism prevents the sapinit startup script from automatically starting the SAP instance services when the instances are managed by the cluster. These two services are part of the resource-agents-sap package. The sapping systemd service runs before the sapinit startup script and renames the /usr/sap/sapservices file temporarily during the system startup to make it unavailable to sapinit. The sappong systemd service runs after the sapinit script and restores the /usr/sap/sapservices file to the original name to make it available again for manual control.

  • sap_cluster_connector

    The sap_cluster_connector tool 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. The sap_cluster_connector tool is optional and provided in the package sap-cluster-connector.

1.4. Support policies for SAP NetWeaver or S/4HANA

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
Red Hat logoGithubredditYoutubeTwitter

Learn

Try, buy, & sell

Communities

About Red Hat Documentation

We help Red Hat users innovate and achieve their goals with our products and services with content they can trust. Explore our recent updates.

Making open source more inclusive

Red Hat is committed to replacing problematic language in our code, documentation, and web properties. For more details, see the Red Hat Blog.

About Red Hat

We deliver hardened solutions that make it easier for enterprises to work across platforms and environments, from the core datacenter to the network edge.

Theme

© 2026 Red Hat
Back to top