Skip to content

how to control connection retry attempts #1247

Answered by mihaitodor
rdilipk asked this question in Q&A
Discussion options

You must be logged in to vote

Indeed, we don't seem to have anything in the configuration to control this and, for Kafka specifically, the timeout is hardcoded here to one second. If you'd like to be able to configure this, we can expose it via a configuration parameter if you open an issue.

Regarding the number of connection attempts, I believe Benthos deliberately tries to reconnect forever unless it's explicitly told to shut down. While there are some input-specific errors that indicate a permanent failure, it's probably a bad idea to assume that Benthos will always behave properly and shut down. Imagine there could be some coding error in it which ends up preventing it from shutting down. Also, when running it as …

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@rdilipk
Comment options

Answer selected by rdilipk
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants