You need to enable JavaScript to run this app.
Elastic Compute Service

Elastic Compute Service

Copy page
Download PDF
Reserved Instances
Reserved Instances (RI) matching rules
Copy page
Download PDF
Reserved Instances (RI) matching rules
Reserved Instance coupons must be matched to Pay-as-you-go instances before they can be used for bill deduction. This article mainly describes the matching rules between Reserved Instance coupons and Pay-as-you-go instances, excluding spot instances.​
Matching rules​
After purchasing Reserved Instances (RI), the RI will automatically match Pay-as-you-go instances that meet the conditions within the validity period. Manual matching is not supported. After a successful match, Reserved Instances (RI) check eligible Pay-as-you-go instances every hour and apply deductions to the bill for instance resources (vCPU, GPU, and memory) according to the compute capacity specified on the RI.​
The match conditions for regional RIs and zonal RIs differ. The following attributes determine whether a Reserved Instance (RI) can successfully match a Pay-as-you-go instance.​
​
Comparison criteria​
Zonal RI​
Regional RI​
Region and AZ​
Only pay-as-you-go instances within the same region and availability zone can be matched.​
Availability zone flexibility allows you to match Pay-as-you-go instances across different availability zones within the same region.​
Instance type​
Only Pay-as-you-go instances with the same specification and size as the Reserved Instances (RI) can be matched.​
Supports instance type flexibility, allowing flexible deduction for all instances in the same instance family as the Reserved Instances (RI).​
Resource reservation​
Supports resource reservation, allowing you to reserve a specified number and type of instances within the validity period to ensure that instances can be successfully created at any time in the designated availability zone.​
Does not support resource reservation.​
​
Matching example​
​
Zonal RI matching example
Regional RI matching example
​
tip​
According to the matching rules, the Zonal RI and Pay-as-you-go instances to be matched must meet the following conditions:​
  • The region and the availability zone are the same.​
  • The instance types are the same.​
Hourly matching examples of Zonal RIs and pay-as-you-go instances are shown in the following table.​
​
Scenarios​
Reserved Instances (RI)​
Pay-as-you-go instances​
Effect of deduction​
100% match​
One Reserved Instance (RI) voucher within its validity period, with the following attributes:​
  • China (Beijing) 2 availability zone A​
  • ecs.g2i.2xlarge​
  • Number of instances: 5​
Five pay-as-you-go instances with the following configuration:​
  • China (Beijing) 2 availability zone A​
  • ecs.g2i.2xlarge​
One Reserved Instance (RI) can be fully matched with five Pay-as-you-go instances, and each RI deducts 100% of the bill for five Pay-as-you-go instances per hour.​
Partial match and​
Resource reservation​
A Reserved Instance (RI) coupon within its validity period, with the following attributes:​
  • China (Beijing) 2 availability zone A​
  • ecs.g2i.2xlarge​
  • Number of instances: 5​
Configuration for three pay-as-you-go instances:​
  • China (Beijing) availability zone A​
  • ecs.g2i.2xlarge​
Reserved Instances (RI) were successfully applied as a deduction to the bills for three pay-as-you-go instances. In addition, two ecs.g2i.2xlarge instances will be reserved for you during the validity period of the coupon, ensuring that you can successfully create two Pay-as-you-go instances at any time in China (Beijing) availability zone A.​
Resource reservations​
A Reserved Instance (RI) that is within its validity period has the following attributes:​
  • China (Beijing) 2 availability zone A​
  • ecs.g2i.2xlarge​
  • Instance count: 5​
No pay-as-you-go instances of the same specification.​
The Reserved Instance coupon is idle, but during its validity period, five ecs.g2i.2xlarge instances will be reserved for you, ensuring that you can create five Pay-as-you-go instances at any time in Availability Zone A in China (Beijing).​
Match failed​
One Reserved Instance coupon within the validity period, with the following attributes:​
  • China (Beijing) 2 availability zone A​
  • ecs.g2i.2xlarge​
  • Number of instances: 2​
Two Pay-as-you-go instances.​
  • The configuration of the first instance is as follows:​
  • China (Beijing) 2 availability zone A​
  • ecs.g2i.xlarge​
  • The configuration of the second instance is as follows:​
  • China (Beijing) 2, Availability Zone B​
  • ecs.g2i.2xlarge​
2 pay-as-you-go instances failed to match for the following reasons:​
  • The specifications of the first instance do not match those of the Reserved Instances (RI).​
  • The availability zone of the second instance does not match that of the Reserved Instances (RI).​
Therefore, the Reserved Instances (RI) will remain unused, and the two pay-as-you-go instances will continue to be billed on a pay-as-you-go basis.​
​
​
​
​
Last updated: 2026.06.18 16:22:22