HomeBlogAboutPricingContact🌐 中文
Back to HomeAlibaba Cloud
Alibaba Cloud ECS Tutorial: Server Specs, Configuration, and Pricing Guide [2025]

Alibaba Cloud ECS Tutorial: Server Specs, Configuration, and Pricing Guide [2025]

📑 Table of Contents

Alibaba Cloud ECS Tutorial: Server Specs, Configuration, and Pricing Guide [2025]

First time using Alibaba Cloud to create a server, and seeing dozens of specs with no idea how to choose?

Choose too large and you waste money; choose too small and performance suffers.

This tutorial will start from zero, teaching you how to select the right specs, configure your server, and control costs.

Illustration 1: Alibaba Cloud ECS Console InterfaceIllustration 1: Alibaba Cloud ECS Console Interface


What is Alibaba Cloud ECS?

💡 Key Takeaway: ECS stands for Elastic Compute Service.

In plain terms: it's renting a virtual computer in Alibaba Cloud's data center.

You can:

What Can ECS Do?

Almost anything that needs a server:

ECS vs VPS vs Physical Servers

ItemPhysical ServerVPSECS (Cloud Server)
HardwareDedicated physical machineVirtualized partitionVirtualized partition
Spec ChangesNeed to change machinesLimitedAdjust anytime
PaymentMonthly/yearly rentMonthly rentPay-as-you-go/subscription
ScalabilityPoorAverageExcellent
CostHighLowMedium
Operations ComplexityHighMediumLow

Simple conclusion:

To learn about Alibaba Cloud's complete services, see Alibaba Cloud Complete Guide: From Beginner to Advanced, Essential Reading for International Users [2025].



ECS Specifications and Instance Type Selection

This is the most confusing part for beginners.

Alibaba Cloud ECS has dozens of instance types with names that look like codes: g7, c7, r7, e...

Don't panic—once you understand the naming convention, it's quite simple.

Instance Type Naming Convention

Take ecs.g7.large as an example:

Main Instance Families

General Purpose (g series)

CPU to memory ratio is 1:4.

Examples: 2 cores 8GB, 4 cores 16GB, 8 cores 32GB

Suitable scenarios:

This is the most commonly used type—if you don't know what to choose, pick this one.


Compute Optimized (c series)

CPU to memory ratio is 1:2.

Examples: 2 cores 4GB, 4 cores 8GB, 8 cores 16GB

Suitable scenarios:


Memory Optimized (r series)

CPU to memory ratio is 1:8.

Examples: 2 cores 16GB, 4 cores 32GB, 8 cores 64GB

Suitable scenarios:


Economy (e series)

Entry-level specs, cheapest prices.

Suitable scenarios:

Note: Lower performance, not suitable for production environments.


GPU Instances

Equipped with NVIDIA GPUs.

Suitable scenarios:

If you need GPUs for AI applications, see Alibaba Cloud AI Services Complete Guide.

Data Center Selection for International Users

Alibaba Cloud has multiple data centers in Asia Pacific:

Data CenterLatency to AsiaRecommended Use
Hong Kong30-50msMost recommended, lowest latency
Singapore50-80msWhen serving Southeast Asian users
Tokyo40-60msWhen serving Japanese users
Shanghai/Beijing60-100msWhen serving Chinese users

International users should choose Hong Kong data center first.

Only consider data centers within mainland China if your users are primarily in China (but note ICP filing requirements).

Illustration 2: ECS Spec Selection InterfaceIllustration 2: ECS Spec Selection Interface

Choosing too large wastes money, too small hurts performance. Not sure which spec to choose? Schedule architecture consultation and let us help you evaluate.



ECS Creation and Setup Tutorial

Hands-on practice once is more effective than reading ten articles.

Step 1: Log into Console

  1. Go to Alibaba Cloud International
  2. Log into your account
  3. Find "Elastic Compute Service" in the product list
  4. Click to enter ECS console

If you don't have an account yet, see Alibaba Cloud International Complete Guide: Registration, Services, and Pricing for International Users.

Step 2: Create Instance

Click the "Create Instance" button.

Billing method selection:

Region selection:

Step 3: Select Instance Specifications

Choose based on your needs:

Use CaseRecommended SpecMonthly Cost (approx.)
Personal blogecs.e-c1m1.large (1 core 2GB)$5-10
Small websiteecs.g7.small (1 core 2GB)$15-25
Corporate websiteecs.g7.large (2 cores 8GB)$40-60
E-commerce platformecs.g7.xlarge (4 cores 16GB)$80-120
High-traffic appecs.g7.2xlarge (8 cores 32GB)$160-240

Tip: Start with smaller specs, upgrade if needed. ECS supports online upgrades without rebuilding.

Step 4: Select Operating System

Linux options:

Windows options:

Recommendation: If no special requirements, choose Ubuntu 22.04 LTS or Alibaba Cloud Linux 3.

Step 5: Configure Storage

System disk:

Data disk (optional):

Money-saving tip: Store large static files in OSS instead—much cheaper than ECS disk. See Alibaba Cloud OSS Complete Tutorial.

Step 6: Configure Network

VPC (Virtual Private Cloud):

Public IP:

Security Group:

Step 7: Set Login Method

Linux:

Windows:

Step 8: Confirm and Create

Check all settings, confirm costs, click "Create Instance".

A few minutes later, ECS will be created.



Security Group Configuration Tutorial

Security groups are ECS's firewall.

