Skip to content
Snippets Groups Projects
Commit a883cbc6 authored by Zuul's avatar Zuul Committed by Gerrit Code Review
Browse files

Merge "Improve scalability of Kafka"

parents 6a9f0500 2b34f6d2
No related branches found
No related tags found
No related merge requests found
...@@ -22,6 +22,7 @@ kafka_cluster_name: "kolla_kafka" ...@@ -22,6 +22,7 @@ kafka_cluster_name: "kolla_kafka"
kafka_log_dir: "/var/log/kolla/kafka" kafka_log_dir: "/var/log/kolla/kafka"
kafka_heap_opts: "-Xmx1G -Xms1G" kafka_heap_opts: "-Xmx1G -Xms1G"
kafka_zookeeper: "{% for host in groups['zookeeper'] %}{{ hostvars[host]['ansible_' + hostvars[host]['api_interface']]['ipv4']['address'] }}:{{ zookeeper_client_port }}{% if not loop.last %},{% endif %}{% endfor %}" kafka_zookeeper: "{% for host in groups['zookeeper'] %}{{ hostvars[host]['ansible_' + hostvars[host]['api_interface']]['ipv4']['address'] }}:{{ zookeeper_client_port }}{% if not loop.last %},{% endif %}{% endfor %}"
kafka_broker_count: "{{ groups['kafka'] | length }}"
#################### ####################
# Docker # Docker
......
...@@ -5,11 +5,12 @@ socket.send.buffer.bytes=102400 ...@@ -5,11 +5,12 @@ socket.send.buffer.bytes=102400
socket.receive.buffer.bytes=102400 socket.receive.buffer.bytes=102400
socket.request.max.bytes=104857600 socket.request.max.bytes=104857600
log.dirs=/var/lib/kafka/data log.dirs=/var/lib/kafka/data
num.partitions=1 min.insync.replicas={{ kafka_broker_count if kafka_broker_count|int < 3 else 2 }}
num.partitions=30
num.recovery.threads.per.data.dir=1 num.recovery.threads.per.data.dir=1
offsets.topic.replication.factor=3 offsets.topic.replication.factor={{ kafka_broker_count if kafka_broker_count|int < 3 else 3 }}
transaction.state.log.replication.factor=3 transaction.state.log.replication.factor={{ kafka_broker_count if kafka_broker_count|int < 3 else 3 }}
transaction.state.log.min.isr=3 transaction.state.log.min.isr={{ kafka_broker_count if kafka_broker_count|int < 3 else 2 }}
log.retention.hours=168 log.retention.hours=168
log.segment.bytes=1073741824 log.segment.bytes=1073741824
log.retention.check.interval.ms=300000 log.retention.check.interval.ms=300000
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment