Skip to Content
Web容量规划之美
book

Web容量规划之美

by Arun Kejariwal, John Allspaw
August 2019
Beginner to intermediate
232 pages
3h 50m
Chinese
China Electric Power Press Ltd.
Content preview from Web容量规划之美
188
6
百花齐放
生产节点的
CPU
利用率没有任何流量的增加的情况是存在的,这种情况通常是由
于各种偶然事件而引起的。为了解决这类问题,我们制定附加扩容策略(即除了
基于
RPS
放大政策)有助于减少对最终用户的影响,如图
6-8
所示。
6
-
8
:检查“崩溃”的附加策略
2015
7
月,
AWS
引入了新扩缩策略的步骤。例如你可以为不同级别的平均
CPU
利用率指定不同的响应,像小于
50%
、大于等于
50%
小于
60%
、大于
60%
小于等于
80%
,以及大于等于
80%
。更进一步,如果你为同一资源创建了多个步
骤扩缩策略(可能基于
CPU
利用率和涌入的网络流量),并且它们都在同一时间
触发,自动缩放会观察策略并在其中选择最高幅度的变化的策略来执行。
注意
进一步的信息可以到下面网页查看
https://aws.amazon.com/blogs/aws/
auto-scalingupdate-new-scaling-policies-for-more-responsive-scaling/
在某些场景下,你可能想从
ASG
崩溃场景中保护特定的实例。例如,它可能是处
理长时间运行任务或工作的实例,也许是从一个
SQS
队列中提取出来的。保护实
例不异常终止可以避免无效工作。同样地,实例可能在
ASG
组内具有特殊的用途
,
例如,它可能是
Hadoop
集群的主节点,或者一个标记整组实例是否处于运行状态
的心跳节点。为此,你可以使用
AWS
提供的实例保护功能。在大多数情况下,在
ASG
的至少一个实例应该不受保护。如果所有实例都受到保护,则不会采取任何 ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.

Read now

Unlock full access

More than 5,000 organizations count on O’Reilly

AirBnbBlueOriginElectronic ArtsHomeDepotNasdaqRakutenTata Consultancy Services

QuotationMarkO’Reilly covers everything we've got, with content to help us build a world-class technology community, upgrade the capabilities and competencies of our teams, and improve overall team performance as well as their engagement.
Julian F.
Head of Cybersecurity
QuotationMarkI wanted to learn C and C++, but it didn't click for me until I picked up an O'Reilly book. When I went on the O’Reilly platform, I was astonished to find all the books there, plus live events and sandboxes so you could play around with the technology.
Addison B.
Field Engineer
QuotationMarkI’ve been on the O’Reilly platform for more than eight years. I use a couple of learning platforms, but I'm on O'Reilly more than anybody else. When you're there, you start learning. I'm never disappointed.
Amir M.
Data Platform Tech Lead
QuotationMarkI'm always learning. So when I got on to O'Reilly, I was like a kid in a candy store. There are playlists. There are answers. There's on-demand training. It's worth its weight in gold, in terms of what it allows me to do.
Mark W.
Embedded Software Engineer

You might also like

GPT-3

GPT-3

Sandra Kublik, Shubham Saboo

Publisher Resources

ISBN: 9787519831073