Skip to Content
监控运维实践:原则与策略
book

监控运维实践:原则与策略

by Mike Julian
November 2020
Intermediate to advanced
142 pages
3h 12m
Chinese
Posts & Telecom Press
Content preview from 监控运维实践:原则与策略
10
|
第
1
章
你在盲目行事。收集指标的频率
至少
应是每
60
秒一次。如果系统的流量高,就应该选择
更高的频率,例如每
30
秒甚至每
10
秒收集一次。
有些人认为频繁地收集指标会给系统带来过多的负载,我认为这全无道理。现代服务器和
网络设备拥有非常高的性能,能够轻松处理更多的监控所带来的微小负载。
当然,将收集的细粒度指标长期保存在磁盘上的成本会很高。你可能不需要将以
10
秒为
间隔收集的
CPU
指标数据存储一年。确保为指标数据设置一个合理的滚动周期。
2
需要注意的一点是,很多老旧网络设备在管理卡上的性能很差,这导致它们在遇到大量监
控数据请求时就会停止运行(说的就是你,
Cisco
)。因此,在增加轮询间隔之前,确保在
实验室中测试这些设备。
1.4
 反模式
4
:
把监控当作拐杖
在我曾经任职过的一个团队中,运行着一个遗留的
PHP
应用程序。这个应用程序有一大
堆写得糟糕又难以理解的代码。当程序总是出故障时,团队通常的反应就是添加更多的监
控,而不管故障是什么。不幸的是,虽然这个响应乍一看似乎是正确的,但几乎对解决真
正的问题没有任何帮助。这是一个糟糕的程序。
避免把监控当作拐杖。虽然监视对于提醒你注意问题非常有用,但是别忘了重要的是解决
问题。如果发现自己面对的是一个问题层出的服务,而你总是往服务中添加更多的监控,
那么你应该停下来,把精力用于提升服务的稳定性和弹性。更多的监控无法修复有故障的
系统,也不会改善现有情形。
1.5
 反模式
5
:
手动配置
我确信大家都认为自动化很棒。这也是为什么手动配置监控总是令我感到吃惊。“你可以
把这个添加到监控中么?”这是我最不想听到的问题。 ...
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

Java数据科学实战

Java数据科学实战

Michael R. Brzustowicz, PhD
可编程网络自动化

可编程网络自动化

Jason Edelman, Scott S. Lowe, Matt Oswalt
精通模块化JavaScript

精通模块化JavaScript

Nicolás Bevacqua

Publisher Resources

ISBN: 9787115550750