Search
Home Search Center IP Encyclopedia Online Courses

What Is HyperHA?

HyperHA is a resource-level protection mechanism. If the active resource on a node fails, services can be quickly switched to the standby resource, ensuring service continuity and improving system reliability.

What Is HyperHA?

Hyper High Availability (HyperHA), or local protection, is a resource-level protection mechanism. If the active resource on a node fails, services can be quickly switched to the standby resource, ensuring service continuity and improving system reliability.

Why Is HyperHA Necessary?

In the industry, system-level redundancy protection is commonly used, which features active-standby system switchover, ensuring service continuity in fault scenarios. However, when critical system resources such as CPUs and network interfaces encounter failures, the system-level switchover mechanism suffers from coarse granularity and long switchover time, making it difficult to meet the requirement for rapid service takeover. Therefore, it is necessary to establish a resource-level local protection mechanism to implement precise and quick recovery from single points of failure.

How Does HyperHA Work?

Concepts

HyperHA involves the following concepts:

  • Resource. Objects protected or monitored by HyperHA can be abstracted as resources for management. A resource is the minimum unit of local protection service management. For example, microservices, network interfaces, floating IP addresses, CPUs, and memory on nodes are abstracted as resources. High-reliability (HA) services can be implemented by controlling these resources.
  • Basic resource. Basic resources are provided by the system, such as nodes, CPUs, memory, and network interfaces. These resources are independent of services. Each basic resource is a resource group. HyperHA collects statistics on the usage or status of these resource groups and participates in the arbitration to determine whether a switchover needs to be performed.
  • Other resources. These resources are non-basic resources owned by services, such as service processes. HyperHA monitors these resources and participates in the arbitration to determine whether a switchover needs to be performed.
  • Active resource. Active resources provide services externally.
  • Standby resource. Standby resources protect the active ones. They do not provide services externally.
  • Resource group. Each resource group is a collection of resources that depend on each other on a single node. For example, if resource A depends on resource B and is independent of other resources, resources A and B form a resource group. All resources in the same resource group must be switched to the active or standby at the same time. Resource group–level protection refers to the protection of multiple resource groups on a node. Node-level protection refers to the protection of the only resource group on a node.
  • Cluster: Resource groups that are mutually protected on different nodes form a cluster to provide HA services.

HyperHA Solution Details

Hyper High Availability Manager (HyperHAMgr, HyperHA for short), also known as local protection, consists of HyperHAService and HyperHAAgent.

  • HyperHAService is deployed on the management plane node and provides functions such as loading HyperHA data in the cluster and delivering switchover parameters.
  • HyperHAAgent is deployed on nodes and provides the functions such as status indicator collection, arbitration decision-making, and switchover management.

HyperHAAgent uses the heartbeat link between each node and the data consistency center MCZooKeeper (MCZK), that is, the ZK heartbeat, to record the resource status on each node. The inter-node communication status is checked using the IR interface heartbeat (that is, the IR heartbeat). The arbitration module obtains the status change of each node to make a switchover decision and delivers the decision to each node through the heartbeat link. A resource group can be switched over for a maximum of three times within 15 minutes. HyperHAMgr communicates with MCZK through two heartbeat links on different network planes to improve the reliability of HyperHA. The following figure shows the HyperHA framework.

HyperHA framework
HyperHA framework

1. Service requests are sent to the target node through the floating IP address. As shown by ① in the figure, the floating IP address is always bound to the active node.

2. HyperHAAgent monitors its managed resources, including the floating IP address and resource groups, as shown by ② in the figure. If the active node is abnormal, an active/standby switchover is performed and the floating IP address is bound to the standby node.

3. As shown by ③ in the figure, HyperHAAgent on the active and standby nodes communicates with its peer through the heartbeat link. It compares the resources on the active and standby nodes and determines whether to switch over resource groups based on the arbitration result. A switchover is automatically triggered in the following cases:

  • If the active resource is abnormal, HyperHAMgr switches over the resource group to which the abnormal resource belongs.
  • When both the ZK heartbeat and IR heartbeat are disconnected, the switchover policy for isolated nodes is executed.

During the switchover of resource groups, the resources at the highest level of the dependency hierarchy are switched to standby first, and resources at the lowest level of the dependency hierarchy are switched to active first. The following table describes common resource group faults and switchover solutions.

Table 1-1 HyperHA switchover solutions

Fault Scenario

Solution

Solution Example

Faulty basic resource in the single-node scenario

HyperHAMgr is deployed on a single node. When a basic resource is abnormal, the resource groups that do not depend on the basic resource group on the node are not affected.

Example scenario: When basic resource F is abnormal, for example, the CPU or memory is overloaded, packet loss occurs on the NIC, or the delay is abnormal, resource group 2 on node 1 runs properly.

As shown in the following figure, services A and B form resource group 1, and services C and D form resource group 2. Resource group 1 relies on the normal operation of the basic resource group, while resource group 2 does not. If the CPU (that is, a basic resource) load on node 1 is too high, resource group 1 is switched to standby, and resource group 2 remains active.

Figure 1-2 Faulty basic resource in the single-node deployment scenario

Faulty basic resource in the multi-node deployment scenario

When HyperHAMgr is deployed on multiple nodes, if a basic resource is abnormal, services provided by the resource groups that depend on the basic resource are switched to another normal node, and resource groups on the faulty node are isolated.

