Skip to content
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

More efficient virtual host recovery: prepare semi-durable binding table once instead of each time a virtual host is recovered #1650

Merged
merged 2 commits into from
Jul 25, 2018

Conversation

hairyhum
Copy link
Contributor

@hairyhum hairyhum commented Jul 24, 2018

Before #567 all binding recover functions were executed once on
node restart.
Executing table_filter can be expensive with high number of vhosts
and bindings and effectively should be called only once.
Moved to a separate function, which should be called from the global
recovery function (rabbit_vhost:recover/0).

This problem exacerbated what's described in #1648.

Before #567 all binding recover functions were executed once on
node restart.
Executing table_filter can be expensive with high number of vhosts
and bindings and effectively should be called only once.
Moved to a separate function, which should be called from the global
recovery function (`rabbit_vhost:recover/0`)
@hairyhum
Copy link
Contributor Author

Didn't run all tests yet, but the behaviour should not be different.

@michaelklishin michaelklishin changed the title Prepare bindings table in a separate recover function. Prepare bindings table in a separate recover function Jul 24, 2018
@michaelklishin michaelklishin added this to the 3.7.8 milestone Jul 24, 2018
@michaelklishin michaelklishin changed the title Prepare bindings table in a separate recover function Prepare semi-durable binding table once instead of each time a virtual host is recovered Jul 24, 2018
@michaelklishin michaelklishin merged commit 08c6675 into master Jul 25, 2018
@michaelklishin michaelklishin deleted the binding-global-recover branch July 25, 2018 02:08
@michaelklishin michaelklishin changed the title Prepare semi-durable binding table once instead of each time a virtual host is recovered More efficient virtual host recovery: prepare semi-durable binding table once instead of each time a virtual host is recovered Aug 30, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants