You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@kafka.apache.org by Rendy Bambang Junior <re...@gmail.com> on 2015/05/12 09:33:45 UTC
Kafka broker and producer max message default config
Hi,
I see configuration for broker "max.message.bytes" 1,000,000
and configuration for producer "max.request.size" 1,048,576
Why is default config for broker is less than producer? If that is the case
then there will be message sent by producer which is bigger than what
broker could receive.
Could anyone please clarify my understanding?
Rendy
Re: Kafka broker and producer max message default config
Posted by Rendy Bambang Junior <re...@gmail.com>.
Thanks, I get the difference now. This is assuming request to be sent
contains at least >1 messages. Isn't it?
Rendy
On May 13, 2015 3:55 AM, "Ewen Cheslack-Postava" <ew...@confluent.io> wrote:
> The max.request.size effectively caps the largest size message the producer
> will send, but the actual purpose is, as the name implies, to limit the
> size of a request, which could potentially include many messages. This
> keeps the producer from sending very large requests to the broker. The
> limitation on message size is just a side effect.
>
>
> On Tue, May 12, 2015 at 12:33 AM, Rendy Bambang Junior <
> rendy.b.junior@gmail.com> wrote:
>
> > Hi,
> >
> > I see configuration for broker "max.message.bytes" 1,000,000
> > and configuration for producer "max.request.size" 1,048,576
> >
> > Why is default config for broker is less than producer? If that is the
> case
> > then there will be message sent by producer which is bigger than what
> > broker could receive.
> >
> > Could anyone please clarify my understanding?
> >
> > Rendy
> >
>
>
>
> --
> Thanks,
> Ewen
>
Re: Kafka broker and producer max message default config
Posted by Ewen Cheslack-Postava <ew...@confluent.io>.
The max.request.size effectively caps the largest size message the producer
will send, but the actual purpose is, as the name implies, to limit the
size of a request, which could potentially include many messages. This
keeps the producer from sending very large requests to the broker. The
limitation on message size is just a side effect.
On Tue, May 12, 2015 at 12:33 AM, Rendy Bambang Junior <
rendy.b.junior@gmail.com> wrote:
> Hi,
>
> I see configuration for broker "max.message.bytes" 1,000,000
> and configuration for producer "max.request.size" 1,048,576
>
> Why is default config for broker is less than producer? If that is the case
> then there will be message sent by producer which is bigger than what
> broker could receive.
>
> Could anyone please clarify my understanding?
>
> Rendy
>
--
Thanks,
Ewen