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容量规划之美
78
3
3-1
每日磁盘空间消耗抽样统计数据
3-1
中的数据来自一个
cron
作业,它运行一个脚本记录从标准
UNIX
df
命令
来针对我们存储设备的输出。该数据随后会被聚合并包含在度量指标仪表盘上(我
们也使用
Ganglia
来收集更小增量[按分钟]的数据,但是它对我们目前的示例不
实用)。当我们绘制来自表
3-1
的数据时,两个观察值就变得很清晰了,如图
3-5
所示。
3
-
5
:每日磁盘消耗表
79
测量
容量的单位
从图
3-5
中我们很快就看出,
7/31
8/07
这两个日期都是上传高峰期。事实上,
这些日期都是星期天。长期收集的数据显示,星期天一直是每周上传的高峰期。
在图
3-5
中可以看到另一个普遍的趋势,就是周五是一周中上传最少的日子。我们
将在下一章讨论趋势,但是现在,足以让你知道应该以一个合适的方案来收集数
据以阐明趋势。有些网站会展示基于小时级的变化(比如新闻或天气信息的访问);
另一些使用月份时间片(圣诞节前有高流量周期的零售网站)。
今天,你可以使用诸如
Amazon
Glacier, Google
Nearline
Coldline Storage,
Microsoft Azure
Cool Blob Storage
等商用存储来存储长期数据。在运营方面,
容量规划人员应该考虑长期数据的保留。存储使用率达到
99%
之后依然可以使用
几个月甚至一年以上的情况并不少见。除非发生超级碗、圣诞节之类的事件,否
则这可能是毫无根据的。正如本章前面所讨论的,设置保留策略是控制监控数据
存储成本的常用方法。
存储
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