Example scenario: When basic resource F is abnormal, for example, the OS is abnormal, the node is abnormal, or the node is powered off, services provided resource group 1 and resource group 2 on node 1 are switched to resource group 1 and resource group 2 on node 2.

As shown in the following figure, HyperHA is deployed on two nodes, and the normal operation of resource groups 1 and 2 depends on the normal operation of the basic resource group. When the CPU (that is, a basic resource) load on node 1 is too high, the CPU on node 2 becomes active and provides services. After the switchover, resource groups 1 and 2 on node 2 become active and provide services externally, and resource groups 1 and 2 on node 1 become standby.

Figure 1-3 Faulty basic resource in the multi-node scenario

Faulty service-specific resources in the single-node deployment scenario

When HyperHAMgr is deployed on a single node, the resource group to which the faulty resource belongs becomes standby, and other normal resource groups can still provide services.

Example scenario: If a resource in a resource group is abnormal, for example, the service process is terminated unexpectedly or the service is abnormal, the resource group becomes standby, and other resource groups provide services.

As shown in the following figure, HyperHA is deployed on one node, and service C in resource group 1 is abnormal. After the switchover, resource group 1 on node 1 becomes standby and resource group 2 becomes active and provides services externally.

Figure 1-4 Faulty resource (other than basic resources) in the single-node deployment scenario

Faulty resource (other than basic resources) in the multi-node deployment scenario

When HyperHAMgr is deployed on multiple nodes, services provided by the resource group to which the faulty resource belongs are switched to the corresponding resource group on another normal node to ensure service continuity.

Example scenario: If resource C is abnormal, for example, the process of the active service instance is terminated unexpectedly or the active service instance is abnormal, the services of resource group 1 on node 1 is switched to resource group 1 on node 2.

As shown in the following figure, HyperHA is deployed on two nodes. If service C on node 1 fails to be started, a switchover is performed. Resource group 1 on node 2 becomes active and provides services externally, and resource group 1 on node 1 becomes standby.

Figure 1-5 Faulty resource (other than basic resources) in the multi-node deployment scenario

Isolated node fault

HyperHAMgr is deployed on multiple nodes. If a node is disconnected from the MCZK heartbeat and the IR heartbeat with the other node in the protection group, the node becomes isolated. The isolated node cannot synchronize the resource group status with other nodes.

If an active resource group on the isolated node contains the floating IP address, the resource group becomes to standby. Otherwise, the policy configured for the service is executed.

Example scenario: Node 1 becomes isolated due to network exceptions. If an active resource group on node 1 contains the floating IP address, resource group 1 on node 1 becomes standby.

As shown in the following figure, the resource group on node 1 is active and contains the floating IP address. Node 1 is disconnected from the MCZK heartbeat, and the IR heartbeat between node 1 and node 2 is also disconnected. In this case, the resource group on node 1 is switched to standby, and the corresponding resource group on node 2 is switched to active.

Figure 1-6 Isolated node fault

What Are the Differences Between HyperHA, Backup and Restore, and the DR System?

HyperHA, backup and restore, and the DR system differ in protection granularity, data timeliness, recovery time objective (RTO), recovery point objective (RPO), web client availability, O&M complexity, and applicable scenarios. The following table compares the four features.

Table 1-2 Differences between HyperHA and other features

Dimension

HyperHA

Backup and Restore

DR System

Protection granularity

Resource level, such as microservice instances, CPUs, and network interfaces

Data level (Data is backed up and restored by type.)

System level, for example,

Data timeliness

N/A (Resources are switched over when a fault occurs.)

  • Scheduled or immediate data backup
  • Manually-triggered data restoration

Real-time data synchronization between sites

RTO

  • Node-level switchover: 2 minutes
  • Service-level switchover: 1 minute

30 minutes to 24 hours, depending on the amount of backup data

  • Key service switchover: 1 minute
  • Site switchover: 15 minutes

RPO

N/A

1 hour to 7 days, depending on the amount of backup data

1 minute

Purchase cost

Medium

Medium

High

O&M GUI

No

Yes

Yes

O&M complexity

Operations, such as querying resource status and performing switchover drills, need to be performed in the background. The operations are moderately complex.

Operations are performed on the web client and easy to perform.

Many monitoring indicators are provided on the web client, including site details and product details. You can view the DR status of products in real time. The operations are moderately complex.

Applicable scenario

Scenarios where resource-level protection is required. It prevents a site from being completely out of service due to a single resource fault, such as a CPU or network interface fault.

Scenarios where critical data needs to be protected.

It prevents critical data loss or system service exceptions caused by misoperations, such as incorrect data deletion and configuration, system software faults, such as program breakdown and upgrade failures, hardware failures, such as storage media faults and server breakdown, network security incidents, such as virus and ransomware attacks, and other unpredictable situations.

Scenarios where site-level system protection is required.

It prevents service interruption caused by natural disasters (such as earthquakes and power failures), misoperations, network attacks, and device faults. The DR system consists of two systems deployed in different places to ensure service continuity, It is suitable for scenarios with high reliability requirements, for example, .

Related concepts:

  • RTO: indicates the maximum tolerable service downtime, from the time when a disaster occurred to the time when services were recovered
  • RPO: indicates the maximum amount of lost data that can be tolerated by the system.
References
About This Topic
  • Author: Luo Minyao
  • Updated on: 2026-11-04
  • Views: 181
  • Average rating:
Share link to