-
-
Notifications
You must be signed in to change notification settings - Fork 1.4k
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
[UPDATED] Add kick leafnode client functionality #5527
Conversation
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.
I wonder if we should just keep the external API the same and if we fail looking up via the client list just check the leafnode list?
I also think it should work on leafnodes. Want some input from @ripienaar and @jnmoyne |
This was my initial thought as well, i might have misunderstood @ripienaar suggestions tho. |
There is a risk since IDs are not somehow unique CID 10 could be there. I aim for it but it disconnects before I kick it and then I disconnect LID 10 |
They are all unique.. |
Hmm, ok so if one server cannot have cid:10 and lid:10 at the same time then that's fine then, was not aware |
All ids are monotonic and come from same server variable under lock, so yes you can never have an id, whether CID, LID, RID or GID overlap or repeat.. |
Great, then yeah lets do as Derek suggest with trying one after the other |
Updated the PR with the fallback to kicking leafnode client if a client id doesn't exist. |
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.
LGTM, I suspect the team might want a test or the existing one expanded.
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.
Let's add a test and also update the PR description which is no longer correct.
Thanks.
Any updates here? |
Closing in favor of #5587 |
I was looking for a way to rebalance LeafNodes client connections (k8s loadbalancing) and found the original #1556. I was informed at the slack that the KICK functionality in the API lacked the ability to kick leaf node connections.
Tested functionality locally & ran tests without issues. Didn't get travis to work tho.
Signed-off-by: Niklas Holmstedt n.holmstedt@gmail.com