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

feat(coordinator): use internal address as unique identification for load balance #565

Merged
merged 4 commits into from
Nov 10, 2024

Conversation

mattisonchao
Copy link
Member

@mattisonchao mattisonchao commented Nov 9, 2024

Motivation

Currently, we are using the server address as the key to do rebalance. That will be triggered if the user only changes the public address of the server.
We can use the internal address as the unique identification for the user to allow the user to change the public address or other information without the node swapping.

Modification

  • Introduce ServerContext struct as the map value.
  • Use the internal address as the filter key.

@mattisonchao mattisonchao merged commit 61f09cf into main Nov 10, 2024
7 checks passed
@mattisonchao mattisonchao deleted the feat.unique.identify.balance branch November 10, 2024 00:50
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