Github user JPercivall commented on the issue:
https://github.com/apache/nifi/pull/563
@olegz @ijokarumawak I don't think "Queue Buffering Max Time" is working
properly. I was getting super poor performance out of PutKafka and couldn't
understand why it would take ~5 seconds for a single message to be sent. I then
found this property and when I adjusted it lower it fixed my performance
problems (and higher according made it worse).
Looking at the property descriptor and corresponding property in Kafka
([seach for "linger.ms"](http://kafka.apache.org/documentation.html)), I would
expect it to batch multiple flowfiles but instead it just hung and only
processed one flowfile per batch. Below are a couple screenshots of the
configuration and the stats of running 3 node cluster (saw the saw phenomenon
running primary node only and the scheduling period was "0 secs"):


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at [email protected] or file a JIRA ticket
with INFRA.
---