Huawei Cloud Yaoyun Server L instance evaluation | Example scenario experience of building interface services: building API services through Huawei Cloud Yaoyun Server

Huawei Cloud Yaoyun Server L instance evaluation | Example scenario experience of building interface services: building API services through 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 era of cloud computing further 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

Build a basic operating environment through Python Flask

We log in to the Pagoda panel and enter the terminal. The Python basic operating environment of the Pagoda panel is installed /www/server/panel/pyenv/bin
under . We enter this directory.

Insert image description here
We verify that the Python environment can run normally

Insert image description here
The environment is normal

We write Python code to build basic services

from flask import Flask, jsonify
import uuid
from datetime import datetime

app = Flask(__name__)


def time():
    return datetime.now().strftime('%Y-%m-%d %H:%M:%S')


@app.route('/')
def _():
    return jsonify(f"{
      
      time()} : Hello World !!!")


@app.route('/uuid')
def _uuid():
    return jsonify(f"{
      
      time()} : {
      
      uuid.uuid4()}")


if __name__ == '__main__':
    app.config['JSON_AS_ASCII'] = False
    app.run(host='0.0.0.0', port=8108, debug=True)

We build a test directory and create a Python file.
Insert image description here
We double-click the file to edit it, write the code, and save it.
Insert image description here

Then we enter the directory in the terminal

Insert image description here

Then we try to run the Python file

Insert image description here
We successfully ran the Python interface service and completed the interface test through curl. The interface returned data normally.

Test uuid interface, also normal

Insert image description here

Expose the interface service to the external network

We only need to enable the firewall to allow port 8102, and then add port 8102 to the Huawei Cloud security group.

Guess you like

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