Re: [DISCUSS] KIP-302 - Enable Kafka clients to use all DNS resolved IP addresses

2018-09-18 Thread Edoardo Comar
gt; > > > IBM Message Hub > > > > IBM UK Ltd, Hursley Park, SO21 2JN > > > > > > > > From: Eno Thereska > > To: dev@kafka.apache.org > > Date: 18/09/2018 10:24 > > Subject:Re: [DISCUSS] KIP-302 - Enable Kafka clients to use all >

Re: [DISCUSS] KIP-302 - Enable Kafka clients to use all DNS resolved IP addresses

2018-09-18 Thread Rajini Sivaram
; IBM Message Hub > > > > IBM UK Ltd, Hursley Park, SO21 2JN > > > > > > > > From: Eno Thereska > > To: dev@kafka.apache.org > > Date: 18/09/2018 10:24 > > Subject:Re: [DISCUSS] KIP-302 - Enable Kafka clients to use all > > DNS reso

Re: [DISCUSS] KIP-302 - Enable Kafka clients to use all DNS resolved IP addresses

2018-09-18 Thread Eno Thereska
o Comar > > IBM Message Hub > > IBM UK Ltd, Hursley Park, SO21 2JN > > > > From: Eno Thereska > To: dev@kafka.apache.org > Date: 18/09/2018 10:24 > Subject: Re: [DISCUSS] KIP-302 - Enable Kafka clients to use all > DNS resolved IP addresses > &g

Re: [DISCUSS] KIP-302 - Enable Kafka clients to use all DNS resolved IP addresses

2018-09-18 Thread Edoardo Comar
:Re: [DISCUSS] KIP-302 - Enable Kafka clients to use all DNS resolved IP addresses Hi folks, Could you expand the motivation a bit? When would it make sense to use an LB in front of Kafka brokers? A client needs to access each broker directly to consume the data in that broker

Re: [DISCUSS] KIP-302 - Enable Kafka clients to use all DNS resolved IP addresses

2018-09-18 Thread Eno Thereska
avy but this gives users the ability to > pick > > > and choose. > > > > I didn't include a setting to mix hostnames and canonical hostnames > as > > > I'm not sure there would be a valid use case. > > > > > > > > Alternativel

Re: [DISCUSS] KIP-302 - Enable Kafka clients to use all DNS resolved IP addresses

2018-09-18 Thread Mickael Maison
; > always work, across security protocols. > > >> > > >> A solution might be to expose to users the choice of using hostname or > > canonical host name on both sides. > > >> Say having one setting that collapses functionalities from both KIPs >

Re: [DISCUSS] KIP-302 - Enable Kafka clients to use all DNS resolved IP addresses

2018-09-11 Thread Edoardo Comar
ormed, using getCanonicalHostName() or > not. > >> > >> Maybe that gives less flexibility as users wouldn't be able to decide > to only perform DNS lookup on bootstrap.servers or on advertised listeners. > >> But this would ensure consistency so that a user can decide to u

Re: [DISCUSS] KIP-302 - Enable Kafka clients to use all DNS resolved IP addresses

2018-05-25 Thread Edoardo Comar
- dns.lookup.behaviour : bootstrap.servers, advertised.listeners, both > > Thoughts ? > > Jonathan Skrzypek > > > -Original Message----- > From: Edoardo Comar [mailto:edoco...@gmail.com] > Sent: 17 May 2018 23:50 > To: dev@kafka.apache.org > Subject: Re: [DISCUSS]

RE: [DISCUSS] KIP-302 - Enable Kafka clients to use all DNS resolved IP addresses

2018-05-24 Thread Skrzypek, Jonathan
, advertised.listeners, both Thoughts ? Jonathan Skrzypek -Original Message- From: Edoardo Comar [mailto:edoco...@gmail.com] Sent: 17 May 2018 23:50 To: dev@kafka.apache.org Subject: Re: [DISCUSS] KIP-302 - Enable Kafka clients to use all DNS resolved IP addresses Hi Jonathan

Re: [DISCUSS] KIP-302 - Enable Kafka clients to use all DNS resolved IP addresses

2018-05-17 Thread Edoardo Comar
> >>>> > 2) Advertised listeners >>>> > >>>> > a) No lookup >>>> > b) Use all DNS entries with host name >>>> > c) Use all DNS entries with canonical host name >>>> > >>>> > The combina

RE: [DISCUSS] KIP-302 - Enable Kafka clients to use all DNS resolved IP addresses

2018-05-17 Thread Skrzypek, Jonathan
nonicalHostName() ? > > Jonathan Skrzypek > > -Original Message- > From: Edoardo Comar [mailto:edoco...@gmail.com] > Sent: 16 May 2018 17:03 > To: dev@kafka.apache.org > Subject: Re: [DISCUSS] KIP-302 - Enable Kafka clients to use all DNS resolved > IP addresses > &

Re: [DISCUSS] KIP-302 - Enable Kafka clients to use all DNS resolved IP addresses

2018-05-16 Thread Edoardo Comar
gt; Jonathan Skrzypek > > -Original Message- > From: Edoardo Comar [mailto:edoco...@gmail.com] > Sent: 16 May 2018 17:03 > To: dev@kafka.apache.org > Subject: Re: [DISCUSS] KIP-302 - Enable Kafka clients to use all DNS resolved > IP addresses > > Hi Rajini, >

RE: [DISCUSS] KIP-302 - Enable Kafka clients to use all DNS resolved IP addresses

2018-05-16 Thread Skrzypek, Jonathan
[mailto:edoco...@gmail.com] Sent: 16 May 2018 17:03 To: dev@kafka.apache.org Subject: Re: [DISCUSS] KIP-302 - Enable Kafka clients to use all DNS resolved IP addresses Hi Rajini, In your example KIP-302 would attempt to connect to the first address returned, let's say www.apache.org/195.154.151.36

Re: [DISCUSS] KIP-302 - Enable Kafka clients to use all DNS resolved IP addresses

2018-05-16 Thread Edoardo Comar
s kind of sounds related to the environment you're running to me. >> >> What is the rationale behind using the advertised listeners to do your >> >> load balancing advertisement rather than a top level alias that has >> >> everything ? >> >> >> >

Re: [DISCUSS] KIP-302 - Enable Kafka clients to use all DNS resolved IP addresses

2018-05-15 Thread Rajini Sivaram
to do your > >> load balancing advertisement rather than a top level alias that has > >> everything ? > >> > >> It sounds like in your case there is a mismatch between > bootstrap.servers > >> and advertised.listeners, and you want advertised.listeners

Re: [DISCUSS] KIP-302 - Enable Kafka clients to use all DNS resolved IP addresses

2018-05-14 Thread Edoardo Comar
urned by the broker. >> So the extra parameter doesn't only have to do with DNS but it's also >> appending from the broker, maybe the parameter name should reflect this ? >> >> Jonathan Skrzypek >> >> >> -Original Message- >> From: Skrzypek,

Re: [DISCUSS] KIP-302 - Enable Kafka clients to use all DNS resolved IP addresses

2018-05-14 Thread Edoardo Comar
doardo > Jonathan Skrzypek > > > -Original Message- > From: Skrzypek, Jonathan [Tech] > Sent: 14 May 2018 14:46 > To: dev@kafka.apache.org > Subject: RE: [DISCUSS] KIP-302 - Enable Kafka clients to use all DNS resolved > IP addresses > > Hi, > > I see you n

Re: [DISCUSS] KIP-302 - Enable Kafka clients to use all DNS resolved IP addresses

2018-05-14 Thread Rajini Sivaram
from the broker, maybe the parameter name should reflect this ? > > Jonathan Skrzypek > > > -Original Message- > From: Skrzypek, Jonathan [Tech] > Sent: 14 May 2018 14:46 > To: dev@kafka.apache.org > Subject: RE: [DISCUSS] KIP-302 - Enable Kafka clients to use all DNS > res

RE: [DISCUSS] KIP-302 - Enable Kafka clients to use all DNS resolved IP addresses

2018-05-14 Thread Skrzypek, Jonathan
but it's also appending from the broker, maybe the parameter name should reflect this ? Jonathan Skrzypek -Original Message- From: Skrzypek, Jonathan [Tech] Sent: 14 May 2018 14:46 To: dev@kafka.apache.org Subject: RE: [DISCUSS] KIP-302 - Enable Kafka clients to use all DNS resolved IP

RE: [DISCUSS] KIP-302 - Enable Kafka clients to use all DNS resolved IP addresses

2018-05-14 Thread Skrzypek, Jonathan
Hi, I see you noted the similarities with KIP-235. But KIP-235 might also solve what this KIP is trying to achieve. When parsing bootstrap.servers, KIP-235 has the client add all underlying hostnames and IPs. And this happens before hitting the NetworkClient. So to me the client will try every