kafka
kafka copied to clipboard
NoKafkaConnectionError message : "Connection timeout"
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?
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.
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?
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.
Thanks
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
One of the reasons could be the changing of network connectivity, switching from one network to another.