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容量规划之美
63
测量
容量的单位
容量跟踪工具
本章讨论在预先设定好的一段时间内自动地、例行地测量服务器性能。通过检测
几天、几周和几个月的正常性能,你能够同时看到经常重复发生的模式和随时间
推移的发展趋势,这有助于预测何时需要增加容量。前者以星期五晚上和周末的
系统负载增加为例,后者则以较长时间的系统负载的自然增长为例(例如,三至
六个月)。你必须小心地使用更长时间的数据,因为在某些情况下,数据的新旧
程度是影响决策的关键。
我们也要讨论通过人工扩展(也称为负载测试)故意增加负载的方法,这些方法
可以很好地模拟正在测试的网站未来将发生的事。你可以使用诸如
Loadrunner
Iago
JMeter
等工具用于负载测试。这也将帮助你预测何时进行扩容。
关于本章的一些任务,随着时间的推移,你需要收集、保存和显示(通常是用图形)
度量指标的工具。它们可以用来驱动容量预测及容量变化的原因分析。
一些工具示例包括:
Cacti
https://cacti.net/
)。
Ganglia
http://ganglia.info/
)。
Graphite
http://graphiteapp.org/
)。
工具(如
Grafana
)通常用于时间维度运营指标的查询和可视化,这些工具不需要
太炫。事实上有些度量指标可以简单地加载到
Excel
中并绘制图表。附录
C
包含
容量规划工具更全面的列表。类似情况下,一些商业基础设施监测服务也达到了
这个目的。
Datadog
https://www.datadoghq.com/
)。
SysDig
https://sysdig.com/
)。
Ruxit
https://www.dynatrace.com/platform/offerings/dynatrace/
)。
LogicMonitor ...
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