简体   繁体   English

远程服务器重新启动时,python客户端抛出错误“负载均衡策略grpc中断了呼叫”

[英]python client throw error “call dropped by load balancing policy grpc” when remote server restart

Python Client throw "call dropped by load balancing policy grpc", if remote server restart. 如果远程服务器重新启动,Python客户端将抛出“由负载平衡策略grpc放弃的呼叫”。 And connection never recovered afterwards. 之后连接再也没有恢复。

The problem is hard to constant reproduce. 这个问题很难持续再现。 But we confirmed that if a remote server restart, python client have chance starting send error message like this. 但是我们确认,如果远程服务器重新启动,python客户端就有机会开始发送这样的错误消息。

Other grpc client like java are working fine. 其他类似Java的grpc客户端也可以正常工作。 I searched online, and it seems related to load balancing policy. 我在网上搜索,它似乎与负载平衡策略有关。 And suggest to change from 'roundrobin' to 'pick first'. 并建议将“轮询”改为“优先选择”。 But I can not find where to add this args in python client. 但是我找不到在python客户端中添加此args的位置。

还原飞虎解决此问题

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM