-
Notifications
You must be signed in to change notification settings - Fork 99
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
allow online peers to be removed #654
Comments
I think those tests were early in 2.9 release cycle. At minimum we should allow it with We should also retest that instability you saw. |
A previous test cycle got these results: So I peer removed a online server, it went offline and was able to come back after restart (couldnt in the past). However after it came back it was in a very bad way. Lots of
which appears to resolve but also phantom consumers showed up that wasnt there before, couldnt be INFO’d etc
not sure I’d be willing to use this in any other scenario than that outlined earlier - node is dead, offline and never coming back. |
So we should re-test what happens when an online peer is removed and it comes back after a restart (this is the problem, you remove a online peer it will most likely come back soon) and if its stable when it come back. |
Agree. @bruth possible to test this on 2.9.10 (top of main)? |
Yes, will create a test example. |
Does seem to behave better now - but still, what do we gain by removing an online node? Soon as someone restarts it it will come back? |
I am seeing some inconsistencies with messages on disk after it comes back, like some limits didnt apply or something
here I bounced n1 out a few times, keeping it down etc - its should have the same message count as the other 2 but somethings clearly gone bad there once it came back. WIll need some more time to investigate / reproduce |
Also after removing n1-nyc while online report jsz still gets given data about it:
|
And once it reboots and come back on - it gets no data and all the streams shows only the 2 peers
however meta group has it up and healthy
Yet when it started up it logged its restoring etc I think we have a bunch of work to do before we can consider allowing this. |
I don’t think these problems are limited to taking off online nodes and bringing tbem back - I think it’s in general issues with nodes coming back |
We can do
nats server raft peer-remove
but this requires a peer to be offline.The server doesnt restrict this so we could ask it to remove a online peer, however when we tested this we found some instability resulted should the removed peer restart (and maybe other issues also)
As its been a while since we tested this properly we should again test and reconsider supporting removing online peers with -f
//cc @derekcollison
The text was updated successfully, but these errors were encountered: