• 设为首页
  • 点击收藏
  • 手机版
    手机扫一扫访问
    迪恩网络手机版
  • 关注官方公众号
    微信扫一扫关注
    公众号

go请求Nginx的Grpc反向代理后,出现code=Unavailabledesc=theconnectionisdraining ...

原作者: [db:作者] 来自: [db:来源] 收藏 邀请

I'm running some high volume gRPC requests through nginx and see a lot of this error: 'there is no connection available' and 'the connection is draining' when using nginx (linked issue grpc/grpc-go#2205)

The suggested workaround is When we set http2_max_requests 1000000, the possibility became very low. There are similar suggestions in the linked nginx ticket. https://trac.nginx.org/nginx/ticket/1250

The ConfigMap already supports http2-max-field-size and http2-max-header-size, so it should be relatively trivial to add support for http2-max-requests.
http://nginx.org/en/docs/http/ngx_http_v2_module.html#http2_max_requests

Honestly it'd probably be helpful for people to change the default when gRPC is enabled, but I understand that deviating from nginx defaults probably isn't the best choice for this repo. It'd be worth documenting with the gRPC example.

以上是网络上的找到,后来自己解决了:

只要把go grpc更新到最新的库版本,就可以解决这问题

 

来源:https://github.com/kubernetes/ingress-nginx/issues/3028


鲜花

握手

雷人

路过

鸡蛋
该文章已有0人参与评论

请发表评论

全部评论

专题导读
上一篇:
Win7配置Go环境发布时间:2022-07-10
下一篇:
掌握一门语言Go发布时间:2022-07-10
热门推荐
热门话题
阅读排行榜

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

在线客服(服务时间 9:00~18:00)

在线QQ客服
地址:深圳市南山区西丽大学城创智工业园
电邮:jeky_zhao#qq.com
移动电话:139-2527-9053

Powered by 互联科技 X3.4© 2001-2213 极客世界.|Sitemap