The pacemaker for your availability!

High availability with Pacemaker

Nail Karaduman & Martin Rieger

SAP Technology

    In today's digital world, a company's success depends heavily on the availability of its IT infrastructure.

    The failure of a business-critical application can lead to significant production disruptions, lost revenue and damage to your reputation. The solution? A tailored high-availability solution that keeps your IT systems running – even when things get critical

    • Our approach: Pacemaker.

    Why do I need high availability?

    Every minute that a service or application is down can cost companies dearly. Whether through production downtime or missed business opportunities – availability is everything. But what exactly does “high availability” mean?

    High availability ensures that an IT system or application is available with virtually no interruption. With technologies such as Pacemaker and the use of high-availability clusters, we achieve maximum uptime for your most important applications. This applies in particular to business-critical environments such as SAP application servers, databases, storage solutions and other applications, web services and container services.

      Pacemaker: the pacemaker for your IT

      Pacemaker is one of the leading open-source cluster management solutions and is ideally suited to ensuring high availability. It offers:

      • Seamless integration into different environments, whether on-premise, cloud or hybrid infrastructures
      • Automatic failover, which switches over to another node automatically if a node fails, to minimise downtime
      • Fencing and Stonith mechanisms to prevent inconsistencies and data corruption.
      • With Pacemaker and a suitable configuration, we support not only SAP systems and HANA databases but also many other systems, such as web applications and custom-developed software solutions. We also offer a broad portfolio of storage solutions and support container services.

      How does high availability work with Pacemaker?

      To build a high-availability cluster with Pacemaker, we use a combination of tools and technologies that keep applications and services available at all times – regardless of hardware or software failures. The core components here are Pacemaker and Corosync, which together act as the cluster stack. Let's take a closer look at the technical details:

      Cluster communication and consensus: Corosync

      At the heart of the high-availability cluster is cluster communication. Corosync is responsible for synchronising the cluster nodes and ensures that all cluster members always have the same status information about the resources. This is done via a quorum system, which determines whether a certain number of nodes (usually the majority) is participating in the cluster and is able to make decisions.

      • Multicast or unicast communication: Corosync can be operated over both multicast and unicast. Multicast is preferred for networks with lower latencies, while unicast is used in networks with limited multicast support.
      • Totem protocol: Corosync uses the Totem Ring protocol for reliable and deterministic message delivery between the cluster nodes. It ensures that all messages arrive in the same order and that no messages are lost.

      Resource management and failover: Pacemaker

      While Corosync is responsible for communication, Pacemaker takes care of resource management. Every application or resource that is to be made highly available is defined by Pacemaker as a cluster resource. These resources can be SAP applications, HANA databases, web services or storage services.

      Pacemaker manages these resources and makes decisions based on predefined policies, such as:

      • Start and stop operations for resources on specific nodes
      • Monitoring of resources (incl. health checks),
      • Failover mechanisms if a resource or node fails
      • If a node stops responding to heartbeat signals from Corosync, Pacemaker starts the failover process. The affected resource is then restarted on another, functioning node in the cluster.
      • Resource stickiness: An important parameter in Pacemaker is the stickiness of a resource. This value defines how strongly a resource is “bound” to a node and influences whether or not a failover to another node is carried out.
      • Fencing and Stonith: security in the cluster
      • A particular challenge with high-availability solutions is the split-brain scenario, in which two or more nodes take control of the same resource without being synchronised. This can lead to data inconsistencies or even data loss. To prevent this, we implement fencing mechanisms.
      • STONITH (Shoot The Other Node In The Head): This is a method in which a faulty node is forcibly disconnected from the cluster or even shut down completely, to prevent resources from being dangerously executed more than once. Pacemaker uses STONITH devices such as hypervisors, cloud fencing devices, IPMI, iLO or other remote management tools to switch off a specific node.

      Monitoring and alerting

      A high-availability solution is only as good as its monitoring. With Pacemaker and tools such as Prometheus or Grafana, we implement comprehensive monitoring and notification systems. These enable:

      • Real-time monitoring of all cluster resources and nodes,
      • Notifications for specific events, such as the failure of a node or resource,
      • Detailed health checks for critical applications, so that problems can be detected and resolved proactively.
      • We also integrate alerting systems that notify IT administrators in real time as soon as a failover has been initiated or a problem has been detected. This way, no critical change goes unnoticed and the systems keep running stably.

      Scenarios and use cases

      1 of 2: A typical implementation of Pacemaker in an SAP environment looks like this:

      References

      A typical implementation of Pacemaker in an SAP environment looks like this:

      • The SAP application server and database run on separate nodes.

      • If the node running the database fails, the second node takes over automatically

      • The application server detects this and automatically adapts to the new environment, so that the applications continue to run without interruption.

      This architecture ensures seamless recovery of services without end users noticing any outages.

        Offer

        Our services:

        • Consulting & implementation: We analyse your existing infrastructure and implement tailored solutions.

        • Proofs of concept: Before we implement larger projects, we build prototypes and pilot projects to test feasibility.

        • Support & maintenance: We are still there for you after implementation. Our team is on hand with support and regular maintenance.

           Conclusion – Pacemaker is the pacemaker for your IT infrastructure. With our solution, you ensure that your business-critical applications are always available – whatever happens. Reduce downtime and ensure smooth production you can rely on at all times.

          Interested in high availability with Pacemaker?

          Info Pacemaker
          Availability

          For information on how we process your data, please see our privacy information.