The operation status of nodes, as the infrastructure of clusters, is critical to users. The VKE team provides the self-developed node check and self-healing feature for common failure detection and self-healing for nodes. This topic describes how to configure the node check and self-healing feature.
tip
This feature is available only to enterprises. If you cannot view the corresponding page in the console, make sure that your account has completed enterprise verification.
Prerequisites
- (Optional) A Volcengine Managed Service for Prometheus (VMP) workspace has been created. For details, see Creating common workspaces.
- (Optional) To use the custom failure detection feature, make sure that you have configured custom failure check items. For details, see Custom node check items.
Procedure
Step 1: Configure a check and self-healing rule
- In the left navigation bar, click Cluster.
- On the Cluster page, click the name of the target cluster to go to the cluster management page.
- In the left navigation pane of the cluster management page, click Check and self-healing. Then, click Create check and self-healing rules.
tip
When you configure check and self-healing rules, if multiple check items are selected and their self-healing rules differ, the system will automatically split them into multiple rules.
- Configure the troubleshooting process.
- Anomaly prompts: When a node fails, the system converts failure information into metrics. You can use the cloud-native observability feature to obtain metrics and view them in the VMP console.
- Process intervention: After you enable this feature, the system will add the specified labels to nodes after the preceding steps are complete, to identify failed nodes. You can filter specified nodes by label to perform manual intervention and troubleshooting.
- Cordon nodes: When a node fails, the NoSchedule taint will be added to the node to prevent new pods from being scheduled to the node.
- Node draining: When a node fails, add the NoExecute taint to the node and evict all pods on it.
- Auto recovery: When you enable this feature, the system will attempt to fix node failures to achieve self-healing after node draining.
- Uncordon: Specify whether to automatically uncordon a node after the node restarts and its failure is fixed. When the feature is enabled, the system will perform health checks again after the node restarts. If all check items pass the checks, the node will be uncordoned.
warning
The system can only make sure that no exceptions occur in the existing check items. If a failure occurs beyond the scope of node check items, the operation of training or inference tasks may become abnormal. If issues persist after the self-healing process is complete, submit a ticket to obtain technical support. - (Optional) Click Add rules to add multiple rules.
- After the configuration is complete, carefully read Considerations, select I acknowledge and consent to, and then click Confirm to save the configurations.
Step 2: Associate a node pool with the check and self-healing rule
You can associate the check and self-healing rule with a node pool when creating it, or with an existing node pool. This topic provides an example of how to associate the check and self-healing rule with a node pool when you create the node pool.
tip
Only managed node pools can be associated with check and self-healing rules. If your node pool is a normal node pool, you need to enable hosting for the node pool first and then associate a check and self-healing rule with the node pool.
- In the left navigation bar of the cluster management page, click Nodes > Node pool. On the page that appears, click Create node pool. In the pop-up dialog box, select Managed mode pool.
- When configuring node pool details, enable the Check and self-healing feature under Operation and maintenance configuration and bind self-healing rules.
- Click Confirm to complete the binding.
Step 3: (Optional) Enable cloud-native observability
If you need to use node failure metrics to obtain node status, enable the cloud-native observability feature. The steps are as follows:
- Bind the cluster to a VMP workspace, install the prometheus-agent add-on, and enable cloud-native observability. For details, see Enabling observability.
Validate results
Viewing the check and self-healing rule
- In the left navigation pane of the cluster management page, click Health check & auto recovery.
- In the self-healing rule list, click the name of the target self-healing rule to view its details.
Viewing self-healing task details
After self-healing is complete for a failed node, you can view the self-healing task list and details on the Node details page.
- In the left navigation bar of the cluster management page, click Nodes > Node.
- Click the name of the target node to go to the Node details page.
- Click the Self-healing from failure tab to view the list of failure self-healing tasks for the current node.
- Click the name of the target self-healing task to view the self-healing details for the current node.
Viewing check and self-healing observability data
You can view check and self-healing observability data on the cloud-native observability dashboard and configure the corresponding alerts. For details, see Check and self-healing observability. Viewing alert rule details
After you configure check and self-healing alerts, you can view the details of the corresponding alert rule in the VMP console.
- Click Alert Center > Alert rule in the left navigation bar. Click the Alert rule group tab. On this tab, you can view the configured check and self-healing alert rule groups.
- Click the name of the target alert rule group to go to its details page. Then, click the Alert rule list tab to view the alert rule details.
Other operations
Terminating the self-healing process
During the execution of a check and self-healing task, you can manually terminate the self-healing process at any time.
warning
After the self-healing process is terminated, the step in progress will continue until completion, but subsequent steps will not be performed. You need to manually resolve the remaining issues. No troubleshooting will be performed on the node again until it is uncordoned.
- In the left navigation bar of the cluster management page, click Nodes > Node.
- Click the name of the target node to go to the Node details page.
- Click the Self-healing from failure tab and then find the target self-healing task in the failure self-healing task list.
- Click the name of the self-healing task to go to its details page. Click Stop failure processing to terminate the self-healing task.