Skip to Content
Kafka权威指南
book

Kafka权威指南

by Neha Narkhede, Gwen Shapira, Todd Palino
January 2018
Beginner to intermediate
234 pages
7h 8m
Chinese
Posts & Telecom Press
Content preview from Kafka权威指南
监控
Kafka
173
在这些指标和属性中,哪些对于监控来说是比较重要的?我们至少要收集
Total Time
Requests Per Second
的平均值及较高的百分位(
99%
99.9%
),这样就可以获知发送请求
的整体性能。如果有可能,尽量为每一种请求类型收集其他
6
种时间度量指标,这样就可
以将性能问题细分到请求的各个阶段。
为时间度量指标设定告警阈值有一定的难度。例如,fetch 请求时间受各种因素的影响,
包括客户端等待消息的时间、主题的繁忙程度,以及客户端和
broker
之间的网络连接速
度。不过,对于 Produce 请求来说,可以为
Total Time
设定
99.9%
百分位度量基线值。
与非同步分区类似,Produce 请求的
99.9%
百分位数值快速增长说明出现了大规模的性
能问题。
10.2.3
 主题和分区的度量指标
broker
的度量指标描述了
broker
的一般行为,除此之外,还有很多主题实例和分区实例的
度量指标。在大型的集群里,这样的度量指标会有很多,一般情况下,不太可能将它们
全部收集到一个度量指标系统里。不过,我们可以用它们来调试与客户端相关的问题。例
如,主题的度量指标可以用于识别出造成集群流量大量增长的主题。我们需要提供这些度
量指标,这样
Kafka
的生产者和消费者就可以使用它们。不管是否会收集这些度量指标,
都有必要知道它们的用处。
10-12
中所列的度量指标将使用主题名称“
TOPICNAME
”,分区
ID
0
。在实际中,
要把主题名称和分区
ID
替换成自己的名称和
ID
1. ...
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

精通機器學習

精通機器學習

Aurélien Géron
精通特征工程

精通特征工程

Alice Zheng, Amanda Casari
高效能PYTHON程式設計

高效能PYTHON程式設計

Micha Gorelick, Ian Ozsvald

Publisher Resources

ISBN: 9787115473271