-
Notifications
You must be signed in to change notification settings - Fork 2.6k
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
help request: proxy grpc sometimes occurs 502 #8166
Comments
|
@tzssangglass
` upstream config:
` the route and the bound upstream not occurs 502 while proxy HTTP1.1/ requests |
Verify that it appears with this distinction 502. |
I do not think so. because we add host in mate rule. also apisix config.yaml open http2 port. we send grpc request with http2 port in apisix. |
or disable |
I have tried this. the problem also exists. I will continue to solve this problem. if I find the reason which caused the problem. I will comment it in here. |
I thought this would be helpful to you: argoproj/argo-cd#3896 and kubernetes/ingress-nginx#4095 Is your upstream service handling both grpc requests and http/1.1 requests on the same port? |
I will have a look. thank you very much. |
Yes. our upstream service handling both grpc requests and http/1.1 requests on the same port. |
I find as in this issue said. keepalive might be the reason which caused the problem. |
Maybe APISIX needs to add the upstream scheme as a component of the keepalive pool name. |
+1 |
+1, full of expectation. So what's the plannning that APISIX will support this issue? |
I'll fix it soon. |
Co-authored-by: soulbird <[email protected]> Fixes #8166
Co-authored-by: soulbird <[email protected]> Fixes apache#8166
Co-authored-by: soulbird <[email protected]> Fixes #8166
Description
hello:
we have two apisix env(such as A and B), when we use apisix to proxy grpc service, A always OK, but in B, when you first time send a request. It returns 502, but the following request all returns 200. and I also found that when we send a request in B, after a while,send request again, then the first request always return 502, the following return 200. I am confused of such thing. because A and B env apisix version and depends are same.
when 502 occurs. the following error occurs:
`
`
I want to get some idea from you. what causes it and how to solve it.
hope yours. thanks.
Environment
apisix version
): v2.12.0uname -a
): the problem env is :Linux 3.10.0-1160.36.2.el7.x86_64. the good env is: Linux 3.10.0-957.21.3.el7.x86_64openresty -V
ornginx -V
): nginx version: openresty/1.21.4.1curl http://127.0.0.1:9090/v1/server_info
): 3.5.0luarocks --version
):The text was updated successfully, but these errors were encountered: