[英]Same configuration in Kafka Producer, Broker and Topic
I see few configurations which are a part of configuration list of brokers, producers as well as topics like: compression.type
我看到很少的配置是经纪人、生产者配置列表的一部分,以及诸如以下主题的配置:
compression.type
How does all 3 configs work together?所有 3 个配置如何协同工作? Like, if we I have
compression.type
in producer config as None, and compression.type
in broker config as gzip.比如,如果我们在生产者配置中将
compression.type
设置为 None,将代理配置中的compression.type
设置为 gzip。 How does it work?它是如何工作的?
There are similarly other configs too, like min.insync.replicas.
也有类似的其他配置,比如
min.insync.replicas.
My understanding is, it should be a Topic configuration (which it is), but it is also a broker configuration.我的理解是,它应该是一个主题配置(它是),但它也是一个代理配置。 Is it something like - a broker has say
min.insync.isr
as 4, so all the topics created on that broker will have min.insync.isr
as 4?是不是有点像 - 代理将
min.insync.isr
为 4,因此在该代理上创建的所有主题都将min.insync.isr
为 4?
The broker configs are defaults.代理配置是默认配置。 Everything else is an explicit override.
其他一切都是明确的覆盖。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.