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

请问实现了客户端的负载均衡和故障转移吗? #181

Open
stefanlei opened this issue Nov 16, 2020 · 3 comments
Open

请问实现了客户端的负载均衡和故障转移吗? #181

stefanlei opened this issue Nov 16, 2020 · 3 comments

Comments

@stefanlei
Copy link

gRPC 官方的 Java 和 Go 版本,提供了接口,Python 没有提供接口。不知道 sea 有没有解决呢?

@fenngwd
Copy link
Contributor

fenngwd commented Jun 1, 2021

你是指哪个接口?

@stefanlei
Copy link
Author

stefanlei commented Jun 6, 2021

你是指哪个接口?

Java 里面的这两个接口 loadBalancerFactory 和 nameResolverFactory。主要用于自定义负载均衡策略,以及故障转移。
官方的 Python 版本,没有接口提供,只有简单的设置。

负载均衡

channel = grpc.insecure_channel(" ipv4:127.0.0.1:8888,127.0.0.1:9999")

@fenngwd
Copy link
Contributor

fenngwd commented Jun 18, 2021

没有实现对应功能。在扇贝内部,使用了Sidecar模式做负载均衡。因此,在语言库中就没有再支持软负载均衡。

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