10ec566f56
This commit enables two settings which are useful when restarting a Kafka node as part of a cluster. The first supports moving partitions for which a node being restarting is the leader to another broker, and the second supports automatically rebalancing partitions when the node rejoins the cluster. See the documentation for more details: https://kafka.apache.org/10/documentation.html#basic_ops_restarting Change-Id: I0718fca08ea116db926b348e3e6e3bc2373db1fb
25 lines
1012 B
Django/Jinja
25 lines
1012 B
Django/Jinja
listeners=PLAINTEXT://{{ api_interface_address }}:{{ kafka_port }}
|
|
controlled.shutdown.enable=true
|
|
auto.leader.rebalance.enable=true
|
|
num.network.threads=3
|
|
num.io.threads=8
|
|
socket.send.buffer.bytes=102400
|
|
socket.receive.buffer.bytes=102400
|
|
socket.request.max.bytes=104857600
|
|
log.dirs=/var/lib/kafka/data
|
|
min.insync.replicas={{ kafka_broker_count if kafka_broker_count|int < 3 else 2 }}
|
|
num.partitions=30
|
|
num.recovery.threads.per.data.dir=1
|
|
offsets.topic.replication.factor={{ kafka_broker_count if kafka_broker_count|int < 3 else 3 }}
|
|
transaction.state.log.replication.factor={{ kafka_broker_count if kafka_broker_count|int < 3 else 3 }}
|
|
transaction.state.log.min.isr={{ kafka_broker_count if kafka_broker_count|int < 3 else 2 }}
|
|
log.retention.hours=168
|
|
log.segment.bytes=1073741824
|
|
log.retention.check.interval.ms=300000
|
|
zookeeper.connect={{ kafka_zookeeper }}
|
|
zookeeper.connection.timeout.ms=6000
|
|
{% if enable_monasca | bool %}
|
|
log.message.format.version=0.9.0.0
|
|
connections.max.idle.ms=31540000000
|
|
{% endif %}
|