Updated on 2026-02-13 GMT+08:00

Application Acceleration

Description

The Huawei Cloud EulerOS 2.0 image supports application acceleration. You can use this type of image to optimize performance of Nginx, Redis, MySQL, Memcached, and PostgreSQL applications.

When purchasing ECSs, if you select the Huawei Cloud EulerOS 2.0 image and enable application acceleration, the system will provide performance tuning for the ECSs in terms of CPUs, memory, network, storage, and kernels. This tuning will deliver over 20% higher performance for Nginx, Redis, MySQL, Memcached, and PostgreSQL applications.

When purchasing an ECS, you can only configure application acceleration for one type of applications.

Enabling Application Acceleration

  1. Log in to the management console and access the Buy ECS page.
  2. Set parameters required for creatingpurchasing ECSs.

    For details, see Purchasing an ECS in Custom Config Mode.

    To enable application acceleration, note the following settings:

    1. Set OS > Image.

      Select Public image > Huawei Cloud EulerOS > Huawei Cloud EulerOS 2.0.

    2. Select Application Acceleration.

      Select the application for which you want to configure application acceleration.

    3. (Optional) Set Security Group.

      If you do not use the default security group (outbound rules allow all ports by default) when purchasing an ECS, you need to perform this step to allow specific ports so that application acceleration can be available.

      Allow the following ports in the outbound rules:

      • TCP: 53, 80, and 443
      • UDP: 53
      Figure 1 Outbound rules
    After application acceleration is configured, the application performance is greatly improved, as shown in Table 1.

    The default application version in the Huawei Cloud EulerOS yum repository is installed on the ECS based on the configured application acceleration type. If you use other application versions, you may not be able to get the best performance.

    Table 1 Performance improvement

    Application

    Default Version

    Test Tool

    Performance Improvement (Compared with No Acceleration)

    Description

    Nginx

    1.21.5

    wrk

    • 40% (small HTTP/HTTPS packets)
    • 15% (large packets)

    Performance improvement due to application and OS configurations are included.

    MySQL

    8.0.42

    sysbench

    50% (OLTP read-only, write-only, and mixed read/write)

    Redis

    6.2.20

    memtier-benchmark

    20% (small single-pipeline packets)

    PostgreSQL

    13.20-1

    benchmarksql

    20% (read-only, write-only, and read/write)

    Memcached

    1.6.12-3

    memaslap

    10% (small single-pipeline packets)

Checking Application Acceleration

  1. Log in to the ECS.
  2. Run the following command as the root user to check the status of the application.
    systemctl status <APP_Name>

    Replace <APP_Name> with the process name of the application to be accelerated, for example, nginx, redis, mysqld, postgresql, or memcached.

    If the returned status is active (running), application acceleration takes effect and the application is running properly.

Table 2 lists the listening IP addresses, ports, and official websites of applications. For details about how to use these applications, see their official websites.

Table 2 Application details

Application

Listening IP

Listening Port

Official Website

Nginx

127.0.0.1

80 (HTTP)

https://nginx.org

MySQL

127.0.0.1

3306

https://www.mysql.com

Redis

127.0.0.1

6379

https://redis.io

PostgreSQL

127.0.0.1

5432

https://www.postgresql.org

Memcached

127.0.0.1

11211

https://memcached.org

If your stress test tool or client wants to connect to the applications, the inbound rules of the security group must allow the listening ports listed in Table 2. Otherwise, the application cannot be connected.

Figure 2 Inbound rules

Disabling Application Acceleration

  1. Log in to the ECS.
  2. Run the following command as the root user to uninstall applications related to application acceleration:

    bash /opt/booster_remove.sh