Are you measuring latency as time between producer and consumer ?

In that case, the ack shouldn't affect the latency, cause even tough your
producer is not going to wait for the ack, the consumer will only get the
message after its commited in the server.

About latency my best result occur with sync producers, but the throughput
is much lower in that case.

About not flushing to disk I'm pretty sure that it's not an option in kafka
(correct me if I'm wrong)

Regards,
Alvaro Gareppe

On Thu, Aug 13, 2015 at 12:59 PM, Yuheng Du <[email protected]>
wrote:

> Also, the latency results show no major difference when using ack=0 or
> ack=1. Why is that?
>
> On Thu, Aug 13, 2015 at 11:51 AM, Yuheng Du <[email protected]>
> wrote:
>
> > I am running an experiment where 92 producers is publishing data into 6
> > brokers and 10 consumer are reading online data simultaneously.
> >
> > How should I do to reduce the latency? Currently when I run the producer
> > performance test the average latency is around 10s.
> >
> > Should I disable log.flush? How to do that? Thanks.
> >
>



-- 
Ing. Alvaro Gareppe
[email protected]

Reply via email to