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.
Applicable Instances
| CPU Architecture | ECS Type | OS |
|---|---|---|
| x86 | Huawei Cloud EulerOS 2.0 | |
| Kunpeng | Huawei Cloud EulerOS 2.0 |
Enabling Application Acceleration
- Log in to the management console and access the Buy ECS page.
- Set parameters required for creatingpurchasing ECSs.
For details, see Purchasing an ECS in Custom Config Mode.
To enable application acceleration, note the following settings:
- Set OS > Image.
Select Public image > Huawei Cloud EulerOS > Huawei Cloud EulerOS 2.0.
- Select Application Acceleration.
Select the application for which you want to configure application acceleration.
- (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)
- Set OS > Image.
Checking Application Acceleration
- Log in to the ECS.
- 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.
| Application | Listening IP | Listening Port | Official Website |
|---|---|---|---|
| Nginx | 127.0.0.1 | 80 (HTTP) | |
| MySQL | 127.0.0.1 | 3306 | |
| Redis | 127.0.0.1 | 6379 | |
| PostgreSQL | 127.0.0.1 | 5432 | |
| Memcached | 127.0.0.1 | 11211 |
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.
Disabling Application Acceleration
- Log in to the ECS.
- Run the following command as the root user to uninstall applications related to application acceleration:
bash /opt/booster_remove.sh
Feedback
Was this page helpful?
Provide feedbackThank you very much for your feedback. We will continue working to improve the documentation.See the reply and handling status in My Cloud VOC.
For any further questions, feel free to contact us through the chatbot.
Chatbot