Once the topic is created, you can only increase the replication factor by:
1. delete the topic and re-create the same topic (note: data will be lost
after this step)
or
2. follow the doc to increase the replication factor (data will be kept)

Thank you.
Luke

On Thu, Jul 13, 2023 at 5:23 PM Gaurav Pande <gaupand...@gmail.com> wrote:

> Hi Luke ,
>
> Thanks does that mean that setting default.replication.factor to more than
> 1 and doing Kafka broker restart wouldn't dynamically change the existing
> partitions replication? We have to use cli shell script, as per
> documentation?
> Regards,
> GP
>
> On Thu, 13 Jul, 2023, 13:54 Luke Chen, <show...@gmail.com> wrote:
>
> > Hi Gaurav,
> >
> > > Why do I see topic ReplicationFactor:1 during description of a topic ?
> > I think you should set this config: `default.replication.factor`
> >
> > > And how can we increase replication factor?  I have 3 Kafka brokers
> > running on 2.7.0 version.
> > Please check this doc:
> >
> >
> https://kafka.apache.org/documentation/#basic_ops_increase_replication_factor
> >
> > Thanks.
> > Luke
> >
> > On Thu, Jul 13, 2023 at 12:23 PM Gaurav Pande <gaupand...@gmail.com>
> > wrote:
> >
> > > Hi all,
> > >
> > > I have noticed that when I describe my Kafka topic I see
> > > ReplicationFactor:1 but in my server.properties  file I already have
> > > defined below values i.e a replication factor of 3 :
> > >
> > > num.partions=3
> > > offsets.topic.replication.factor=3
> > > transaction.state.log.replication.factor=3
> > > transaction.state.log.min.isr=1
> > >
> > > Why do I see topic ReplicationFactor:1 during description of a topic ?
> > >
> > > And how can we increase replication factor?  I have 3 Kafka brokers
> > running
> > > on 2.7.0 version.
> > >
> > > Regards
> > > GP
> > >
> >
>

Reply via email to