Alibaba Cloud ECS Server and RDS Database Selection Tutorial (Infrastructure Selection Guide)
When purchasing Aliyun services, the most perfect solution is not to pursue the highest single match, but to pursue
The performance of ECS (computing) and RDS (storage) is equivalent, architecture matching and link closed loop.
。 This guide will teach you how to configure it accurately from the three dimensions of architecture, specifications and region.
1. Geography and Availability Zones: The First Step in Determining Performance
This is a decisive step before buying any cloud product,
Once the wrong region is selected, it cannot be changed online.
。
Nearby selection principle: where the target user is, where to choose. North users choose more than Beijing, Shenzhen in the south, and Hangzhou in general. Overseas free filing preferred Hong Kong, China.
Intranet interworking principle: The ECS server and RDS database must be in the same region. Only in the same region can you connect to the intranet. Intranet access is free and has very low latency (<1ms); If you use the public network across regions, it is not only slow but also requires additional traffic charges.
Availability Zone (AZ) Strategy: Pursue extreme speed: ECS and RDS are selected in the same availability zone (for example, both in Hangzhou Availability Zone A), with the lowest delay. Pursuing high availability: select multi-zone deployment for the database. The main warehouse is in computer room a and the standby warehouse is in computer room B, realizing disaster tolerance at the computer room level.
2. ECS cloud server purchase: the "engine" of business"
1. Select architecture (underlying capabilities)
x86 architecture (Intel/AMD): A panellist. Compatibility is 100, and it is the most stable for enterprise official website, traditional Java/PHP applications and Windows.
Arm Architecture (710 by Heaven): The King of Price/Performance. Ideal for new projects like containerization (Docker/K8s), microservices, Go/Node.js, and more.
GPU Heterogeneous: AI-specific. Only for model training, video transcoding or 3D rendering, please bypass the website.
2. Select specifications (performance ratio)
Universal (1:4): such as 2-core 8G, 4-core 16G. I don't know what to choose, it is suitable for most web applications.
Computational type (1:2): such as 4-core 8G. Suitable for highly concurrent APIs, game backends, and logical computing-intensive businesses.
General calculation force type (u1): the preferred cost-effective model for small and medium-sized enterprises and individuals.
Shared: For personal practice or testing only, production environments are strictly prohibited.
3. RDS Cloud Database Purchase: Logistics Station for Business
1. Select engine (data logic)
MySQL 8.0: Internet standard. E-commerce, small programs, APP back-end preferred, the ecology is the most mature.
PostgreSQL: Suitable for GIS geographic data, complex financial calculations, large model data storage.
SQL Server: strong dependency. NET ecological or Microsoft ERP enterprise preferred.
2. Select version (stability)
Basic Edition: Single node, no redundancy. Test use only, no high availability guarantee.
High availability version: one master and one standby, automatic cutting in seconds
Change. The bottom line of the enterprise production environment.
Cluster Edition: It is suitable for ultra-large-scale traffic and supports read/write separation and linear scaling.
3. Select storage (performance bottleneck)
ESSD PL1: production environment starting standard, cost-effective.
ESSD PL2/PL3: For scenarios with very high I/O requirements such as high-frequency trading and second kill.
4. gold combination scheme
Business scenarios
ECS Recommended Scenario
RDS Recommendations
Storage and deployment recommendations
Personal Blog/Show official website
u1 series (2 core 4G)
MySQL 8.0 High Availability Edition (1 core 2G)
Premium ESSD in the same region
Standard e-commerce/SaaS
x86 Universal (4-core 16G)
MySQL 8.0 High Availability Edition
ESSD PL1 Multi-AZ
Microservices/Cloud Native
Arm heavenly (4 cores 16G)
MySQL/PG High Availability Edition
ESSD PL1 containerized deployment
High concurrency/game backend
x86 computing type (8 cores 16G)
MySQL Cluster Edition
ESSD PL2 read-write separation
Development Test Environment
Shared (2 cores 4G)
Basic Edition (1 Core 2G)
Choose the cheapest region.
5. Pit Avoidance Tips
Select the new architecture instead of the old: 7-generation and 8-generation instances (such as g7/g8) and MySQL 8.0 are preferred, which have better performance and are usually more expensive.
Bandwidth is more expensive than configuration: It is recommended that ECS select 1-5M bandwidth and cooperate with OSS (object storage) CDN to greatly reduce costs and improve speed.
Intranet connection is the most important: Make sure that the VPC (private network) of the ECS and RDS are the same, otherwise the connection cannot be made through the intranet.
The wrong selection can be upgraded, and the wrong region can only be bought again: the region must be checked before the selection, the database migration cost is extremely high, and it should be done in one step as far as possible.
Summary recommendations:
Please identify the production environment
"co-location highly available architecture ESSD storage"
The iron triangle portfolio, which is the core cornerstone of business stability.

