If your Network Load Balancer (NLB) instance has a problem, use the instance diagnostics feature to troubleshoot it. This feature checks your NLB instance for issues related to health checks, idle instances, security policies, costs, and listeners. It also identifies the causes of detected issues and suggests solutions to help you resolve them quickly.
Prerequisites
The first time you run diagnostics, the system prompts you to enable Network Intelligence Service (NIS) and automatically creates a service-linked role named AliyunServiceRoleForNis. For more information about AliyunServiceRoleForNis, see service-linked role.
Run an instance diagnosis
Log on to the Network Load Balancer console.
In the top navigation bar, select the region where the instance is deployed.
On the Instances page, find the instance and click Diagnose in the Instance Diagnostics column.
In the Instance Diagnostics panel, view the diagnosis progress, a summary of the results, and the details of each diagnostic item.
Anomalous items are displayed directly in the panel. You can view the details of each anomalous item.
In the Diagnostic Details section, select Show All Diagnostic Items to view all diagnostic items that NLB supports, along with their details.
Alternatively, click View Historical Diagnostics in NIS Console at the top of the Instance Diagnostics panel to open the NIS console and view detailed diagnostic history.
After you review the diagnostic information, click Close.
Diagnostic items
Category | Diagnostic item and description |
Health Check Diagnostics |
|
Idle Instance Diagnostics |
|
Security Policy Diagnostics |
|
Cost Diagnostics |
|
Listener Diagnostics |
|
FAQ
Can instance diagnostics check the historical state of an instance?
No.
Instance diagnostics performs real-time checks and cannot diagnose the historical state of an instance. The diagnostic data covers only the 15-minute period before the diagnosis is run.
For example, if an instance becomes unavailable at 09:00:00 due to an issue and recovers at 09:30:00, a diagnosis run at 10:00:00 checks only the instance state from 09:45:00 to 10:00:00. It will not detect the root cause of the issue that occurred between 09:00:00 and 09:30:00.
My listener has a health check configured, so why does the diagnosis report an abnormal status? Can instance diagnostics identify the specific cause of the failure?
Instance diagnostics checks the health of all listeners for an instance. The diagnosis reports an issue if a health check is not configured or if the health check status is abnormal.
Many factors can cause health check failures. Instance diagnostics provides a Further Diagnosis feature to help identify the root cause. For example, if a service is not running on the listening port of a backend server, or network filtering rules such as iptables are configured on the backend server's operating system, the Further Diagnosis feature can help pinpoint the specific issue.
Why is Further Diagnosis unavailable for some backend servers?
Currently, the Further Diagnosis feature supports only backend servers that run CentOS, Ubuntu, or Alibaba Cloud Linux. It does not support backend servers that run other operating systems, such as Windows.
Related documents
ALB and CLB also support instance diagnostics. For more information, see Diagnose an ALB instance and Diagnose a CLB instance.