Huawei Cloud Yaoyun Server L instance evaluation | Deployment of Ward server monitoring tool in Docker environment

I. Introduction

1.1 Introduction to Yunyao Cloud Server L instance

Yunyao cloud server L instance is a new generation of lightweight application cloud server, designed for small and medium-sized enterprises and developers, providing a convenient out-of-the-box experience. This product provides rich and strictly screened application images, and can deploy applications with one click, which greatly simplifies the process for customers to build e-commerce websites, web applications, small programs, learning environments, and various development and testing tasks on the cloud.

Insert image description here

1.2 Introduction to Ward

Ward is a simple and minimalist server monitoring tool developed in Java.

1.3 Ward Features

  • Ward supports an adaptive design system.
  • Ward also supports dark theme.
  • Ward only displays the main information of the server.
  • Ward runs well on all popular operating systems.

2. Introduction to this practice

2.1 Introduction to this practice

1. This practice is a personal test and learning environment, which aims to quickly deploy applications. Please be cautious in the production environment;
2. This practice environment is Yunyao Cloud Server L instance, and the application image used is Portainer 2.18.4;
3. In Portainer Deploy Ward server monitoring tool on the platform.

2.2 This environmental planning

server class application image Intranet IP address Docker version Portainer version ward version
Yunyao cloud server L instance Docker visualization Portainer 192.168.0.168 24.0.4 2.18.4 v2.3.1

3. Purchase an L instance of Yunyao Cloud Server

3.1 Purchase Yunyao Cloud Server L instance

1. Official website link: https://www.huaweicloud.com/product/hecs-light.html
2. Purchase specification:
Region: North China—Beijing 4;
Application image: Docker visualization-Portainer;
Instance specification: 2 cores 2G/system Disk 40G/peak bandwidth 3Mbps/traffic package 400G;
instance name: Customize it, edit it here as HECS-L-Portainer;
purchase duration: 1 month.

Insert image description here

3.3 Check the status of Yunyao Cloud Server L instance

Check the status of the purchased Yunyao Cloud Server L instance and it is running normally.

Insert image description here

3.4 Reset server password

Click to remotely log in to Yunyao Cloud Server L instance

Insert image description here

Insert image description here

To reset the password, click the reset password option on the right. Identity verification is required. After selecting mobile phone verification, the password can be reset successfully.

Insert image description here

Insert image description here

4. Check the Docker environment

4.1 Xshell connects to the server remotely

  • Copy the elastic public IP address and use it when connecting to the server remotely.

Insert image description here

  • In the Xshell tool, fill in the server's elastic public IP address, account and password information, and connect to the remote server via ssh.

Insert image description here

Insert image description here
Insert image description here

4.2 Check the operating system version

Check the operating system version of the HUAWEI CLOUD Yaoyun Server L instance

root@hcss-ecs-f91c:~# cat /etc/os-release
PRETTY_NAME="Ubuntu 22.04.1 LTS"
NAME="Ubuntu"
VERSION_ID="22.04"
VERSION="22.04.1 LTS (Jammy Jellyfish)"
VERSION_CODENAME=jammy
ID=ubuntu
ID_LIKE=debian
HOME_URL="https://www.ubuntu.com/"
SUPPORT_URL="https://help.ubuntu.com/"
BUG_REPORT_URL="https://bugs.launchpad.net/ubuntu/"
PRIVACY_POLICY_URL="https://www.ubuntu.com/legal/terms-and-policies/privacy-policy"
UBUNTU_CODENAME=jammy

4.3 Check Docker service status

  • Check Docker version
root@hcss-ecs-f91c:~# docker -v
Docker version 24.0.4, build 3713ee1
  • Check Docker service status
root@hcss-ecs-f91c:~# systemctl status docker
● docker.service - Docker Application Container Engine
     Loaded: loaded (/lib/systemd/system/docker.service; enabled; vendor preset: enabled)
     Active: active (running) since Thu 2023-09-07 18:25:51 CST; 1 day 19h ago
TriggeredBy: ● docker.socket
       Docs: https://docs.docker.com
   Main PID: 30672 (dockerd)
      Tasks: 58
     Memory: 95.3M
        CPU: 2min 26.101s
     CGroup: /system.slice/docker.service

4.4 Check Docker compose version

Check the current docker compose version. The currently used docker compose version is v2.19.1.

root@hcss-ecs-f91c:~# docker compose version
Docker Compose version v2.19.1

5. Download the Ward image

Download the Ward image from docker hub

root@hcss-ecs-f91c:~# docker pull antonyleons/ward
Using default tag: latest
latest: Pulling from antonyleons/ward
10ac4908093d: Pull complete
6df15e605e38: Pull complete
6e89b8aba240: Pull complete
ba4c59299320: Pull complete
26be6fa74d76: Pull complete
d86ad94abb1e: Pull complete
Digest: sha256:f9d2daed1276eb01042ace6fb782689da96934f313e30240ff769dcb03a72da7
Status: Downloaded newer image for antonyleons/ward:latest
docker.io/antonyleons/ward:latest

6. Deploy Ward service

6.1 docker-cli deployment

You can use docker-cli to quickly deploy Ward.

docker run --restart unless-stopped -it -d --name ward -p 4000:4000 -e WARD_PORT=4000 -e WARD_THEME=dark --privileged antonyleons/ward

6.2 docker compose deployment

  • This practice chooses to use docker compose to deploy Ward.
vim docker-compose.yaml
version: '3.3'
services:
    ward:
        image: antonyleons/ward
        restart: unless-stopped
        container_name: ward
        ports:
            - '4000:4000'
        environment:
            - WARD_PORT=4000
            - WARD_THEME=dark
            - WARD_NAME=leons-server
        privileged: true
  • Start deploying Ward
root@hcss-ecs-f91c:~# docker compose up -d
[+] Running 2/2
 ✔ Network root_default  Created                                                                                                                                          0.5s
 ✔ Container ward        Started                                                                                                                                          3.4s

6.3 Check the running status of the ward container

Check the running status of the ward container to ensure that the container is running normally and started.

root@hcss-ecs-f91c:~# docker ps
CONTAINER ID   IMAGE                           COMMAND                  CREATED          STATUS                  PORTS  NAMES
8a7fe0e89aac   antonyleons/ward                "/bin/sh -c 'java -j…"   46 seconds ago   Up 43 seconds           0.0.0.0:4000->4000/tcp, :::4000->4000/tcp  ward

6.4 Check the ward container operation log

Check the running logs of the ward container to ensure that the ward service is running normally.

Insert image description here

7. Visit Ward's web monitoring page

7.1 Security group release port

On the security group management page of Huawei Cloud Yaoyun Server L instance, allow port 4000 in the inbound direction of the security group.

Insert image description here
Insert image description here

7.2 Access ward service

Access address: http://Elastic public IP address: 4000.
Replace the IP address with the elastic public IP address of your own server.

Insert image description here

8. Usage experience and feelings

HUAWEI CLOUD Yunyaoyun Server L instance is a cloud server with excellent performance, stability, reliability, and good security. It is easy to purchase, and the management page of the server is simple and easy to operate. In daily use, the operation is very smooth and the network is stable. Multi-scenario application images also save a lot of time in deploying applications. We hope that more application images can be launched in the future. At the same time, Yunyao Cloud Server L instances are cost-effective and can meet the needs of small and medium-sized enterprises and individual users.

Guess you like

Origin blog.csdn.net/jks212454/article/details/132776610