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

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

by Mike Julian
November 2020
Intermediate to advanced
142 pages
3h 12m
Chinese
Posts & Telecom Press
Content preview from 监控运维实践:原则与策略
84
|
第
8
章
关于数据库性能监控和调优的内容可以写一本书了。事实上已经有人写了!我强烈推荐阅
读
Baron Schwartz
的《高性能
MySQL
》,以及
Laine Campbell
和
Charity Major
合著的《数
据库可靠性工程》
2
。如果你对充分利用数据库基础设施和实现可伸缩性感兴趣,那么一定要
阅读这两本书。
8.6
 负载均衡器
负载均衡器最常用于
HTTP
流量。尽管它们也可以用于其他类型的流量,但这里只讨论
HTTP
。
负载均衡器指标非常类似于
Web
服务器指标,因为跟踪的是相同的东西。负载均衡器通过
将自己作为单个节点呈现给客户端来发挥作用。在后端可能有任意数量的服务器,远程客
户端永远不会与它们直接交互。因此,负载均衡器指标被复制到两个组中:
前端
和
后端
。
这是相同的一组指标,但是它们会告诉你关于负载均衡器本身和后端服务器的健康状况的
不同信息。前端和后端,你都要注意。
值得一提的是,负载均衡器通过健康检查来确定后端服务器的状态。最简单的健康检查是
到特定端口的简单连接(比如检查端口
80
是否响应),但是许多负载均衡器也支持
HTTP
健康检查,这使得第
7
章中的
/health
端点模式在负载均衡器的健康检查中非常有用。
8.7
 消息队列
消息队列由两个“发言者”组成:一个
发布者
和一个
订阅者
(因为这一点,消息队列有时
也称为发布—订阅系统
)
。监控一个队列主要涉及两件事:
队列长度
和
消费率
。
队列长度
是指在一个队列上等待被一个或多个订阅者取出的消息的数量。正常的队列长度
取决于应用程序的工作方式,因此应该注意那些比正常情况下备份了更多消息的队列。 ...
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