kafka icon indicating copy to clipboard operation
kafka copied to clipboard

NoKafkaConnectionError message : "Connection timeout"

Open arpanimage opened this issue 8 years ago • 6 comments
trafficstars

Hi,

We are facing this error every now and then. While the kafka topic receives messages from other sources the one from node sometimes gets this error and message does not reach Kafka. But the next same request goes through with no problem at all.

What can I do to avoid this error?

arpanimage avatar Oct 12 '17 17:10 arpanimage

Most common reasons: your Kafka server is overloaded, Kafka servers (or servers with Node) are running out of free file descriptors, you have slow network connection, etc, etc.

oleksiyk avatar Oct 12 '17 17:10 oleksiyk

Usually it is the case that when I send a message from node after a long period of time. Like the first request of the day kinds it gets this error but after this the other requests go through successfully.

Is there some config that I need to observe?

arpanimage avatar Oct 12 '17 17:10 arpanimage

This is low level error received from a network socket so I'm afraid it has nothing to do with no-kafka. Check your server/network infrastructure.

oleksiyk avatar Oct 12 '17 17:10 oleksiyk

Thanks

arpanimage avatar Oct 12 '17 17:10 arpanimage

just for my clarity, Could you please let me know if this a kafka config issue, or do I need to check some confifuration in node.js code or some network parameter.

It will be great if I can have some pointer

arpanimage avatar Oct 13 '17 04:10 arpanimage

One of the reasons could be the changing of network connectivity, switching from one network to another.

sohrab-khan avatar Jan 30 '19 19:01 sohrab-khan