If you encounter a fault that a cluster is available but some nodes in it are unavailable, you can rectify this fault by referring to the methods provided in this section.
Kubernetes provides heartbeats to help you detect whether a node is available. For details about the mechanism and detection interval, see Heartbeats.
Possible causes are listed in order of likelihood.
If the fault persists after you have ruled out a cause, check other causes.
Symptom
The node connection in the cluster is abnormal, with multiple nodes reporting write errors, but services are not affected.
Fault locating
A too high CPU or memory usage on the node will result in a high network latency or trigger a system OOM, so the node is displayed as unavailable.
Solution
After the nodes become available, the workload is restored.
Log in to the CCE console and check whether the cluster is available.
If the node names are inconsistent and the node cannot be logged in to using the password or key, it means that a Cloud-Init problem occurred when the ECS was created. In this case, restart the node and submit a service ticket to the ECS personnel to locate the root cause.
Log in to the VPC console. In the navigation pane, choose Access Control > Security Groups and find the master node security group of the cluster.
The name of this security group is in the format of {cluster_name}-cce-control-{ID}. You can search for the security group by cluster name and then -cce-control-.
Check whether the security group rules have been changed. For details about security groups, see How Do I Modify Cluster Security Group Rules?
Check whether such a security group rule exists.
When adding a node to the cluster, add the security group rules in the figure below to the cluster-name-cce-control-random-ID security group to ensure the availability of the added node. This is necessary if a secondary CIDR block is added to the VPC of the node subnet and the subnet is in the secondary CIDR block. However, if a secondary CIDR block has already been added to the VPC during cluster creation, this step is not required.
For details about security groups, see How Do I Modify Cluster Security Group Rules?
Each new node is equipped with a 100-GiB data disk dedicated for Docker. If this data disk is removed or damaged, the Docker service will be disrupted and the node will become unavailable.
Click the node name and check whether the data disk attached to the node has been removed. If the disk has been detached from the node, you need to attach another data disk to the node and restart the node. Then the node can be restored.
Check the status of a component. For example, to check the status of kubelet, run the following command:
kubelet is a component name. You can replace it as required.
The expected output is shown in the figure below.

systemctl restart yangtse
Check the component status again.
cat /var/log/cloud-init-output.log | grep resolv
If the command output contains the following information, it means that there is a domain name resolution failure.
Could not resolve host: Unknown error
If the vdb disk on a node has been deleted, you can restore the node by referring What Should I Do If the vdb Disk of a Node Is Damaged and the Node Can't Be Recovered After Reset?
systemctl status docker

If the command fails to be executed or the Docker service status is not active, locate the cause or contact technical support if necessary.
docker ps -a | wc -l
If the command is suspended, takes too long to execute, or if there are over 1000 abnormal containers, you should check if workloads are being repeatedly created and deleted. If many containers are being created and deleted frequently, it may result in numerous abnormal containers that cannot be cleared promptly.
In this case, stop repeated creation and deletion of workloads or use more nodes to share the load. Typically, the node will be restored after a period of time. If necessary, run the docker rm {container_id} command to manually clear the abnormal containers.