This page is a summary of results on the analysis I did on understanding the optimal value of max.inflight.requests.per.connection as well as the performance impact of acks=all.

Test Setup

Tests run against kafka commit 6bd73026

Goal

Summary of results

p95 Latency

acks=1acks=all

 

Throughput

 

acks=1acks=all

Observations

More on acks=1 and acks=all

For the run above, the p50 latency for acks=1 and acks=all is totally unintuitive.. it is actually better for acks=all, and also is worse for max.inflight=4 when compared to max.inflight=3

acks=1acks=all

 

At this time, there is nothing to explain the performance behavior of acks=all and acks=1:

Conclusion

From these tests, we can conclude the following: