Savings Plans & Reserved Instances
One decision, made once and lived with for one or three years: how much flexibility do I sell back in exchange for a bigger discount? Everything else on this page is bookkeeping. The compute side of launch types lives in EC2 — this is the money side.
Chỉ một quyết định, chọn một lần rồi sống với nó suốt một hoặc ba năm: mình bán lại bao nhiêu tính linh hoạt để đổi lấy chiết khấu lớn hơn? Mọi thứ còn lại trên trang này chỉ là sổ sách. Phần compute của các launch type nằm ở EC2 — đây là phần tiền bạc.
Reach for it / not the right toolKhi nào dùng / khi nào không
CommitNên cam kết
- A steady 24/7 baseline you are confident will still be there in a year — that floor is free money left on the table every hour it runs on-demand.Có mức nền chạy 24/7 mà bạn chắc chắn năm sau vẫn còn — mỗi giờ phần nền đó chạy giá on-demand là tiền vứt đi.
- Predictable Fargate or Lambda spend — only a Compute Savings Plan can discount those; RIs cannot touch them.Chi phí Fargate hoặc Lambda ổn định — chỉ Compute Savings Plan mới chiết khấu được; RI hoàn toàn không chạm tới.
- You are genuinely pinned to one family in one region (licensing, tuned workload) → take the extra points with an EC2 Instance Savings Plan.Bạn thực sự bị neo vào một family trong một region (license, workload đã tinh chỉnh) → lấy thêm phần trăm bằng EC2 Instance Savings Plan.
- Steady RDS, ElastiCache, Redshift, OpenSearch — Reserved Instances / Reserved Nodes are the only commitment lever there.RDS, ElastiCache, Redshift, OpenSearch chạy ổn định — Reserved Instances / Reserved Nodes là cần gạt cam kết duy nhất ở đó.
Don't commitĐừng cam kết
- Spiky or seasonal workloads. Commit to the trough, never the peak — an unused commitment is billed anyway.Workload lên xuống thất thường hoặc theo mùa. Cam kết ở đáy, đừng bao giờ ở đỉnh — cam kết không dùng vẫn bị tính tiền.
- Interruptible batch → Spot is cheaper than any commitment and asks nothing of you. See AWS Batch.Batch chấp nhận bị ngắt → Spot rẻ hơn mọi cam kết và không đòi hỏi gì. Xem AWS Batch.
- You haven't right-sized yet. Run Compute Optimizer first — committing to oversized instances locks the waste in for the whole term.Bạn chưa right-size. Chạy Compute Optimizer trước — cam kết trên instance thừa là khoá luôn phần lãng phí suốt kỳ hạn.
- A re-platform is coming (containerising, going serverless, moving region) → Compute Savings Plan at most, never a Standard RI or an EC2 Instance plan.Sắp đổi nền tảng (chuyển sang container, serverless, đổi region) → nhiều nhất là Compute Savings Plan, tuyệt đối không Standard RI hay EC2 Instance plan.
- You actually wanted guaranteed capacity in an AZ — that's a zonal RI or an On-Demand Capacity Reservation. Savings Plans give you none.Cái bạn thật sự cần là đảm bảo capacity trong một AZ — đó là zonal RI hoặc On-Demand Capacity Reservation. Savings Plans không cho gì cả.
The one axis: flexibility ↔ discountChỉ một trục: linh hoạt ↔ chiết khấu
Every option is the same trade priced differently. Decide what you are willing to be locked into — family? region? compute type? — and the product picks itself. The launch-type mechanics (On-Demand, Spot, Dedicated) are in EC2; here only the commitment matters. Mọi lựa chọn đều là cùng một cuộc đánh đổi, chỉ khác giá. Hãy quyết định bạn chịu bị khoá vào cái gì — family? region? loại compute? — rồi sản phẩm tự lộ ra. Cơ chế launch type (On-Demand, Spot, Dedicated) nằm ở EC2; ở đây chỉ có cam kết là quan trọng.
Standard RI and the EC2 Instance plan sit at the same discount, but the plan is strictly easier to live with — no instance-type bookkeeping, and OS and tenancy stop mattering. That is why Savings Plans have largely replaced RIs for compute.
Standard RI và EC2 Instance plan có cùng mức chiết khấu, nhưng plan dễ sống chung hơn hẳn — không phải theo dõi instance type, và OS lẫn tenancy không còn quan trọng. Đó là lý do Savings Plans gần như đã thay thế RI cho phần compute.
| Standard RIStandard RI | Convertible RIConvertible RI | EC2 Instance SPEC2 Instance SP | Compute SPCompute SP | |
|---|---|---|---|---|
| Discount ceilingTrần chiết khấu | ~72%~72% | ~66%~66% | ~72%~72% | ~66%~66% |
| What you commit toCam kết cái gì | a specific instance configmột cấu hình instance cụ thể | a specific config, swappablemột cấu hình cụ thể, đổi được | $/hour + family & region$/giờ + family & region | $/hour, nothing else$/giờ, không gì khác |
| Stays flexible onCòn linh hoạt về | size (Linux, default tenancy, regional scope) · AZsize (Linux, tenancy mặc định, phạm vi regional) · AZ | family, OS, tenancy, term — via exchangefamily, OS, tenancy, kỳ hạn — qua exchange | size, OS, tenancysize, OS, tenancy | family, size, region, OS, tenancy, compute typefamily, size, region, OS, tenancy, loại compute |
| CoversBao phủ | EC2 (and RDS, ElastiCache, Redshift, OpenSearch as their own RIs)EC2 (và RDS, ElastiCache, Redshift, OpenSearch dưới dạng RI riêng) | EC2 onlychỉ EC2 | EC2 onlychỉ EC2 | EC2 · Fargate · LambdaEC2 · Fargate · Lambda |
| Way outĐường thoát | sell on the RI Marketplacebán trên RI Marketplace | exchange — never cancel, never sellđổi — không huỷ, không bán được | none — ride out the termkhông có — chịu hết kỳ hạn | none — ride out the termkhông có — chịu hết kỳ hạn |
What the commitment does to the billCam kết ảnh hưởng hoá đơn thế nào
Picture a flat band across your usage graph. Under the band you pay the plan rate; the part sticking out above it pays on-demand. You pay the band whether or not you fill it — which is why you size it to the trough, not the average. Hình dung một dải ngang cắt qua đồ thị usage. Phần dưới dải trả theo giá plan; phần nhô lên trên trả giá on-demand. Bạn trả tiền cho dải đó dù có lấp đầy hay không — nên phải chọn theo đáy, không phải theo trung bình.
If usage ever falls below the band you still owe the full hourly commitment — an under-used plan is worse than no plan. Over-commitment is the one failure mode with no way out.
Nếu usage tụt xuống dưới dải, bạn vẫn nợ trọn mức cam kết theo giờ — một plan dùng không hết còn tệ hơn không mua. Cam kết quá tay là kiểu hỏng duy nhất không có đường lui.
Term and paymentKỳ hạn và cách trả
What Reserved Instances still ownPhần Reserved Instances vẫn giữ
Savings Plans replaced RIs for compute, not everywhere. Three things still send you back to reservations: non-compute services, capacity guarantees, and getting your money back. Savings Plans thay RI ở phần compute, nhưng không phải mọi nơi. Ba thứ vẫn buộc bạn quay lại reservation: service ngoài compute, đảm bảo capacity, và lấy lại tiền.
Across an OrganizationTrong một Organization
Under consolidated billing, a commitment bought in one account discounts matching usage in every account. That's the default, and it's usually what you want — a plan is never stranded because the team that bought it scaled down. Với consolidated billing, cam kết mua ở một account sẽ chiết khấu cho usage khớp ở mọi account. Đó là mặc định, và thường là điều bạn muốn — plan không bao giờ bị bỏ phí chỉ vì đội mua nó thu nhỏ quy mô.
| Sharing on (default)Bật chia sẻ (mặc định) | Sharing off for an accountTắt chia sẻ cho một account | |
|---|---|---|
| Who gets the discountAi được chiết khấu | any matching usage anywhere in the orgmọi usage khớp ở bất kỳ đâu trong org | that account is fenced off — its usage neither gives nor takesaccount đó bị tách ra — usage của nó không cho cũng không nhận |
| Good forHợp với | maximising utilisation of what you boughttận dụng tối đa thứ đã mua | chargeback fairness — a team pays for and keeps its own commitmentcông bằng khi chargeback — đội nào trả tiền thì đội đó giữ cam kết |
| Who sets itAi đặt | nobody — it just iskhông ai — mặc định vốn thế | the management account only, in Billing preferences, per accountchỉ management account, trong Billing preferences, theo từng account |
On-Demand Capacity Reservations — holding a seatOn-Demand Capacity Reservation — giữ chỗ
Every option on this page holds a price. An ODCR holds a seat — a guaranteed slot for N × instance-type in one specific AZ. It is the only one of these with no long-term commitment, and the only one you can cancel this afternoon.
Mọi lựa chọn trên trang này giữ giá. ODCR giữ chỗ — một slot đảm bảo cho N × loại instance trong một AZ cụ thể. Nó là cái duy nhất ở đây không cam kết dài hạn, và là cái duy nhất bạn huỷ được ngay chiều nay.
t4g.small and run one, and you pay for two. Stop the instance without cancelling the reservation and you keep paying. Cancelling the reservation is what stops the meter.
ODCR không có phí đặt chỗ riêng và không có giảm giá. Bạn trả đúng giá On-Demand thường cho slot đã giữ — dù có instance ngồi trong đó hay không. Đặt hai t4g.small mà chạy một, bạn vẫn trả tiền hai. Stop instance mà không huỷ reservation thì vẫn trả tiền. Huỷ reservation mới là thứ dừng đồng hồ.
t4g.small · Linux · ap-southeast-1 ≈ $0.0212/h ≈ $15.48/tháng
reserve 1 slot, chạy 1 EC2 trong slot → ~$0.0212/h (không phụ phí ODCR)
reserve 1 slot, không chạy gì → ~$0.0212/h (vẫn trả như đang chạy)
reserve 1 slot bỏ trống + chạy 1 EC2 khác → ~$0.0424/h (trả hai lần)
có thể ghép: Savings Plan (giữ giá) + ODCR (giữ chỗ) trên cùng capacity
- On-Demand instances are never reclaimed by AWS to free capacity — that's the whole difference from Spot. But nothing guarantees you can launch a new one: an ASG replacing a failed instance can hit
InsufficientInstanceCapacity. An ODCR is what removes that risk.Instance On-Demand không bao giờ bị AWS thu hồi để lấy lại capacity — đó là toàn bộ khác biệt với Spot. Nhưng không gì đảm bảo bạn launch được máy mới: ASG thay một instance hỏng có thể gặpInsufficientInstanceCapacity. ODCR là thứ xoá rủi ro đó. - So an ODCR isn't really protecting the instance that's running — it's protecting your ability to launch or restart one when something breaks.Vậy ODCR không thật sự bảo vệ instance đang chạy — nó bảo vệ khả năng launch hoặc khởi động lại khi có sự cố.
- An ODCR is zonal. Spreading critical capacity means one reservation per AZ; concentrating it all in one AZ defeats the purpose.ODCR là zonal. Rải capacity quan trọng nghĩa là mỗi AZ một reservation; dồn hết vào một AZ là hỏng mục đích.
- Capacity Blocks are the scheduled-window cousin, mainly for GPU/ML: you book specific hardware for a fixed future time range.Capacity Block là người anh em theo lịch, chủ yếu cho GPU/ML: bạn đặt phần cứng cụ thể cho một khoảng thời gian cố định trong tương lai.
Things that catch you outNhững chỗ dễ vấp
- Right-size before you commit. A 3-year plan on instances that are half idle locks the waste in for three years. Compute Optimizer first, Cost Explorer Savings Plans recommendations second, purchase third — in that order, never the reverse. Right-size trước khi cam kết. Plan 3 năm trên đám instance chạy nửa công suất là khoá lãng phí suốt ba năm. Compute Optimizer trước, gợi ý Savings Plans của Cost Explorer sau, rồi mới mua — đúng thứ tự đó, đừng ngược lại.
- A Savings Plan cannot be cancelled, returned or sold. Convertible RIs can only be exchanged (never cancelled); only Standard RIs have a resale route. Treat every purchase as final. Savings Plan không huỷ, không trả, không bán được. Convertible RI chỉ có thể đổi (không huỷ được); chỉ Standard RI mới có đường bán lại. Coi mọi lần mua là chốt luôn.
- An EC2 Instance Savings Plan is welded to its family and region. Buying one the quarter before a region migration or a Graviton move is a very expensive mistake — that case wants a Compute plan. EC2 Instance Savings Plan bị hàn chặt vào family và region đã chọn. Mua nó ngay trước quý chuyển region hay chuyển sang Graviton là sai lầm rất đắt — trường hợp đó phải dùng Compute plan.
- Regional RI ≠ reserved capacity. Only a zonal RI or an On-Demand Capacity Reservation actually holds hardware for you. If a question mixes "guaranteed capacity" with "lower cost", they are two separate answers. RI regional ≠ giữ chỗ capacity. Chỉ RI phạm vi zonal hoặc On-Demand Capacity Reservation mới thật sự giữ phần cứng cho bạn. Nếu đề trộn "đảm bảo capacity" với "giảm chi phí", đó là hai đáp án tách biệt.
- Coverage and utilisation are two different metrics. High utilisation with low coverage means you under-bought; low utilisation means you over-bought. Track both in Cost Explorer and alert on them with the reservation and savings-plans budget types in Budgets. Coverage và utilisation là hai chỉ số khác nhau. Utilisation cao mà coverage thấp nghĩa là mua thiếu; utilisation thấp nghĩa là mua thừa. Theo dõi cả hai trong Cost Explorer và đặt cảnh báo bằng loại budget cho reservation và savings plans trong Budgets.
- Commitments cover compute, not the extras. EBS volumes, data transfer, Elastic IPs and licensing are untouched — the bill never falls by the headline percentage. Cam kết chỉ bao phủ compute, không bao phủ phần phụ. EBS volume, data transfer, Elastic IP và license vẫn nguyên giá — hoá đơn không bao giờ giảm đúng bằng con số phần trăm quảng cáo.
Exam reflexesPhản xạ khi thi
| The question says…Đề nói… | AnswerTrả lời |
|---|---|
| "Steady spend, but they may change instance families or move to Fargate / Lambda""Chi tiêu ổn định, nhưng có thể đổi instance family hoặc chuyển sang Fargate / Lambda" | Compute Savings Plan — the only one flexible across compute typeCompute Savings Plan — cái duy nhất linh hoạt qua loại compute |
| "Certain of the family and region for 3 years, want the maximum discount""Chắc chắn về family và region trong 3 năm, muốn chiết khấu tối đa" | EC2 Instance Savings Plan (or Standard RI) — ~72%, All UpfrontEC2 Instance Savings Plan (hoặc Standard RI) — ~72%, All Upfront |
| "One account's reservations must not benefit other accounts""Reservation của một account không được lợi cho account khác" | The management account turns off RI / Savings Plans discount sharing for that accountManagement account tắt chia sẻ chiết khấu RI / Savings Plans cho account đó |
| "Reservations must renew with no gap and no manual step""Reservation phải gia hạn liền mạch, không thao tác tay" | Queue an RI purchase dated for the current one's expiryQueue một lệnh mua RI vào đúng ngày cái hiện tại hết hạn |
| "Cut steady RDS / ElastiCache / Redshift / OpenSearch cost""Giảm chi phí RDS / ElastiCache / Redshift / OpenSearch chạy ổn định" | Reserved Instances / Reserved Nodes — Savings Plans don't cover themReserved Instances / Reserved Nodes — Savings Plans không bao phủ |
| "Recommend the right commitment, and warn us if utilisation drops""Gợi ý mức cam kết hợp lý, và cảnh báo khi utilisation tụt" | Cost Explorer recommendations + a savings-plans Budget; right-size with Compute Optimizer firstGợi ý của Cost Explorer + một Budget loại savings plans; right-size bằng Compute Optimizer trước |