kafka server常用核心配置

 2023-09-11 阅读 14 评论 0

摘要:#机架信息 broker.rack=rack-75 #开启安全认证相关 listeners=SASL_PLAINTEXT://xxx:9092 security.inter.broker.protocol=SASL_PLAINTEXT sasl.mechanism.inter.broker.protocol=SCRAM-SHA-256 sasl.enabled.mechanisms=SCRAM-SHA-256 allow.everyone.i
#机架信息
broker.rack=rack-75
#开启安全认证相关
listeners=SASL_PLAINTEXT://xxx:9092
security.inter.broker.protocol=SASL_PLAINTEXT
sasl.mechanism.inter.broker.protocol=SCRAM-SHA-256
sasl.enabled.mechanisms=SCRAM-SHA-256
allow.everyone.if.no.acl.found=false
super.users=User:xxx
authorizer.class.name=kafka.security.auth.SimpleAclAuthorizerlog.dirs=/data1,xxx
zookeeper.connect=zk
reserved.broker.max.id=1000000
broker.id.generation.enable=true# Replication configurations
num.replica.fetchers=8
default.replication.factor=2
replica.fetch.max.bytes=52428800
replica.lag.time.max.ms=10000# Log configuration
num.partitions=2
message.max.bytes=52428800
#关闭topic自动创建功能
auto.create.topics.enable=false
log.retention.hours=72
log.roll.hours=72
log.cleaner.enable=true# ZK configuration
zookeeper.connection.timeout.ms=60000
zookeeper.session.timeout.ms=60000
zookeeper.sync.time.ms=60000# Socket server configuration
num.network.threads=32
num.io.threads=32
queued.max.requests=500# 额外配置
delete.topic.enable=true
compression.type=producer
replica.socket.receive.buffer.bytes=2097152
unclean.leader.election.enable=true

版权声明:本站所有资料均为网友推荐收集整理而来,仅供学习和研究交流使用。

原文链接:https://hbdhgg.com/4/47931.html

发表评论:

本站为非赢利网站,部分文章来源或改编自互联网及其他公众平台,主要目的在于分享信息,版权归原作者所有,内容仅供读者参考,如有侵权请联系我们删除!

Copyright © 2022 匯編語言學習筆記 Inc. 保留所有权利。

底部版权信息