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
177
可以考虑使用两种日志。第一种是
kafka.controller,可以将它设置为 INFO 级别。这个日志
用于记录集群控制器的信息。在任何时候,集群里都只有一个控制器,因此只有一个
broker
会使用这个日志。日志里包含了主题的创建和修改操作、
broker
状态的变更,以及集群的活
动,比如默认的副本选举和分区的移动。另一个日志是 kafka.server.ClientQuotaManager
也可以将它设置为 INFO 级别。这个日志用于记录与生产和消费配额活动相关的信息。因为
这些信息很有用,所以最好不要把它们记录在
broker
的主日志文件里。
在调试问题时,还有一些日志也很有用,比如
kafka.request.logger,可以将它设置为
DEBUG TRACE 级别。这个日志包含了发送给
broker
的每一个请求的详细信息。如果日志
级别被设置为 DEBUG,那么它将包含连接端点、请求时间和概要信息。如果日志级别被设
置为 TRACE,那么它将包含主题和分区的信息,以及除消息体之外的所有与请求相关的信
息。不管被设置成什么级别,这个日志会产生大量的数据,所以如果不是出于调试的目
的,不建议启用这个日志。
日志压缩线程的运行状态也是一个有用的信息。不过,这些线程并没有单独的度量指标,
一个分区的压缩失败有可能造成压缩线程的整体崩溃,而且是悄然发生的。启用 kafka.
log.LogCleanerkafka.log.Cleaner kafka.log.LogCleanerManager ...
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