Skip to Content
Kafka权威指南(第2版)
book

Kafka权威指南(第2版)

by Gwen Shapira, Todd Palino, Rajini Sivaram, Krit Petty
November 2022
Beginner to intermediate
346 pages
11h
Chinese
Posts & Telecom Press
Content preview from Kafka权威指南(第2版)
268
13
什么是百分位
百分位是一种常见的时间度量方式。
99
百分位表示整组样本(这里指请求时
间)中有
99%
的值小于指标,那么就有
1%
的值大于指标。一般情况下,需
要查看平均值和
99%
99.9%
的值,这样就可以知道平均请求处理情况和
异常值。
在这些指标和属性中,哪些对监控来说是比较重要的?对于每一种请求类型,至少需要收
集总时间指标的平均值和较高的百分位(
99%
99.9%
,以及每秒请求次数,这样就可
以知道
broker
处理请求的整体性
能。如果有可能,那么也尽量收集每种请求类型的其他
6
种时间指标,这样就可以将性能问题细分到请求的各个阶段。
为这些时间指标设定告警阈值有一定的难度。例如,
Fetch
请求时间会受到各种因素的影
响,包括客户端等待消息的时间、主题的繁忙程度,以及客户端和
broker
之间的网络连接
速度。一般来说,可以为总时间指标设定
99.9
分位基线并设置告警,对
Produce
请求类
型来说更是如此。与非同步分区类似,
Produce
请求的
99.9
百分位快速增长说明集群出现
了大范围的性能问题。
13.3.4
 主题的指标和分区的指标
除了用于描述
broker
一般行为的指标,还有很多主题级别的指标和分区级别的指标。在较
大的集群中,这样的指标很多,一般来说不太可能将它们全部收集到一个指标系统中,但
在调试与客户端相关的问题时,它们会很有用。例如,主题指标可用于识别造成集群流量
大量增长的主题。我们需要提供这些指标,并将它们提供给
Kafka
生产者和消费者
。不管
你是否能够定期收集这些指标,都有必要知道它们的用处。 ...
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

时间序列分析实战:基于机器学习和统计学

时间序列分析实战:基于机器学习和统计学

Aileen Nielsen
Spark机器学习实战

Spark机器学习实战

Posts & Telecom Press, Siamak Amirghodsi, Meenakshi Rajendran, Broderick Hall, Shuen Mei
写给系统管理员的Python脚本编程指南

写给系统管理员的Python脚本编程指南

Posts & Telecom Press, Ganesh Sanjiv Naik
Kubernetes编程

Kubernetes编程

Michael Hausenblas, Stefan Schimanski

Publisher Resources

ISBN: 9787115601421