#kafka数据的存放地址, multiple addresses are separated by commas.
Log.dirs=/tmp/kafka-logs
#broker Server service Port
port=9092
#这个参数会在日志segment没有达到log the size of the. Segment.bytes setting also forces a new segment to be overwritten by the specified parameters when topic is created
Log.roll.hours=24
#是否允许控制器关闭broker, if set to true, all leader on this broker will be closed and transferred to the other broker
Controlled.shutdown.enable=false
#控制器关闭的尝试次数
Controlled.shutdown.max.retries=3
#每次关闭尝试的时间间隔
controlled.shutdown.retry.backoff.ms=5000
#partition leader the queue of messages when synchronizing with replicas data
controller.message.queue.size=10
The time-out of the socket when communicating between the leader and the Replicas #partition
controller.socket.timeout.ms=30000
#是否允许自动创建topic, if false, you need to create topic by command
Default.replication.factory=1
#表示消息体的最大大小, Unit is byte
message.max.bytes=1000000
#broker处理磁盘IO的线程数, the value should be greater than the number of your drives
Num.io.threads=8
#broker处理消息的最大线程数, generally do not need to modify
Num.network.threads=3
#每个topic的分区个数, if the topic is not specified at the time of creation, it will be overwritten by the specified parameters when the topic is created.
Num.partitions=1
#leader中进行复制的线程数, increasing this value will increase the IO of RELIPCA
Num.replica.fetchers=1
#ZooKeeper Connection time-out
zookeeper.connection.timeout.ms=20000
Other references:
Kafka Cluster Configuration Instructions