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

支持Weighted Random负载均衡策略 #1254

Closed
serverglen opened this issue Sep 23, 2020 · 3 comments
Closed

支持Weighted Random负载均衡策略 #1254

serverglen opened this issue Sep 23, 2020 · 3 comments

Comments

@serverglen
Copy link
Contributor

serverglen commented Sep 23, 2020

Is your feature request related to a problem? (你需要的功能是否与某个问题有关?)
支持Weighted Random负载均衡策略

Describe the solution you'd like (描述你期望的解决方法)
random在下游处理能力(cpu、内存等资源)大致相等的情况下能很好的工作,但是当下游处理能力相差较大的时候,如果还是按照完全随机的方法将流量转发给下游实例,就会导致下游某些实例负载高、某些实例负载低的情况;而Weighted Random就可以根基机器的资源配置来调整其被选择的权重。

Describe alternatives you've considered (描述你想到的折衷方案)

Additional context/screenshots (更多上下文/截图)

@gydong
Copy link
Contributor

gydong commented Sep 23, 2020

能具体描述一下你的应用场景吗?或者要解决什么问题

@hohodu
Copy link

hohodu commented Sep 24, 2020

wrr_lb 基于权重的负载均衡策略

@serverglen
Copy link
Contributor Author

serverglen commented Sep 24, 2020

wrr_lb 基于权重的负载均衡策略

这个我看到了,Weighted Random(wr)其实也是需要的

chenzhangyi added a commit that referenced this issue Jul 2, 2021
implement weighted randomized load balancer #1254
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