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容量规划之美
127
趋势预测
4
-
9
:繁忙的 Apache 进程,周视图
这是取自拥有
15
Web
服务器时期的
Flickr
的历史数据。我们假设数据是今天取
得的,且不知道未来的变化。我们可以假设第
3
章中的结论是正确的,
CPU
使用
率与繁忙的
Apache
进程的数量之间只是简单的倍数关系:
1.1
。如果由于某种原
因这个假设发生了变化,我们会马上知道,因为每分钟都在跟踪这些度量指标。
如图
4-9
所示,在高峰期大约有
900
个繁忙的
Apache
并发进程在运行,通过
15
Web
服务器来进行负载均衡。这样大概每台
Web
服务器承载
60
个进程。因此,
每个
Web
服务器大约使用总
CPU
66%
(我们可以查看
CPU
图形确认此假设)。
我们最感兴趣的是该示例数据的峰值,图
4-10
包含的数据跨越了一个较长的时间
轴,因此我们可以看到一些周期特征在这段时间重复发生。
4
-
10
:横跨六周的每周 Web 服务器峰值
128
4
这些周峰值就是我们想要跟踪并用于预测未来的需求。事实证明,对于
Flickr
来说,
这些周峰值总是在周一时发生回落。如果我们孤立这些峰值,如我们在磁盘存储
示例中做的一样,把它延伸成一条
眼需要未来的趋势线,我们会看到类似图
4-11
的结果。
4
-
11
Web 服务器峰值趋势
如果我们的流量继续以目前的速度持续增长,该图预测出在接下来的 ...
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