Use stability tools for O&M

Updated at:

Configure kdump, ENI, IPv6, NIC multi-queue, hyper-threading, NVMe drivers, and security patches with Cloud Assistant plugins.

Feature

Description

Cloud Assistant plugin

Configure kdump

Generates a core dump file when the kernel crashes for troubleshooting.

ecs_dump_config

Configure an auxiliary ENI with one click

Configure the network for an auxiliary Elastic Network Interface (ENI) on CentOS with one click.

multi-nic-util

Configure IPv6

Configure or clean up IPv6 on an ECS instance with one click.

ecs-utils-ipv6

Configure multi-queue for a network interface card

Set NIC queue count to the maximum to improve network performance.

ecs_tools_multiqueue

Manage Intel Hyper-Threading (HT)

Disable Intel Hyper-Threading on an ECS Bare Metal instance.

ecs_disable_intel_hyper-threading

Quickly configure an NVMe driver

Configure the NVMe driver for instances that support NVMe.

ecs_nvme_config

Manage security patches

Scan for and install missing security patches.

patch_manager

Configure kdump

kdump is a Linux kernel feature that generates a core dump file when the kernel crashes. Use the Cloud Assistant ecs_dump_config plugin to enable, disable, or query kdump.

  1. Go to the ECS console - Instances.

  2. In the upper-left corner, select the resource group and region of the target instance.Region

  3. Select the target instance, click Connect, and log on to the Linux instance using Workbench.

  4. Configure kdump.

    • Enable kdump

      sudo acs-plugin-manager --exec --plugin=ecs_dump_config --params --enable
    • Disable kdump

      sudo acs-plugin-manager --exec --plugin=ecs_dump_config --params --disable
    • Query kdump status

      sudo acs-plugin-manager --exec --plugin=ecs_dump_config --params --status

Configure an auxiliary ENI with one click

After you add an auxiliary Elastic Network Interface (ENI) to an ECS instance, configure its network on CentOS with the Cloud Assistant multi-nic-util plugin.

  1. Log on to the Linux instance using Workbench.

  2. Configure the auxiliary ENI.

    sudo acs-plugin-manager --exec --plugin=multi-nic-util

Configure IPv6

Use the Cloud Assistant ecs-utils-ipv6 plugin to configure IPv6 on an instance with an IPv6 address, or remove IPv6 from an instance without one. The plugin supports automatic configuration, manual configuration, enabling, and disabling IPv6.

  1. Log on to the Linux instance using Workbench.

  2. Configure IPv6.

    • Enable IPv6

      sudo acs-plugin-manager --exec --plugin=ecs-utils-ipv6 --params --enable
    • Disable IPv6

      sudo acs-plugin-manager --exec --plugin=ecs-utils-ipv6 --params --disable
    • Auto-configure IPv6

      sudo acs-plugin-manager --exec --plugin=ecs-utils-ipv6
    • Manually configure IPv6

      sudo acs-plugin-manager --exec --plugin=ecs-utils-ipv6 --params --static,<dev>,<ip6s>,<prefix_len>,<gw6>

      <dev>: The target network interface name, such as eth0.

      <ip6s>: The IPv6 address to configure.
      <prefix_len>: The prefix length of the IPv6 address, such as 64.
      <gw6>: The IPv6 gateway address.

Configure multi-queue for a network interface card

NIC multi-queue distributes network interrupts across multiple CPUs to improve performance. Use the Cloud Assistant ecs_tools_multiqueue plugin to maximize queue count for all NICs.

  1. Log on to the Linux instance using Workbench.

  2. Maximize the queue count for all NICs.

    sudo acs-plugin-manager --exec --plugin=ecs_tools_multiqueue

Manage Intel Hyper-Threading (HT)

Use the Cloud Assistant ecs_disable_intel_hyper-threading plugin to disable Intel Hyper-Threading (HT) on ECS Bare Metal instances.

This plugin applies only to ECS Bare Metal instance types. Running it on other instance types returns an unsupported error.
  1. Log on to the Linux instance using Workbench.

  2. Disable Intel Hyper-Threading.

    sudo acs-plugin-manager --exec --plugin=ecs_disable_intel_hyper-threading

Quickly configure an NVMe driver

Use the Cloud Assistant ecs_nvme_config plugin to configure the NVMe driver. This plugin supports various operating systems, such as Alibaba Cloud Linux, CentOS, and Ubuntu.

Operating systems supported by the ecs_nvme_config plugin

  • Operating systems that support the ecs_nvme_config plugin:

    • Alibaba Cloud Linux

    • Anolis OS

    • CentOS/CentOS Stream

    • Debian

    • Ubuntu

    • OpenSUSE

    • SUSE Linux Enterprise Server

    • Red Hat Enterprise Linux

    • Fedora

    • Rocky Linux

    • AlmaLinux

  • Unsupported ecs_nvme_config versions:

    • CentOS/Red Hat Enterprise Linux: earlier than 6.6

    • Debian: earlier than 9

    • Ubuntu: earlier than 16

    • OpenSUSE: 42

    • SUSE Linux Enterprise Server: earlier than 11.4

  1. Log on to the Linux instance using Workbench.

  2. Check plugin availability.

    If the Cloud Assistant Agent is not installed, install it first. If ecs_nvme_config appears in the plugin list, proceed to the next step.
    acs-plugin-manager --list
  3. Check the NVMe module status.

    sudo acs-plugin-manager --exec --plugin ecs_nvme_config --params --check
    • If the following output appears, the configuration is successful:

      [SUCCESS]  Summary: Your image can run on an NVMe instance.
    • If an error is returned, run the configuration command:

      sudo acs-plugin-manager --exec --plugin ecs_nvme_config --params --fix
  4. Restart the instance.

    sudo reboot
  5. Verify the configuration.

    sudo acs-plugin-manager --exec --plugin ecs_nvme_config --params --check

    Successful output:

    [OK]  1. The initrd/initramfs already contains the NVMe module.
    
    [OK]  2. The fstab file looks fine and does not contain any device names.
    
    [OK]  3. The NVMe parameters are already included.
    
    [SUCCESS]  Summary: Your image can run on an NVMe instance.

Manage security patches

Use the Cloud Assistant patch_manager plugin to scan for and install missing security patches on your ECS instances.

  1. Log on to the Linux instance using Workbench.

  2. Manage security patches.

    • Scan for security patches

      sudo acs-plugin-manager --exec --plugin=patch_manager --params --operation,scan
    • Install security patches. The instance restarts automatically if needed.

      sudo acs-plugin-manager --exec --plugin=patch_manager --params --operation,install,--reboot,ifneed
    • Install security patches without restarting

      sudo acs-plugin-manager --exec --plugin=patch_m