Hi Stephane,
we enforce the constraint in a custom create topic policy (see '
create.topic.policy.class.name')
--------------------------------------------------
Edoardo Comar
IBM Message Hub
eco...@uk.ibm.com
IBM UK Ltd, Hursley Park, SO21 2JN




From:   Stephane Maarek <steph...@simplemachines.com.au>
To:     "dev@kafka.apache.org" <dev@kafka.apache.org>
Date:   23/06/2017 01:48
Subject:        Minimum Replication Factor



Hi all,

 

Interested in getting people’s opinion on something.

The problem I have is that some people launch streams app in our cluster 
but forget to set a replication factor > 1. Then it’s a pain to increase 
the topic’s RF, when we do notice some topic partitions go offline because 
we reboot brokers. 

 

I have two solutions for this, which I’m interested in hearing:
Make the replication.factor in Kafka Streams “opiniated / smart” by 
changing the default to a dynamic min(3, # brokers).
Create a “minimum.replication.factor” in Kafka broker settings. If any 
topic is trying to be created using a RF less than the min, Kafka says no 
and doesn’t create the topic. That would ensure no topics get “miscreated” 
in production clusters and ease the pain on both devs, devops and support.
 

Thoughts? 

My preference goes towards 2). 

 

Cheers!

Stephane 




Unless stated otherwise above:
IBM United Kingdom Limited - Registered in England and Wales with number 
741598. 
Registered office: PO Box 41, North Harbour, Portsmouth, Hampshire PO6 3AU

Reply via email to