Incorrect configuration will cause:

Common Port Reference Table

PortPurposeShould Open?
22SSH (Linux remote access)Required for Linux
3389RDP (Windows Remote Desktop)Required for Windows
80HTTP (website)Required for websites
443HTTPS (encrypted website)Required for websites
3306MySQL databaseOpen with caution
6379RedisOpen with caution

Security Group Configuration Steps

  1. Enter ECS console
  2. Click "Security Groups" in left menu
  3. Find your security group, click "Configure Rules"
  4. Click "Add Security Group Rule"

Example: Open website ports

SettingValue
Rule DirectionInbound
Authorization PolicyAllow
Protocol TypeCustom TCP
Port Range80/80
Authorization Object0.0.0.0/0

Repeat above steps to open port 443.

Security Group Best Practices

1. Principle of Least Privilege

Only open needed ports, close everything else.

2. Restrict Source IPs

If possible, restrict access to specific IPs only.

Example: SSH only allows company IP to connect.

3. Don't Expose Databases Publicly

MySQL, Redis and other database services shouldn't be directly exposed to internet.

Applications connect via internal network—secure and fast.

Illustration 3: Security Group Configuration InterfaceIllustration 3: Security Group Configuration Interface


ECS Pricing

Alibaba Cloud ECS costs consist of multiple parts.

Many people only look at instance cost, then overspend.

Cost Components

Cost ItemDescriptionBilling Method
Instance FeeCPU + memory costPay-as-you-go/Subscription
System DiskDisk where OS is installedBy capacity
Data DiskAdditional storage spaceBy capacity
Public Network TrafficOutbound transferPer GB
SnapshotsDisk backupsBy capacity
Elastic IPFixed public IP (optional)By time

Cost Example

Scenario: Hosting a small-medium website

ItemSpecificationMonthly Cost (approx.)
ECS Instanceg7.large (2 cores 8GB) annual$45
System DiskESSD 40GB$4
Public Traffic100GB/month$8
Snapshots40GB$1
Total$58/month

Money-Saving Tips

1. Use Subscription

30-50% cheaper than pay-as-you-go.

If you're sure about long-term use, definitely choose annual subscription.

2. Use Spot Instances

Spot instances can be as low as 10% of pay-as-you-go price.

But may be reclaimed, suitable for interruptible tasks.

3. Put Static Files in OSS

Images, videos and large files in OSS + CDN are cheaper than ECS disk.

4. Check Bills Regularly

Alibaba Cloud console has cost analysis tools.

Recommend checking weekly to catch anomalies early.

5. Use the Right Instance Type

Don't choose oversized specs "just in case".

ECS can be upgraded anytime—start small.


Alibaba Cloud has many billing items, easy to overspend. Free bill health check, we'll help you find savings.



Common Issues and Troubleshooting

Q1: Can't SSH connect, what to do?

Checklist:

  1. Confirm ECS status is "Running"
  2. Confirm security group has port 22 open
  3. Confirm public IP is correct
  4. Confirm password or SSH key is correct
  5. Use ping to test network connectivity

Common causes:

Q2: Website won't open, what to do?

Checklist:

  1. Confirm web service (Nginx/Apache) is running
  2. Confirm security group has ports 80 and 443 open
  3. Confirm domain DNS resolution is correct
  4. Confirm ECS system firewall settings

Q3: ECS is very slow, what to do?

Possible causes:

Diagnosis method:

Enter ECS console, view monitoring data:

Q4: How to backup ECS?

Method 1: Snapshots

Create disk snapshots in console, can restore to any point in time.

Method 2: Images

Create the entire ECS as an image, can quickly clone to new ECS.

Method 3: Auto Snapshot Policy

Set up auto snapshots, backs up daily automatically.

Q5: How to upgrade ECS specs?

  1. Enter ECS console
  2. Select instance to upgrade
  3. Click "More" → "Instance Type Adjustment"
  4. Select new specs
  5. Confirm price difference
  6. Restart to take effect

Note: Some spec changes require shutdown, recommend during maintenance windows.

Illustration 4: ECS Monitoring DashboardIllustration 4: ECS Monitoring Dashboard


Need a Second Opinion on Architecture Design?

Cloud server spec selection directly affects cost and performance:

How CloudSwap Can Help

Schedule architecture consultation and let's review your requirements together.

We'll give you the best recommendations based on your traffic, budget, and growth expectations.

From single ECS to complex microservices architecture, we have experience

👉 Schedule now for professional architecture advice



References

  1. Alibaba Cloud ECS Documentation - https://www.alibabacloud.com/help/ecs
  2. ECS Instance Type Families - https://www.alibabacloud.com/help/ecs/user-guide/instance-families
  3. Alibaba Cloud Pricing Calculator - https://www.alibabacloud.com/pricing-calculator
  4. ECS Best Practices - https://www.alibabacloud.com/help/ecs/best-practices
  5. Security Group Configuration Guide - https://www.alibabacloud.com/help/ecs/user-guide/security-groups

Need Professional Cloud Advice?

Whether you're evaluating cloud platforms, optimizing existing architecture, or looking for cost-saving solutions, we can help

Book Free Consultation

Alibaba CloudAWS
Previous
Alibaba Cloud Enterprise Email Tutorial: Setup, Pricing, and Complete Review [2025]
Next
Alibaba Cloud Complete Guide: From Beginner to Advanced, Essential Reading for International Users [2025]