IBM Cloud Docs
Implementing High Availability for SAP Applications on IBM Power Virtual Server

Implementing High Availability for SAP Applications on IBM Power Virtual Server

Running SAP on IBM® Power® Virtual Server offers a consistent platform for SAP HANA-based and traditional applications, world-class performance, resiliency for critical workloads, and a flexible infrastructure.

Use the following information to understand how to implement high availability solutions for SAP systems by using Power Virtual Server instances.

SAP system architecture

The main components of an SAP system are as follows.

SAP HANA system

The SAP HANA system provides the tenant database for SAP application servers.

SAP application server

SAP application servers provide the functional part of an SAP S/4HANA or other application solution. All customization and application data of an SAP system is stored in a tenant database of an SAP HANA system.

An SAP application system is installed and configured as a single unit and consists of the following application instances.

  • One ABAP System Central Services instance (ASCS instance) Each SAP application system has exactly one ASCS instance, which consists of a message server and an enqueue server.

  • One or more application server instances (AS instances)

    • The primary application server (PAS) is the first AS instance that is installed for an ABAP system.
    • Other AS instances that are installed for an ABAP system are called additional application servers (AAS).

Both the application server instances and the ASCS instance depend on a shared file system and require read/write access to it.

Shared file system

Typically, the shared file system is exported on an NFS server and mounted on all instances.

Figure 1 illustrates the technical components of an SAP system.

Figure 1. Technical components for SAP systems
Technical components for SAP systems

Considerations for implementing an SAP high availability solution

For high availability protection, it is recommended to install application servers redundantly. Install at least two application servers (PAS and AAS) and use login groups to implement load balancing. If an application server fails, all user sessions that are connected to that instance are stopped. The user logs in again, and load balancing redirects the user to another application server that is still running.

The other technical components, such as the ASCS instance, the SAP HANA database, and the shared file system, are single points of failure and must be protected.

  • ASCS instance

    The best way to safeguard the ASCS instance is to deploy an Enqueue Replication Server (ERS) instance on an extra virtual server and use HA clustering software for automating failover.

    Install ASCS and ERS either on a shared disk that is attached to both virtual server instances or on an NFS file system.

    The enqueue server of the ASCS instance manages the lock table, and the ERS creates a replicated copy of the lock table in its main memory. If the enqueue server must be restarted, the lock table is rebuilt by using the copy on the ERS, and all of the locks are retained.

    A simple restart of the message server is sufficient because no data needs to be retained.

    Follow the steps in Configuring High Availability for SAP S/4HANA (ASCS and ERS) in a RHEL HA Add-On Cluster to set up an HA cluster for the ABAP System Central Services instance.

  • Shared file system

    The recommended method of protecting the NFS server is to implement an extra virtual server instance. Then, create the NFS exported file systems on shared disks that are attached to both virtual server instances and automate the failover by using HA cluster software.

    Follow the steps in Configuring an Active-Passive NFS Server in a Red Hat High Availability Cluster to set up an HA cluster for the shared file system.

  • SAP HANA system

    SAP HANA provides two approaches to scale a system: scale-up and scale-out. With the comprehensive and highly scalable set of IBM Power Virtual Server certified profiles for SAP HANA that are available in IBM Power Virtual Server, the focus is on SAP HANA scale-up solutions.

    The best way to protect an SAP HANA system is to set up a secondary SAP HANA system on a separate virtual server instance. Then, configure SAP HANA system replication, and automate failover with HA cluster software.

The following figure shows an architectural overview of a highly available SAP system that is implemented on Power Virtual Server.

Figure 2. SAP on Power Virtual Server HA architecture overview
SAP on Power Virtual Server HA architecture overview

SAP HANA high availability solution scenarios

The solution varies depending on the recovery time objective (RTO).

Variations for high availability solutions for SAP HANA
Scenario Typical RTO Comment
Performance Optimized A few minutes Unless you have specific requirements, this scenario is the default.
Active/Active (read enabled) A few minutes In an Active/Active (read enabled) configuration, SAP HANA system replication allows read access to the database content on the secondary system.
Cost Optimized A few tens of minutes In a cost-optimized configuration, a nonproduction SAP HANA system runs on the secondary node during normal operation. The hardware resources on the secondary node are shared between the nonproduction system and the SAP HANA System Replication secondary. The memory consumption of the production SAP HANA System Replication secondary is reduced by turning off the preloading of data in the column tables. When a failover occurs, the nonproduction instance is automatically stopped before the node takes over the production workload. The take-over time is longer compared to a performance-optimized configuration.

Depending on your requirements, select the documentation for one of the scenarios.

SAP HANA disaster recovery solution scenarios

For extra protection of the database system, replicate the SAP HANA system to a third system that is located in a different region by using SAP HANA system replication. Depending on your requirements, select one of the two available topologies.

SAP HANA high availability solution in a multizone region environment

A subnet in IBM Power Virtual Server cannot span multiple workspaces. It is not possible to move a service IP address to a second workspace and continue to use it from VPC or other workspaces to access the services provided. However, this capability is required to set up a highly available SAP HANA system replication scenario in a multizone region environment.

The powervs-subnet resource agent addresses this limitation. During a takeover event, the resource agent moves the entire subnet, including the IP address, from one workspace to another.

The following figures illustrate this scenario.

Two virtual server instances are deployed in separate workspaces with different subnets.

  • SAP HANA is installed on both virtual server instances, and SAP HANA System Replication is configured.
  • The two virtual server instances are configured as a two-node high availability cluster with their own subnets.
  • A cluster resource that uses the powervs-subnet resource agent is configured for Subnet 3 and IP address 3. Choose a small range for the Classless Inter-Domain Routing (CIDR), only IP address 3 and an IP address for the gateway are allocated in Subnet 3.
  • SAP HANA database clients use IP address 3 connect to the database.

During normal operation

  • Subnet 3 is created in workspace 1.
  • Subnet 3 is attached to virtual server instance 1.
  • IP address 3 is configured on virtual server instance 1.
  • The SAP HANA primary is active on virtual server instance 1, the SAP HANA secondary is active on virtual server instance 2.

Figure 3. SAP HANA on Power Virtual Server in multizone region HA overview
SAP HANA on Power Virtual Server in multizone region HA overview

After a cluster takeover

  • Subnet 3 is created in workspace 2.
  • Subnet 3 is attached to virtual server instance 2.
  • IP address 3 is configured on virtual server instance 2.
  • The SAP HANA primary is active on virtual server instance 2.

Figure 4. SAP HANA on Power Virtual Server in multizone region HA takeover
SAP HANA on Power Virtual Server in multizone region HA takeover

See the information in Implementing a RHEL HA Add-On Cluster on IBM Power Virtual Server in a multizone region environment on how to prepare and configure a Red Hat Enterprise Linux (RHEL) High Availability (HA) cluster for the powervs-subnet resource agent.