Offline Self-Healing
Only platinum service instances support offline self-healing.
Offline self-healing is only possible for applications that are scheduled to node groups.
Introduction
Offline self-healing means that if a fault occurs on an application instance, or if the edge node where the application instance is originally deployed becomes faulty, the application instance can be scheduled to other available nodes in the node group. The application instance can still be automatically scheduled even when the edge node is disconnected from IEF.
If offline self-healing is enabled, the nodes in the node group start loop monitoring, that is, the next-hop node monitors the status of its previous node and applications deployed on it. If a node an application instance is running on becomes faulty, the next-hop node monitoring the node in the loop detects the fault and checks whether it meets requirements to run the instance. If it does, it automatically starts a same application instance. If it does, a scheduling request is sent to the next-hop node in the loop. If no nodes meet requirements, this application instance is considered faulty.
In Figure 1, if Node1 running App1 fails, Node2 (which monitors Node1) checks whether it meets requirements for running App1. If it does, it starts App1.
Differences Between Offline Self-Healing and Application Migration Upon Node Group Failure
With node groups, if a node fails, applications can be migrated to different nodes. If one node in a node group becomes faulty, the applications on it can be automatically scheduled to other normal nodes in the group. Application migration is an online scheduling function. However, if all of the nodes in a node group go offline, application migration is not possible because there are no nodes available. Offline self-healing, however, can still work properly.
Application migration is triggered immediately anytime any node in a node group is disconnected from IEF. In this case, the node may be running properly, which would make it unnecessary to schedule the instances on the node to other nodes. Offline self-healing can avoid such unnecessary scheduling as it can identify the running status of nodes even when they go offline.
If offline self-healing is enabled, application migration upon node group failure is automatically disabled.
Constraints
- A node group must contain at least two edge nodes.
- The offline self-healing function must be enabled for all nodes in a node group, and port 8883 of each node must be accessible.
- An application with offline self-healing enabled cannot detect the addition or deletion of nodes in the node group where it is deployed.
- If you need to deploy applications with offline self-healing enabled on the node, enable the offline self-healing option for a node during registration, as shown in Figure 2. For details, see Registering an Edge Node.
Configuration
Enable the offline self-healing function when creating an edge application.
After a containerized application is deployed, you can check whether offline self-healing is enabled for the application on the Applications page on the details page of the edge node group, as shown in Figure 4.
Last Article: Application Templates
Next Article: Affinity and Anti-Affinity Scheduling



Did this article solve your problem?
Thank you for your score!Your feedback would help us improve the website.