Sử Dụng Biện Pháp Giảm Tải để Tránh Quá Tải - Amazon AWS
Có thể bạn quan tâm
By David Yanacek
Kindle
For a few years, I worked on the Service Frameworks team at Amazon. Our team wrote tools that helped the owners of AWS services such as Amazon Route 53 and Elastic Load Balancing build their services more quickly, and service clients call those services more easily. Other Amazon teams provided service owners with functionality such as metering, authentication, monitoring, client library generation, and documentation generation. Instead of each service team having to integrate those features into their services manually, the Service Frameworks team did that integration once and exposed the functionality to each service through configuration.
One challenge we faced was in determining how to provide sensible defaults, especially for features that were performance or availability related. For example, we couldn’t set a default client-side timeout easily, because our framework had no idea what the latency characteristics of an API call might be. This wouldn’t have been any easier for service owners or clients to figure out themselves, so we kept trying, and gained some useful insights along the way.
One common question we struggled with was determining the default number of connections the server would allow to be open to clients at the same time. This setting was designed to prevent a server from taking on too much work and becoming overloaded. More specifically, we wanted to configure the maximum connections settings for the server in proportion to the maximum connections for the load balancer. This was before the days of Elastic Load Balancing, so hardware load balancers were in widespread use.
We set out to help Amazon service owners and service clients figure out the ideal value for maximum connections to set on the load balancer, and the corresponding value to set in the frameworks we provided. We decided that if we could figure out how to use human judgment to make a choice, we could then write software to emulate that judgment.
Determining the ideal value ended up being very challenging. When maximum connections were set too low, the load balancer might cut off increases in the number of requests, even when the service had plenty of capacity. When maximum connections were set too high, servers would become slow and unresponsive. When maximum connections were set just right for a workload, the workload would shift or dependency performance would change. Then the values would be wrong again, resulting in unnecessary outages or overloads.
In the end, we found that the maximum connections concept was too imprecise to provide the complete answer to the puzzle. In this article, we’ll describe other approaches such as load shedding that we found worked well.
Từ khóa » Tốn Thời Gian Và Có Khả Năng Ra Quyết định Chậm Là Nhược điểm Của Quyết định
-
ƯU VÀ NHƯỢC ĐIỂM CỦA RA QUYẾT ĐỊNH NHÓM - Góc Học Tập
-
Kỹ Năng Ra Quyết Định - Các Phương Pháp Ra Quyết định
-
Ưu Và Nhược điểm Của Việc Ra Quyết định Theo Nhóm. Kỹ Thuật Ra ...
-
5 Yếu Tố Quan Trọng Khi đưa Ra Quyết định Trong Công Việc
-
[PDF] KỸ NĂNG GIẢI QUYẾT VẤN ĐỀ VÀ RA QUYẾT ĐỊNH
-
[PDF] Phần III KỸ NĂNG Chuyên đề 10 QUẢN LÝ THỜI GIAN “Chúng Ta ...
-
Cách Rèn Luyện Kỹ Năng Ra Quyết định đúng đắn Và Hiệu Quả
-
[DOC] 3. Kỹ Năng Tìm Mâu Thuẫn, Xung đột Lợi ích Cốt Lõi, Nguyên Nhân Chủ ...
-
Ưu Nhược điểm Các Phương Pháp Nghiên Cứu Thị Trường
-
[PDF] Phương Pháp Nghiên Cứu Khoa Học Cơ Bản Dành Cho Bác Sĩ Lâm Sàng
-
TRÍ NHỚ VÀ CHÚ Ý - Health Việt Nam
-
[PDF] Dịch Tễ Học Cơ Bản - WHO | World Health Organization
-
Đáp án Cho 8 Câu Hỏi Phỏng Vấn Kinh điển Bằng Tiếng Anh
-
[PDF] KỸ THUẬT XỬ LÝ VÀ BẢO QUẢN SAU THU HOẠCH MÔ NHỎ