Huawei Cloud Yaoyun Server L instance evaluation | Software performance evaluation used in the instance evaluation: Redis performance evaluation under Huawei Cloud Yaoyun Server

Huawei Cloud Yaoyun Server L instance evaluation | Software performance evaluation used in the instance evaluation: Redis performance evaluation under Huawei Cloud Yaoyun Server

Introducing Huawei Cloud Yaoyun Server

Introducing Huawei Cloud Yaoyun Server

Introducing Huawei Cloud Yaoyun Server

Huawei Cloud Yao Cloud Server (currently upgraded to Huawei Cloud Yao Cloud Server L instance)

What is Huawei Cloud Yaoyun Server?
华为云耀云服务器(Hyper Elastic Cloud Server) HECS 是一种可以快速搭建且易于管理的新一代云服务器,支持全方位性能监测,快速锁定中高风险信息
并及时提出建议,确保业务平稳运行;同时提供开箱即用的镜像,实现一键应用部署。
What are the differences between Huawei Cloud Yaoyun Server and the previous generation server?
  • One-stop configuration guidance: Supports one-stop configuration guidance, pre-installed third-party market images, so novices can complete application construction in minutes
  • Efficient acquisition of key information: minimalist console visual management, key information details are clear at a glance. Combined with efficient visual charts, what you see is what you get, allowing you to focus more on your business
  • All-round security guarantee: Provide all-round performance monitoring, observe the overall performance in real time, and quickly lock in medium and high-risk resources. The intelligent assistant digs deep into business suitability, intelligently selects and recommends business upgrades, and provides worry-free multi-protection performance.

What are the differences between Huawei Cloud Yaoyun Server and the previous generation server?

What are the differences between Huawei Cloud Cloud Server and Elastic Computing Cloud Server?
与弹性云服务器相比,云耀云服务器简化了购买ECS过程中的一些高级配置,一站式融合购买、登录、磁盘配置、网络配置、云监控、主机安全等多种功能,帮助您更加便捷高效的部署、配置和管理应用。
但是 HECS 底层使用的物理硬件资源与ECS一致,同CPU、内存的HECS与ECS计算能力在同一标准
另外就是 HECS 和普通的 ECS 有足够的成本优势
What are the advantages of Huawei Cloud Yaoyun server compared with the previous generation server?
中小企业便捷高效的在云端构建电商网站、Web应用、小程序、学习环境、各类开发测试等,简单上云快一步
  • Intelligent and non-stuck: Yaoguang AI intelligent scheduling and new generation network technology, soft and hard power drive performance doubling, achieving a smoother and more stable cloud migration experience
  • Excellent price and easy use: technology upgrades optimize cloud costs, benefiting more start-ups and developers
  • Getting started is easier: novice-friendly, ready-to-use, easy to deploy, allowing you to start your business one step faster
  • Management is particularly worry-free: One-stop management of operation and maintenance, monitoring, and resource distribution makes operation and maintenance more worry-free and efficient, allowing IT to focus more on business

in short

  • Easy to build
  • More affordable
  • Easy to maintain
  • safer

Introducing the scenarios in which Huawei Cloud Yaoyun Server is suitable

Suitable for start-up and growing companies and entry-level developers with relatively weak IT capabilities

Introducing why you choose Huawei Cloud Yaoyun Server

As the cloud computing era deepens, more and more small and medium-sized enterprises and developers need an easy-to-use, high-power and efficient cloud computing infrastructure product to
support their business operations and innovative development. Huawei Cloud’s newly launched Yunyao Cloud Server L instance is the perfect choice to meet the needs of enterprises and developers.

Mainly solve the following core pain points:

  • Difficult to choose
  • Difficulty in deployment
  • Difficulty in operation and maintenance
  • Unpredictable cost
  • Lightweight
  • Poor product performance stability

infrastructure

  • HECS L is built based on Huawei Cloud Qingtian architecture
  • It includes two parts: the "software and hardware collaboration system" on the data side and the "Yaoguang Intelligent Cloud Brain" on the management and control side.
  • The data plane is vertically optimized for L0/L1/L2
  • High-power CPU cooling through liquid cooling

Install the Redis environment on the server

We log in to the Pagoda panel and quickly install the Redis environment
Insert image description here
Insert image description here
. Then we go to the Huawei Cloud security group to release port 37690 to provide access.
Insert image description here
Then we return to the Pagoda panel.
Insert image description here

Check whether the Redis environment is running successfully

We go to the container page
Insert image description here
to check the logs and find that Redis started successfully.
Insert image description here
Check the current load of Redis.
Insert image description here

Test connection to Redis through Python code

We first initialize the Python environment, install the Python library
Insert image description here
, and then install the Redis dependent libraries.
Insert image description here
Wait for the installation to complete.
Insert image description here
Next, we write code for testing.

import redis

r = redis.Redis(host="120.46.137.251", port="37690", db=0,password="bt_redis")
r.set("key", "value")
v = r.get("key")
print(v)

if __name__ == '__main__':
    pass

The running results were found to be normal.
Insert image description here

Simple performance testing of Redis through Python

Let’s install locust’s dependent libraries
Insert image description here
and wait for the installation to complete.

Insert image description here
We write a simple code to read and write Redis in a loop

import redis
import random
import uuid
import time

r = redis.Redis(host="120.46.137.251", port="37690", db=0, password="bt_redis")


def get_set():
    k = str(uuid.uuid4())
    r.set(k, str(uuid.uuid4()))
    v = r.get(k)
    print(f'Redis Get Key {
      
      k}, Value : {
      
      v}')


def loop():
    for i in range(1, 1000):
        get_set()


def loop_with_pause():
    for i in range(1, 1000):
        time.sleep(0.01)
        get_set()


if __name__ == '__main__':
    loop()
    pass


Insert image description here
Monitoring of running code Redis

Insert image description here
Continuing to run, compared with when there is no load, the CPU goes from less than 0.1 to the current level of about 0.4.

Insert image description here
For a 2-core 2 GB server, 1,000 consecutive reads and writes do not cause much disturbance to the server, and it can basically satisfy most scenarios.

Insert image description here

Guess you like

Origin blog.csdn.net/qq_15071263/article/details/133418732