kolla-ansible/ansible/roles/kafka
Doug Szumski a273e28e20 Set Kafka default replication factor
This ensures that when using automatic Kafka topic creation, with more than one
node in the Kafka cluster, all partitions in the topic are automatically
replicated. When a single node goes down in a >=3 node cluster, these topics will
continue to accept writes providing there are at least two insync replicas.

In a two node cluster, no failures are tolerated. In a three node cluster, only a
single node failure is tolerated. In a larger cluster the configuration may need
manual tuning.

This configuration follows advice given here:

[1] https://docs.cloudera.com/documentation/kafka/1-2-x/topics/kafka_ha.html#xd_583c10bfdbd326ba-590cb1d1-149e9ca9886--6fec__section_d2t_ff2_lq

Closes-Bug: #1888522

Change-Id: I7d38c6ccb22061aa88d9ac6e2e25c3e095fdb8c3
2020-07-27 08:23:05 +00:00
..
defaults Introduce /etc/timezone to Debian/Ubuntu containers 2020-04-09 18:53:36 +00:00
handlers Simplify handler conditionals 2019-06-27 15:57:19 +00:00
tasks Merge "Add Ansible group check to prechecks" 2020-04-16 15:33:46 +00:00
templates Set Kafka default replication factor 2020-07-27 08:23:05 +00:00