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

clientv3: customize/improve balancer endpoint selection #9157

Closed
gyuho opened this issue Jan 17, 2018 · 1 comment
Closed

clientv3: customize/improve balancer endpoint selection #9157

gyuho opened this issue Jan 17, 2018 · 1 comment

Comments

@gyuho
Copy link
Contributor

gyuho commented Jan 17, 2018

Problem

Current balancer randomly pins first connected address and never switches until disconnected. Theoretically, millions of clients can be pinned onto the same node. Worse if several watchers are multiplexed on those connections--dispatching node can quickly be overloaded. Since we do not expose connection status or pinned endpoint, client has no way to distribute connections evenly.

Solution

v2 client has EndpointSelectionPrioritizeLeader. Similar can happen for v3 client. Better if we can let client specify dial policy: weighted roundrobin, prioritize leader, customized endpoint selection policy based on workloads, dynamic endpoint selection/switch based on workloads.

Related

Probably after we implement new client balancer.

@gyuho
Copy link
Contributor Author

gyuho commented Jan 22, 2018

Related #7683.

@gyuho gyuho closed this as completed Sep 17, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Development

No branches or pull requests

1 participant