Kafka Cluster Configuration Instructions

Source: Internet
Author: User

#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

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.