Back to HomeAlibaba Cloud

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

11 min min read
#Alibaba Cloud ECS#Cloud Server#VPS#Hong Kong Data Center#Security Group#Instance Types#Cloud Hosting#Server Setup#Pricing#Alibaba Cloud

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 Interface

What is Alibaba Cloud ECS?

ECS stands for Elastic Compute Service.

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

You can:

  • Choose how many CPUs and how much memory you need
  • Choose to install Windows or Linux
  • Adjust specs at any time
  • Pay only for what you use

What Can ECS Do?

Almost anything that needs a server:

  • Host websites: WordPress, corporate sites, e-commerce platforms
  • Run applications: App backend APIs, data processing
  • Development and testing: Create test environments, CI/CD workflows
  • Game servers: Minecraft, private server hosting
  • Databases: Self-managed MySQL, PostgreSQL

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:

  • Very low budget, very little traffic: Use cheap VPS
  • Production environment, need flexibility: Use ECS
  • Special requirements, maximum performance: Use physical server

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:

  • ecs: Product name
  • g7: Instance family (g = general purpose, 7 = 7th generation)
  • large: Size specification

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:

  • Most websites and applications
  • Small to medium databases
  • Development and testing environments

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:

  • CPU-intensive computing
  • Batch processing
  • High-traffic web frontends
  • Game servers

Memory Optimized (r series)

CPU to memory ratio is 1:8.

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

Suitable scenarios:

  • Large databases
  • Memory caching (Redis, Memcached)
  • Big data analytics

Economy (e series)

Entry-level specs, cheapest prices.

Suitable scenarios:

  • Personal websites
  • Development testing
  • Low-traffic applications

Note: Lower performance, not suitable for production environments.


GPU Instances

Equipped with NVIDIA GPUs.

Suitable scenarios:

  • AI model training
  • Deep learning inference
  • Video transcoding
  • 3D rendering

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 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:

  • Pay-as-you-go: For testing, can delete anytime
  • Subscription: For production, cheaper

Region selection:

  • Choose "Hong Kong" (lowest latency for most international users)

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:

  • CentOS: Stable, enterprise favorite (but maintenance discontinued)
  • Ubuntu: Active community, beginner-friendly
  • Alibaba Cloud Linux: Alibaba Cloud optimized version, free
  • Debian: Lightweight and stable

Windows options:

  • Windows Server 2019/2022
  • Requires additional licensing fee

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

Step 5: Configure Storage

System disk:

  • Minimum 20GB, recommended 40-100GB
  • Choose "ESSD" type for best performance

Data disk (optional):

  • If you need additional storage space
  • Can be added anytime, don't need to buy initially

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):

  • First time will auto-create default VPC
  • Can also create custom VPC

Public IP:

  • Check "Assign public IPv4 address"
  • Bandwidth selection: Pay-by-traffic is more flexible

Security Group:

  • This is ECS's firewall
  • Detailed explanation below

Step 7: Set Login Method

Linux:

  • Recommend using "SSH key pair", more secure than password
  • If using password, must set a strong password

Windows:

  • Set Administrator password

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:

  • Website won't open (didn't open 80/443)
  • SSH won't connect (didn't open 22)
  • Hacker intrusion (opened too many ports)

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 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:

  • Security group didn't open port 22 (most common)
  • Password entered wrong
  • Firewall blocking

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:

  • CPU usage
  • Memory usage
  • Disk I/O
  • Network traffic

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 Dashboard

Need a Second Opinion on Architecture Design?

Cloud server spec selection directly affects cost and performance:

  • Choose too large: Spend thousands extra monthly
  • Choose too small: Performance bottleneck affects user experience
  • Wrong architecture: Difficult to scale later

How CloudInsight Can Help

  • Requirements Analysis: Understand your traffic, user distribution, growth expectations
  • Spec Recommendations: Recommend best configuration based on actual needs
  • Architecture Design: Plan high-availability, scalable cloud architecture
  • Cost Optimization: Find savings opportunities, avoid waste

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

Related Articles