Hi,
I am using a Kafka producer java client by vert.x framework.
https://vertx.io/docs/apidocs/io/vertx/kafka/client/producer/KafkaProducer.html

There is a producer setting in kafka:
connections.max.idle.ms = 540000

So if there are no records to produce then after 9 minutes I get this in my
logs:
[kafka-producer-network-thread | RecordProducer] [NetworkClient.java:977] -
[Producer clientId=RecordProducer] Node -1 disconnected.

What it looks like is the Kafka producer object I had created has lost its
connection due to this setting.

What are my options to ensure that Kafka producer client does not close
idle connections or reconnects or keeps alive even when no records to
produce arrive for a long time?

Thanks
Sachin

Reply via email to