Help Center/ Huawei Cloud EulerOS/ FAQs/ How Do I Handle IPVS Errors?
Updated on 2024-07-02 GMT+08:00

How Do I Handle IPVS Errors?

Background

An IP virtual server (IPVS) is used for load balancing and network forwarding. If you configure an IPVS but do not set up a real server in the system, error logs will be generated after you log in to the ECS using VNC.

Symptoms

If an IPVS is configured but no real server is set up, when a network request is sent to the virtual server address, an error log similar to the following is displayed in the CLI after you log in to the ECS using VNC.

Solution

  1. Install ipvsadm.
  2. Run the ipvsadm -Ln command to query the configuration of the current virtual server. Find the entry corresponding to the virtual server for which an error is reported.
    Figure 1 No real server configured

    If no real server is configured, the configuration is incomplete, and an error is generated. Check your service process.

    Figure 2 Real server configured

    As shown in the figure, a real server is configured.

  3. To eliminate the interference of the IPVS error log on the VNC, perform either of the following operations:
    • Disable network requests sent by the service. The specific operations are determined by the service requirements.
    • Run the following command to adjust the print level of the kernel printk:

      echo 3 4 1 7 > /proc/sys/kernel/printk

      If the system configuration is modified temporarily, restore the system configuration at a proper time.

    • Log in to the ECS using CloudShell.