-
Notifications
You must be signed in to change notification settings - Fork 199
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
如果要使用Ribbon来实现负载均衡,要重写哪个类 #16
Comments
GrpcRouteRoundRobinLbFactory.GrpcRoundRobinLoadBalancer 这是从注册中心拿到地址后负载均衡,真正实现选择合适的地址是GrpcRoutePicker,你可以扩展该个类,由Ribbon选择合适的地址返回给grpc |
好的,灰常感谢,gateway 重写,你有什么思路? |
gateway重写 |
1、2两点我也是这样想的,但是第三点很麻烦 |
也不会麻烦,目前zuul使用的是servlet来转发请求; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
如果要使用Ribbon来实现负载均衡,要重写哪个类
The text was updated successfully, but these errors were encountered: