Bỏ qua tới nội dung
CloudDojo
SAA-C03 Lớp 3 · Compute Auto Scaling (ASG)

Amazon EC2 Auto Scaling: co giãn, chịu lỗi AZ và scale inAmazon EC2 Auto Scaling: scaling, AZ fault tolerance and scale in

Lượng truy cập của MFTECH biến động theo giờ, theo đợt khuyến mãi và theo độ dài hàng đợi đơn hàng. Bài học trình bày cơ chế tự động điều chỉnh số lượng instance: cấu hình nhóm (launch template, subnet, min/desired/max, On-Demand kết hợp Spot), lựa chọn scaling policy phù hợp với từng dạng tải, duy trì đủ capacity khi mất một AZ, thứ tự lựa chọn instance bị terminate khi scale in, bảo trì instance mà không bị Auto Scaling thay thế, và các điều kiện để ASG thay thế một instance lỗi.MFTECH's traffic varies by the hour, by sale event and by the length of the order queue. This lesson covers how the number of instances is adjusted automatically: configuring the group (launch template, subnets, min/desired/max, On-Demand combined with Spot), choosing a scaling policy that fits each load pattern, keeping enough capacity when an AZ is lost, the order in which instances are terminated on scale in, maintaining instances without Auto Scaling replacing them, and the conditions under which the ASG replaces a failed instance.

Tiến độ bài học 0 / 8
Cấu hình Auto Scaling groupAuto Scaling group configuration
Mức độ
Quan trọng Được sử dụng phổ biến trong nhiều mẫu kiến trúc
Kiến thức tiên quyết
EC2ELB
Thời lượng
~40 phút, 7 phần học có mô phỏng
Bối cảnh hệ thống

Ban đêm MFTECH chỉ cần 2 instance; tối thứ Sáu có chương trình khuyến mãi thì cần 12. Duy trì 12 instance cả ngày gây lãng phí chi phí, trong khi chỉ duy trì 2 instance làm tăng độ trễ cho người dùng. Auto Scaling group (ASG) tự động điều chỉnh số EC2 instance theo tải. Người thiết kế cần cấu hình: thời điểm scale out, capacity tối thiểu, và instance nào bị loại khi scale in.

Bối cảnh hệ thống

At night MFTECH needs only 2 instances; on Friday evening, during a sale, it needs 12. Running 12 instances all day wastes money, while running only 2 increases latency for users. An Auto Scaling group (ASG) automatically adjusts the number of EC2 instances to the load. The designer needs to configure when to scale out, the minimum capacity, and which instance is removed on scale in.

Các phần của bài học

Tiếp theo

Các bài tiếp theo trong lộ trình học

Bài học tiếp theo

Luyện tập

Tài liệu AWS

Xem thêm 25 tài liệu
Xem thêm 25 tài liệu