-
Notifications
You must be signed in to change notification settings - Fork 62
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Avoid infinite reconnection retries #9
Conversation
going to try to reconnect in case of a failing connection. If reconnect_times if not defined then the former behaviour is expected, going to retry connection forever. Version 1.1.0 bump
retry | ||
|
||
@reconnect_tries += 1 | ||
retry if retry_connection? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Doesn't this make it lose the event if redis is down?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes it makes, but without modifying the pipeline logic there is actually no way I see to handle this. As this is an option feature, the user can decide if he want a finite or infinite number of retries.
In this state I agree with @jordansissel that this proposed change is worrisome. First there is no explicit mention of the fact that the event has been dropped. Then, I am not sure which is the "lesser evil" between having a stalled pipeline and having all input events dropped in the logs if the I think that we should think about this from these 2 angles:
|
Hi, Is there any solution you might think, who provides help now to users
On Mon, Jul 6, 2015 at 8:16 PM Colin Surprenant notifications@github.com
|
@purbon as I said in my previous comment, my proposed solution(s) is a) to properly fix the shutdown signalling which should happen for 1.6 per elastic/logstash#3451 b) to move on with persistence and c) to discuss about "global" retry strategy for output plugins... |
Yes, this makes sense.
On Tue, 7 Jul 2015 23:40 Colin Surprenant notifications@github.com wrote: @pere https://github.com/pere as I said in my previous comment, my — h 9i7YtnZEaGCnRNJ9FWdwnOuaMChHupNYdZjehlLM5HicyweXPa0ZbO7xeEWlJJuFqRrlsZkSapP71niAD1Bn8EgKW1X_BIf4eR0dW_zmqTbKrQWmCsOB4eeWlL2IWttZSF79swz7dqPw7g=s0-d-e1-ft# |
Closing this, as this is not the intended solution and a proper shutdown sequence is going to be implemented soon. We can always reopen if necessary. |
Add a configuration option to set the number of times the output is going to try to reconnect in case of a failing connection. If reconnect_times if not defined then the former behaviour is expected,
going to retry connection forever.
Version 1.1.0 bump