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
179
产者客户端等待的平均毫秒数。应用程序在使用生产者客户端发送消息(调用
send 方法)
之后,生产者会一直等待,直到以下任一情况发生。
生产者客户端有足够多的消息来填充批次(根据
max.partition.bytes 的配置)。
距离上一次发送批次已经有足够长的时间(根据 linger.ms 的配置)。
这两种情况都会促使生产者客户端关闭当前批次,然后把它发送给
broker
。对于繁忙的
主题来说,一般会发生第一种情况,而对于比较慢的主题来说,一般会发生第二种情况。
record-queue-time-avg 用于度量生产消息所使用的时间,因此,可以通过调优上述两个参
数来满足应用程序的延迟需求。
2. Per-broker
Per-topic
度量指标
除了生产者整体的度量指标外,还有一些
MBean
为每个
broker
连接和每个主题提供了有
限的属性集合。在调试问题时,这些度量会很有用,但不建议对它们进行常规的监控。这
MBean
属性的命名与整体度量指标的命名是一样的,所表示的含义也是一样的(只不
过它们是作用在特定的
broker
或特定的主题上)。
broker
实例的度量指标里,request-latency-avg 是比较有用的一个,因为它一般比较稳
定(在消息批次比较稳定的情况下),而且能够显示
broker
的连接问题。其他的属性,比
outgoing-byte-rate request-latency-avg,它们会因为
broker
所包含分区的不同而有
所不同。也就是说,这些度量会随着时间发生变化,完全取决于集群的状态。 ...
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