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

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

by Mike Julian
November 2020
Intermediate to advanced
142 pages
3h 12m
Chinese
Posts & Telecom Press
Content preview from 监控运维实践:原则与策略
服务器监控
|
85
过多的项目被逐出以便为新项目腾出空间。
当应用程序从缓存中请求某些项目并且该项目被找到时,这称作
缓存命中
。类似地,如果
项目被请求了,但是没有在缓存中找到,就称作
缓存未命中
。鉴于缓存的用途是加速常见
的请求,所以缓存未命中会拖慢应用程序。因此,命中
/
未命中比例是监控缓存性能的极
好指标。理想情况下,你想要达到
100%
命中,但这对于现代应用程序通常是不切实际的。
随着时间的推移,你会开始理解对于应用程序来说,正常的命中率是多少。
这些指标联系紧密并相互协作,是一个平衡之举。
8.9
 
DNS
除非运行着自己的
DNS
服务器,否则实在没有可以监控的内容。如果你真的运行着自己
的
DNS
服务器,那就是另外一回事了。
如果运行着自己的
DNS
,有两件事需要关注:
区域传输数
和
每秒查询数
。
不用深入研究
DNS
的内部工作原理,只要知道从节点通过区域传输和主节点保持同步。
根据配置的不同,传输可以是全区域传输(
AXFR
)或增量传输(
IXFR
)。这些都会被记
录在日志中,你需要关注它们以便发现同步问题。一个不同步的从节点可能会提供陈旧的
信息,这会带来奇怪的故障排除问题。
监控每秒查询数有助于你理解服务器所面临的负载情况,这个指标是
DNS
服务器的主要
衡量标准。你需要按服务器记录它,但是按区域和按视图记录,粒度会更细。
如果你正在运行
BIND
,那么检查
statistics-channel
配置项:启用它将在一处展示所有这
些指标。很多工具会利用这个配置,例如
collectd
的
BIND
插件。
8.10
 
NTP
我排查过的一些最怪异的问题归结为糟糕的时间同步 ...
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