Summary of ECS Best Practices
This section describes common application scenarios of Elastic Cloud Server (ECS) and provides solution details and operation guidance for each scenario, so you can easily deploy services using ECS.
Best Practices for Using ECSs
Category | Scenario | Reference | Description |
|---|---|---|---|
Selection and Configuration | Selecting ECS specifications | This practice describes how to select ECSs suitable for your service requirements. | |
Configuring an ECS | This practice describes how to configure an ECS after purchasing it. | ||
Enabling public network access for an ECS | It summarizes how to enable public network access for an ECS. | ||
Configuring performance | A c9.large.2 ECS running Huawei Cloud EulerOS 2.0 is used as an example to describe how to disable deep hibernation for CPUs. | ||
Allowing a non-root user for login | This practice describes how to create an ECS and allow a non-root user to log in to the ECS. | ||
Managing instance login credentials | After creating an ECS, you can log in to it as the default user or a created user, or connect to it using a password or key pair. | ||
Environment setup | Setting up an LNMP environment | An ECS running CentOS 7.2 64-bit is used as an example to describe how to set up an LNMP environment. | |
An ECS running CentOS 8.0 64-bit is used as an example to describe how to set up an LNMP environment. | |||
An ECS running Ubuntu 20.04 64-bit is used as an example to describe how to set up an LNMP environment. | |||
An ECS running Huawei Cloud EulerOS 2.0 64-bit is used as an example to describe how to set up an LNMP environment. | |||
Setting up a LAMP environment | An ECS running CentOS 7.8 64-bit is used as an example to describe how to set up a LAMP environment. | ||
An ECS running Ubuntu is used as an example to describe how to set up a LAMP environment. | |||
Setting up a Java web environment | An ECS running CentOS 7.4 64-bit is used as an example to describe how to set up a Java Web environment. | ||
Setting Up a Tomcat-based Java Web Environment (Huawei Cloud EulerOS 2.0) | An ECS running Huawei Cloud EulerOS 2.0 64-bit is used as an example to describe how to set up a Java Web environment. | ||
Setting up a Python environment | This practice describes how to set up a Python environment manually on an ECS. | ||
Setting up a Hadoop environment | An ECS running CentOS is used as an example to describe how to set up a Hadoop environment. | ||
Setting up a Node.js environment | An ECS running CentOS 7.2 64-bit is used as an example to describe how to set up a Node.js environment. | ||
Website setup | Setting up a WordPress website | An ECS running CentOS 7.2 64-bit is used as an example to describe how to set up a WordPress website. | |
Setting up a Discuz! forum | An ECS running CentOS is used as an example to describe how to set up a Discuz! forum. | ||
Configuring Multiple Websites | This practice describes how to use the IIS service to set up multiple websites on an ECS running Windows Server 2022 Standard 64-bit. | ||
This practice describes how to use Nginx to set up multiple websites on a Linux ECS. | |||
Deploying a Ghost blog | An ECS running Ubuntu 20.04 64-bit is used as an example to describe how to deploy a Ghost blog. | ||
Application setup | Setting up an FTP site | An ECS running Windows Server 2012 Datacenter 64-bit is used as an example to describe how to set up an FTP site. | |
An ECS running Windows Server 2019 Datacenter 64-bit is used as an example to describe how to set up an FTP site. | |||
An ECS running CentOS 7.2 64-bit is used as an example to describe how to set up an FTP website. | |||
An ECS running Ubuntu 22.04 64-bit is used as an example to describe how to set up an FTP website. | |||
An ECS running Huawei Cloud EulerOS 2.0 64-bit is used as an example to describe how to set up an FTP website. | |||
Building Microsoft SharePoint Server | An ECS running Windows Server 2012 Datacenter 64-bit is used as an example to describe how to build Microsoft SharePoint Server 2016. | ||
Deploying a database | This practice describes how to deploy MySQL databases on a Linux ECS. | ||
This practice describes how to deploy MySQL databases on a Windows ECS. | |||
Deploying Docker | An ECS running CentOS 7.5 64-bit is used as an example to describe how to deploy Docker. | ||
Deploying an ECS as an official WeChat account server | Deploying an ECS for Handling Text Messages from an Official WeChat Account | An ECS running CentOS 7.4 64-bit is used as an example to describe how to deploy an ECS as an official WeChat account server. | |
Installing a BT panel | An ECS running CentOS 7.2 64-bit is used as an example to describe how to install the BT panel. | ||
Deploying GitLab | An ECS running CentOS 7.2 64-bit is used as an example to describe how to deploy GitLab. | ||
Deploying RabbitMQ | An ECS running CentOS 7.4 64-bit is used as an example to describe how to deploy RabbitMQ. | ||
Deploying and using SVN | An ECS running CentOS 7.2 64-bit is used as an example to describe how to deploy and use SVN. | ||
Setting up a ThinkPHP framework | An ECS running CentOS 7.2 64-bit is used as an example to describe how to set up a ThinkPHP framework. | ||
Setting up primary-secondary replication on PostgreSQL | An ECS running CentOS 7.6 64-bit is used as an example to describe how to set up primary-secondary replication on PostgreSQL. | ||
Deploying Jenkins | An ECS running CentOS 7.6 64-bit is used as an example to describe how to deploy Jenkins. | ||
Configuring auditd | An ECS running CentOS 7.4 64-bit is used as an example to describe how to install and configure auditd. | ||
Restoring data using Extundelete | Restoring Accidentally Deleted Data Using Extundelete (Linux) | An ECS running CentOS 7.5 64-bit is used as an example to describe how to use the open-source tool Extundelete to quickly restore accidentally deleted data. | |
Setting up an AD domain | An ECS running Windows Server 2022 is used as an example to describe how to set up and use an AD domain. | ||
Creating an image using Packer | This practice describes how to use Packer to create an Ubuntu 22.04 Server 64-bit private image on a CentOS 8.2 64-bit ECS. | ||
Deploying Django | This practice describes how to use Nginx and uWSGI to deploy Django on a Linux ECS. | ||
ECS security | Enhancing security for SSH logins to Linux ECSs | An ECS running CentOS 7.6 64-bit is used as an example to describe how to enhance security for SSH logins. | |
Setting up a high-availability web cluster | Using a Virtual IP Address and Keepalived to Set Up a High-Availability Web Cluster | An ECS running CentOS 7.8 64-bit is used as an example to describe how to use a virtual IP address and Keepalived to set up a high-availability web cluster. | |
Configuring security groups | This practice describes the concept of security groups and how to set security group rules. | ||
ECS migration | Migrating servers to the cloud | This practice describes how to use Server Migration Service (SMS) and image import to migrate applications and data from your existing servers to Huawei Cloud. | |
Migrating ECSs across accounts and regions through image replication | Migrating ECSs Across Accounts and Regions Through Image Replication | This practice describes how to migrate ECSs between Huawei Cloud accounts in different regions. | |
Data backup and restore | Backing up and restoring ECS data | If a disk partition is damaged or data is lost in the OS, and no snapshot is created in advance, you can use tools such as fdisk to repair the disk partition and restore data. | |
Partitioning disks and rolling back data on a Windows ECS | This practice describes how to restore data that is lost due to misoperations, formatting, or system breakdown in the Windows OS. | ||
ECS O&M and monitoring | Logs | An ECS running Windows Server 2022 is used as an example to describe how to view and use system logs, application logs, security logs, and applications and services logs. | |
Monitoring and alarms | This practice uses the general website service architecture as an example to describe how to use Cloud Eye to build website monitoring capabilities. | ||
Using Prometheus and Grafana to Monitor Servers in Real Time | This practice describes how to configure Prometheus and Grafana to collect monitoring data and visualize monitoring metrics. | ||
This practice describes how to configure Loki to collect various application logs and push the log data to Grafana Loki. | |||
GPU instances | Deploying a deep learning framework | Deploying an NGC Container Environment to Create a Deep Learning Development Environment | This practice uses the TensorFlow deep learning framework as an example to describe how to use the containerized solution to deploy the NGC container environment on a GPU ECS to pre-install the deep learning development environment. |
Deploying a quantized DeepSeek model | Deploying a Quantized DeepSeek Model with Ollama on a Single Server (Linux) | This practice describes how to use Ollama to deploy a quantized DeepSeek model. | |
Deploying a DeepSeek-R1 or DeepSeek-V3 model | This practice describes how to use vLLM to deploy a DeepSeek-R1 or DeepSeek-V3 model. | ||
Deploying a DeepSeek-R1 or DeepSeek-V3 model | This practice describes how to use SGLang to deploy a DeepSeek-R1 or DeepSeek-V3 model. | ||
Deploying a distilled DeepSeek model | Deploying a Distilled DeepSeek Model with vLLM on a Single Server (Linux) | This practice describes how to use vLLM to deploy a distilled DeepSeek model. | |
Other | Accessing OBS from an ECS over an intranet | Accessing OBS over Intranet by Using OBS Browser+ on a Windows ECS | This practice describes how to use OBS Browser+ to access OBS over intranet on a Windows ECS. |
This practice describes how to use obsutil to access OBS over intranet on a Linux ECS. | |||
Deploying an HA architecture | This practice describes how to build an HA database cluster across multiple ECSs and use the proxy service to implement flexible scheduling and read/write splitting. | ||
Using VNC Viewer to access a Linux ECS | Ubuntu 20.04 OS is used as an example to describe how to install VNC Server on a Linux ECS and how to use VNC Viewer to access the ECS. |
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
