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

What's the use of PAUSE a vhost? #66

Closed
bechampion opened this issue Nov 29, 2021 · 4 comments
Closed

What's the use of PAUSE a vhost? #66

bechampion opened this issue Nov 29, 2021 · 4 comments

Comments

@bechampion
Copy link

As far as i notice the clients start loosing HB frames until they disconnect , what i was able to replicate is PAUSING/UNPAUSING quick enough within the HB Interval configured on the clients (and hopefully loosing 1 of the 2 HB frames within the interval) will not disconnect the client.

I wonder what's the function of PAUSING ? also i tried PAUSING ->REMAPPING -> UNPAUSING , but still my client ends up going to the same rabbitmq server until i reconnect.

Thank you!

@adamncasey
Copy link
Contributor

adamncasey commented Nov 30, 2021

Hey @bechampion . It's a good question, and your observations around heartbeats align with what we see.

The aim of pausing is to support a stateful vhost migration from one broker to another. By pausing the vhost & forcing the clients to disconnect you can stabilise the state of the vhost, which makes the process of migrating to another broker possible / a lot simpler.

Once the vhost has been remapped you need to force disconnect the clients to ensure they're forwarded to the correct broker.

The exact technique is described in the middle of this talk: https://youtu.be/b2hQ8glQyhs - somewhere around the
13minute mark

@adamncasey
Copy link
Contributor

Sorry hit close with comment a bit early there - I updated the above comment - let me know if this helps

@bechampion
Copy link
Author

It does help a lot , thank you so much.

@willhoy
Copy link
Contributor

willhoy commented Mar 23, 2022

Marking closed

@willhoy willhoy closed this as completed Mar 23, 2022
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

No branches or pull requests

3 participants