You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@kafka.apache.org by "Kothakota, Neeraja (HP Software)" <ne...@hp.com> on 2014/11/13 09:09:49 UTC

How to keep-alive connection from producer to broker?

Hi,

I would like to know if there is a way/configuration to keep-alive connections from producer/client to broker?

I observed that connection is getting closed every time, which takes considerable time.

Can you please suggest ?

Thanks & Regards,
Neeraja

Re: How to keep-alive connection from producer to broker?

Posted by Guozhang Wang <wa...@gmail.com>.
I think there is no docs yet for this feature since it is only included in
trunk (are you using a released version? If yes then you should not hit
this); but here is the ticket that you can take a look:

https://issues.apache.org/jira/browse/KAFKA-1282

On Thu, Nov 13, 2014 at 6:37 PM, Kothakota, Neeraja (HP Software) <
neeraja.k@hp.com> wrote:

> @Guozhang,
>
> Thanks for your reply.
> Is is available as part of broker configuration? If yes, how to configure.
>
> --Neeraja
>
>
> -----Original Message-----
> From: Guozhang Wang [mailto:wangguoz@gmail.com]
> Sent: Friday, November 14, 2014 12:02 AM
> To: users@kafka.apache.org
> Subject: Re: How to keep-alive connection from producer to broker?
>
> Neeraja,
>
> Producer does use keep-alive connections to the brokers, and a recent
> change is introduced in broker which will actively close connections if it
> has not got any requests from the producer for some time. The default
> period is 10 min, you can set it to INT_MAX if you do not want this feature.
>
> Guozhang
>
> On Thu, Nov 13, 2014 at 12:09 AM, Kothakota, Neeraja (HP Software) <
> neeraja.k@hp.com> wrote:
>
> > Hi,
> >
> > I would like to know if there is a way/configuration to keep-alive
> > connections from producer/client to broker?
> >
> > I observed that connection is getting closed every time, which takes
> > considerable time.
> >
> > Can you please suggest ?
> >
> > Thanks & Regards,
> > Neeraja
> >
>
>
>
> --
> -- Guozhang
>



-- 
-- Guozhang

RE: How to keep-alive connection from producer to broker?

Posted by "Kothakota, Neeraja (HP Software)" <ne...@hp.com>.
@Guozhang,

Thanks for your reply.
Is is available as part of broker configuration? If yes, how to configure.

--Neeraja


-----Original Message-----
From: Guozhang Wang [mailto:wangguoz@gmail.com] 
Sent: Friday, November 14, 2014 12:02 AM
To: users@kafka.apache.org
Subject: Re: How to keep-alive connection from producer to broker?

Neeraja,

Producer does use keep-alive connections to the brokers, and a recent change is introduced in broker which will actively close connections if it has not got any requests from the producer for some time. The default period is 10 min, you can set it to INT_MAX if you do not want this feature.

Guozhang

On Thu, Nov 13, 2014 at 12:09 AM, Kothakota, Neeraja (HP Software) < neeraja.k@hp.com> wrote:

> Hi,
>
> I would like to know if there is a way/configuration to keep-alive 
> connections from producer/client to broker?
>
> I observed that connection is getting closed every time, which takes 
> considerable time.
>
> Can you please suggest ?
>
> Thanks & Regards,
> Neeraja
>



--
-- Guozhang

Re: How to keep-alive connection from producer to broker?

Posted by Guozhang Wang <wa...@gmail.com>.
Neeraja,

Producer does use keep-alive connections to the brokers, and a recent
change is introduced in broker which will actively close connections if it
has not got any requests from the producer for some time. The default
period is 10 min, you can set it to INT_MAX if you do not want this feature.

Guozhang

On Thu, Nov 13, 2014 at 12:09 AM, Kothakota, Neeraja (HP Software) <
neeraja.k@hp.com> wrote:

> Hi,
>
> I would like to know if there is a way/configuration to keep-alive
> connections from producer/client to broker?
>
> I observed that connection is getting closed every time, which takes
> considerable time.
>
> Can you please suggest ?
>
> Thanks & Regards,
> Neeraja
>



-- 
-- Guozhang