-
-
Notifications
You must be signed in to change notification settings - Fork 500
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
Rabbitmq crashing with config_ranch = true #668
Comments
@jni- Yes, I think your analysis is correct. So while this is unfortunate, for folks using the older versions, it does make the module idempotent in its default configuration under most (all) valid configs, where it will load a later RabbitMQ version. So it was an intentional decision to leave it broken with the default setting for older versions of RMQ. The module still works, but that parameter will need to be set. Sorry about all the logs etc., though! |
@wyardley excellent, thank you for the quick reply! I understand that dragging down current code with old versions is a pain, and you should absolutely not do it hehe I'll fix this on our side. I think the breaking change message could be improved a little. May I suggest log messages that are user-oriented instead of effect-oriented or code-oriented. I understand the idempotency concerns, but I think there is a difference between the change that is "Fixes idempotency by adding a parameter config_ranch that is not version dependent" and the breaking change that is "If using rabbitmq < 3.6, you will need to set config_ranch = false to have the same behavior as the previous version". I don't know if this is possible, just a thought! In any case, you can close this issue, thanks for the help! |
DISCLAIMER: this is a wild guess, I don't understand half of what I'm about to say. Don't take anything for granted.
We updated to v8.0.0 of this plugin and our server stopped accepting connections, producing 36Gb of crash logs in a few hours. The error looked like this :
I tracked down the error to the generated config. We now had this in rabbitmq.config :
Which was fixed by adding
binary
in it (like we used to have) :From the changes in the PR below, I suspect this is happening because we have rabbitmq 3.3.5 (yes... I know. On erlang R16B03 moreover.), hence disabling ranch. Now config_ranch is true by default, regardless of the version. When we updated the plugin, our server went down on the next puppet apply.
I'm not sure what the good solution is. Always include
binary
regardless of "ranch" (I could open a PR), or putconfig_ranch = false
on our side. In any case, I think this should either be better documented or be version-dependent. Again this could all stem from me not knowing what I'm currently doing.Relates to this PR : #621
And to these lines :
puppet-rabbitmq/templates/rabbitmq.config.erb
Lines 20 to 22 in be30507
Thank you!
The text was updated successfully, but these errors were encountered: