You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@kafka.apache.org by Himanshu Shukla <hi...@gmail.com> on 2020/01/15 05:03:05 UTC

Public IPs for brokers

Hi all,

do I have to necessarily have public IPs for all the brokers? Since we can
give a few of the IPs in bootstrap.servers config.

Re: Public IPs for brokers

Posted by Himanshu Shukla <hi...@gmail.com>.
Thanks, Robin. Got the clarification.

Thanks and Regards,
Himanshu Shukla




On Wed, Jan 15, 2020 at 3:40 PM Robin Moffatt <ro...@confluent.io> wrote:

> If you use a load balancer bear in mind the importance of the
> advertised.listeners setting:
> https://rmoff.net/2018/08/02/kafka-listeners-explained/
>
>
> --
>
> Robin Moffatt | Senior Developer Advocate | robin@confluent.io | @rmoff
>
>
> On Wed, 15 Jan 2020 at 08:15, Himanshu Shukla <himanshushukla254@gmail.com
> >
> wrote:
>
> > is it recommended to use ALB(running all 3 nodes on ec2 instances) or
> > something similar?
> >
> > Thanks and Regards,
> > Himanshu Shukla
> >
> >
> >
> >
> > On Wed, Jan 15, 2020 at 12:52 PM Tom Bentley <tb...@redhat.com>
> wrote:
> >
> > > Hi Himanshu,
> > >
> > > Short answer: yes.
> > >
> > > The way a Kafka client works is to connect to one of the given
> bootstrap
> > > brokers and ask it about the rest of the cluster. The client then
> > connects
> > > to those brokers as necessary. So in general a client will need to
> > connect
> > > to all brokers in the cluster and therefore the broker IPs need to be
> > > routable from the client.
> > >
> > > Cheers,
> > >
> > > Tom
> > >
> > > On Wed, Jan 15, 2020 at 5:10 AM Himanshu Shukla <
> > > himanshushukla254@gmail.com>
> > > wrote:
> > >
> > > > Hi all,
> > > >
> > > > do I have to necessarily have public IPs for all the brokers? Since
> we
> > > can
> > > > give a few of the IPs in bootstrap.servers config.
> > > >
> > >
> >
>

Re: Public IPs for brokers

Posted by Robin Moffatt <ro...@confluent.io>.
If you use a load balancer bear in mind the importance of the
advertised.listeners setting:
https://rmoff.net/2018/08/02/kafka-listeners-explained/


-- 

Robin Moffatt | Senior Developer Advocate | robin@confluent.io | @rmoff


On Wed, 15 Jan 2020 at 08:15, Himanshu Shukla <hi...@gmail.com>
wrote:

> is it recommended to use ALB(running all 3 nodes on ec2 instances) or
> something similar?
>
> Thanks and Regards,
> Himanshu Shukla
>
>
>
>
> On Wed, Jan 15, 2020 at 12:52 PM Tom Bentley <tb...@redhat.com> wrote:
>
> > Hi Himanshu,
> >
> > Short answer: yes.
> >
> > The way a Kafka client works is to connect to one of the given bootstrap
> > brokers and ask it about the rest of the cluster. The client then
> connects
> > to those brokers as necessary. So in general a client will need to
> connect
> > to all brokers in the cluster and therefore the broker IPs need to be
> > routable from the client.
> >
> > Cheers,
> >
> > Tom
> >
> > On Wed, Jan 15, 2020 at 5:10 AM Himanshu Shukla <
> > himanshushukla254@gmail.com>
> > wrote:
> >
> > > Hi all,
> > >
> > > do I have to necessarily have public IPs for all the brokers? Since we
> > can
> > > give a few of the IPs in bootstrap.servers config.
> > >
> >
>

Re: Public IPs for brokers

Posted by Himanshu Shukla <hi...@gmail.com>.
is it recommended to use ALB(running all 3 nodes on ec2 instances) or
something similar?

Thanks and Regards,
Himanshu Shukla




On Wed, Jan 15, 2020 at 12:52 PM Tom Bentley <tb...@redhat.com> wrote:

> Hi Himanshu,
>
> Short answer: yes.
>
> The way a Kafka client works is to connect to one of the given bootstrap
> brokers and ask it about the rest of the cluster. The client then connects
> to those brokers as necessary. So in general a client will need to connect
> to all brokers in the cluster and therefore the broker IPs need to be
> routable from the client.
>
> Cheers,
>
> Tom
>
> On Wed, Jan 15, 2020 at 5:10 AM Himanshu Shukla <
> himanshushukla254@gmail.com>
> wrote:
>
> > Hi all,
> >
> > do I have to necessarily have public IPs for all the brokers? Since we
> can
> > give a few of the IPs in bootstrap.servers config.
> >
>

Re: Public IPs for brokers

Posted by Tom Bentley <tb...@redhat.com>.
Hi Himanshu,

Short answer: yes.

The way a Kafka client works is to connect to one of the given bootstrap
brokers and ask it about the rest of the cluster. The client then connects
to those brokers as necessary. So in general a client will need to connect
to all brokers in the cluster and therefore the broker IPs need to be
routable from the client.

Cheers,

Tom

On Wed, Jan 15, 2020 at 5:10 AM Himanshu Shukla <hi...@gmail.com>
wrote:

> Hi all,
>
> do I have to necessarily have public IPs for all the brokers? Since we can
> give a few of the IPs in bootstrap.servers config.
>