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

【请求addressList顺序】client 中的 addressList 优先级顺序问题 #96

Open
tyouzu1 opened this issue Apr 20, 2022 · 1 comment

Comments

@tyouzu1
Copy link

tyouzu1 commented Apr 20, 2022

需求:希望有 addressList 固定顺序,或者是有个类似优先级的匹配逻辑、

哈喽,想问下,client 这里的 addressList 为什么要sort排序,默认的roundRobin看着好像也有排序。那现在还有办法【根据addressList中的数据排序】进行优先级排序吗,

@fengmk2

@fengmk2
Copy link
Contributor

fengmk2 commented Apr 20, 2022

exports.shuffle = arr => {

默认是打乱,是为了负载尽可能均衡。
你可以 pull request 来实现你想要的能力。

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

2 participants