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版)
274
13
这两种情况都会促使生产者客户端关闭当前批次,并把它发送给
broker
。对于较为繁忙的
主题,一般会发生第一种情况;对于吞吐量较低的主题,一般会发生第二种情况。
record-
queue-time-avg
指标会告诉我们发送消息用了多长时间,因此,如果希望通过配置上面的
两个参数来降低应用程序延迟,那么这个指标会很有用。
2.
个体
broker
指标和个体主题指标
除了生产者整体指标,还有一些
MBean
每个
broker
连接和每个主题提供了一系列属性。
这些指标在调试问题时很有用,但在平常不需要对它们进行常规的监控。这些
MBean
性的名字与整体指标的名字一样,表示的含义也一样(只是它们是应用在个体
broker
体主题上)。
request-latency-avg
是最为有用的个体
broker
指标,因为它比较稳定(在消息批次比较
稳定的情况下),而且能够显示与某个
broker
之间的连接是否有问题
。其他属性,比如
outgoing-byte-rate
request-latency-avg
,它们会因为
broker
所包含分区的不同而有所
不同。也就是说,这些指标会随时间发生变化,完全取决于集群的状态。
个体主题指标比个体
broker
指标要有趣一些
,但它们只有在生产者向多个主题生成消息时
才有用。当然,也只有在生产者不会向过多主题生成消息的情况下才有必要对这些指标进
行常规的监控。例如,
MirrorMaker
可能向成百上千个主题生成消息。我们无法逐个检
查这些指标,也几乎不可能为它们设置合理的告警阈值。与个体 ...
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