I am playing around the Kafka producer performance. And i need to reduce the number of requests that Kafka producer sends it to Kafka cluster by tuning batch size . I am using batch processing of 2 mins
I tried printing metrics mentioned in https://kafka.apache.org/documentation/. But there is no specific metric to count number of send requests to Kafka cluster by Kafka producer.
Expected Results :
I need to measure the number of times Kafka producer performs call or talk to Kafka cluster to send the records . If Kafka is spending more time in taking to cluster , then i can tune in linger.ms and batch-size