Huawei Cloud Yaoyun Server L instance evaluation | Compatibility test

Preface

As a key link in software development and system maintenance, compatibility testing is essential to ensure the reliability and stability of the system. With the rise of cloud computing, more and more enterprises choose to migrate their applications and services to the cloud platform, among which Huawei Cloud's Yunyao Cloud Server L instance has attracted much attention and favor. In order to help developers better understand and evaluate the compatibility of applications running on HUAWEI CLOUD, this article introduces an example compatibility test script for HUAWEI CLOUD Yunyaoyun server L instances.

HUAWEI CLOUD Yunyaoyun Server L instance is a high-performance, high-reliability cloud server with flexible configuration options and powerful computing capabilities. It is widely used in enterprise-level applications, large-scale databases, and artificial intelligence. However, in order to ensure compatibility between applications and servers deployed on Huawei Cloud, we need to conduct a series of compatibility tests. This sample compatibility test script aims to provide a simple and effective method to verify the compatibility of applications on HUAWEI CLOUD Yunyaoyun Server L instances.

In this article, we will detail the different parts and functions of this compatibility test script example, including hardware detection, OS version verification, dependency library installation, and application functional testing, etc. By following the steps and guidelines provided in this article, you can easily perform compatibility testing, and discover and resolve possible compatibility issues in a timely manner, so as to ensure that your application runs smoothly on the Huawei Cloud Cloud Server L instance.

Whether you are a developer or a system administrator, by using this compatibility test script , you can quickly and accurately evaluate the compatibility between your application and the HUAWEI CLOUD Cloud Yaoyun Server L instance, and take corresponding optimization measures to improve Application performance and stability.

Let's take a deep dive into this sample compatibility test script and start optimizing your application for best performance on HUAWEI CLOUD Yunyaoyun Server L instances!

Create text file

Enter the command in the terminal touch ceshi.shto create a test script
input lland check whether the script is created.
image.png

write script

Open the test file through vi ceshi.shthe command and write the script
image.png

The script content is as follows

#!/bin/bash

# 硬件兼容性测试
echo "=== 硬件兼容性测试 ==="
echo "--- 检查PCI设备 ---"
lspci
echo "--- 检查USB设备 ---"
lsusb
echo "--- 检查磁盘和分区 ---"
lsblk

# 操作系统兼容性测试
echo "=== 操作系统兼容性测试 ==="
echo "--- 操作系统版本和内核信息 ---"
uname -a

# 应用程序兼容性测试
echo "=== 应用程序兼容性测试 ==="
echo "--- 安装和配置应用程序 ---"
apt install -y net-tools
echo "--- 启动应用程序并进行功能测试 ---"
./ceshi.sh

echo "兼容性测试完成。"

Grant execution permissions to the script and run the script

Execute the command in the terminal chmod +x ceshi.shto give the script execution permission
and use the command ./ceshi.shto run the script to view the information. The effect is as shown below
image.png

Result analysis

The interception operation effect is as follows

=== 硬件兼容性测试 ===
--- 检查PCI设备 ---
00:00.0 Host bridge: Intel Corporation 440FX - 82441FX PMC [Natoma] (rev 02)
00:01.0 ISA bridge: Intel Corporation 82371SB PIIX3 ISA [Natoma/Triton II]
00:01.1 IDE interface: Intel Corporation 82371SB PIIX3 IDE [Natoma/Triton II]
00:01.2 USB controller: Intel Corporation 82371SB PIIX3 USB [Natoma/Triton II] (rev 01)
00:01.3 Bridge: Intel Corporation 82371AB/EB/MB PIIX4 ACPI (rev 03)
00:02.0 VGA compatible controller: Cirrus Logic GD 5446
00:03.0 Ethernet controller: Red Hat, Inc. Virtio network device
00:04.0 PCI bridge: Red Hat, Inc. QEMU PCI-PCI bridge
00:05.0 PCI bridge: Red Hat, Inc. QEMU PCI-PCI bridge
00:06.0 PCI bridge: Red Hat, Inc. QEMU PCI-PCI bridge
00:07.0 PCI bridge: Red Hat, Inc. QEMU PCI-PCI bridge
00:08.0 PCI bridge: Red Hat, Inc. QEMU PCI-PCI bridge
00:09.0 PCI bridge: Red Hat, Inc. QEMU PCI-PCI bridge
00:0a.0 PCI bridge: Red Hat, Inc. QEMU PCI-PCI bridge
00:0b.0 PCI bridge: Red Hat, Inc. QEMU PCI-PCI bridge
00:0c.0 Communication controller: Red Hat, Inc. Virtio console
00:0d.0 Unclassified device [00ff]: Red Hat, Inc. Virtio memory balloon
02:01.0 SCSI storage controller: Red Hat, Inc. Virtio block device
--- 检查USB设备 ---
Bus 001 Device 002: ID 0627:0001 Adomax Technology Co., Ltd QEMU USB Tablet
Bus 001 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
--- 检查磁盘和分区 ---
NAME   MAJ:MIN RM   SIZE RO TYPE MOUNTPOINTS
loop0    7:0    0    62M  1 loop /snap/core20/1587
loop1    7:1    0  63.5M  1 loop /snap/core20/2015
loop2    7:2    0  79.9M  1 loop /snap/lxd/22923
loop3    7:3    0 111.9M  1 loop /snap/lxd/24322
loop5    7:5    0  40.8M  1 loop /snap/snapd/20092
vda    252:0    0    40G  0 disk 
└─vda1 252:1    0    40G  0 part /
=== 操作系统兼容性测试 ===
--- 操作系统版本和内核信息 ---
Linux hcss-ecs-0975 5.15.0-60-generic #66-Ubuntu SMP Fri Jan 20 14:29:49 UTC 2023 x86_64 x86_64 x86_64 GNU/Linux
=== 应用程序兼容性测试 ===
--- 安装和配置应用程序 ---
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
net-tools is already the newest version (1.60+git20181103.0eebece-1ubuntu5).
The following packages were automatically installed and are no longer required:
  eatmydata libeatmydata1 libflashrom1 libftdi1-2 libintl-perl libintl-xs-perl libmodule-find-perl libmodule-scandeps-perl
  libproc-processtable-perl libsort-naturally-perl libterm-readkey-perl python-babel-localedata python3-babel python3-certifi python3-jinja2
  python3-json-pointer python3-jsonpatch python3-jsonschema python3-markupsafe python3-pyrsistent python3-requests python3-tz
  python3-urllib3
Use 'apt autoremove' to remove them.
0 upgraded, 0 newly installed, 0 to remove and 173 not upgraded.
--- 启动应用程序并进行功能测试 ---

Description of results:

The results based on the printed information are as follows:

Hardware compatibility testing:

  1. PCI devices: All PCI devices can be detected, including host bridges, ISA bridges, IDE interfaces, USB controllers, graphics card controllers, Ethernet controllers, etc.
  2. USB device: A USB device was detected with ID 0627:0001, manufacturer Adomax Technology Co., Ltd, model QEMU USB Tablet.
  3. Disk and partition: A disk named vda was detected, with a size of 40G and a partition vda1, mounted in the root directory (/).

Operating system compatibility test:
The operating system version is Ubuntu, and the kernel version is 5.15.0-60-generic.
Application compatibility test:
The net-tools package is installed and is the latest version.

Summarize

In the hardware compatibility test, multiple PCI devices, a USB device, and disks and partitions were successfully detected, which means that the system is compatible with these devices and can recognize and use them correctly.
In the operating system compatibility test, the system runs the Ubuntu operating system, and the kernel version is 5.15.0-60-generic, which indicates that there is a certain compatibility between hardware and software.
In the application compatibility test, the net-tools package is installed and is the latest version, which means that the application is compatible with the system.
In general, the results of the compatibility test show that the system has a certain degree of compatibility at the hardware and software levels, but this information alone cannot make a specific good or bad judgment, because the compatibility test needs to be based on specific needs and expectations. to evaluate the performance of the system.
Based on this, friends who are interested can test the compatibility of other applications!!!

Guess you like

Origin blog.csdn.net/qq_33681891/article/details/132730115