Welcome! Log In Create A New Profile

Advanced

Re: gRPC reverse proxy closed tcp connection after 1000 rpc calls

April 11, 2019 09:13PM
server {
listen 8080 http2 reuseport;
server_name dev-status-service-svc-protocol-50051;
access_log off;
http2_max_requests 10000000;
http2_max_concurrent_streams 512;
grpc_socket_keepalive on;

location / {
grpc_pass grpc://test-status;

}
}
upstream test-status {
server 172.28.254.165:50051;
server 172.28.254.32:50051;
keepalive 32;
keepalive_requests 1000000;
}

I found that nginx can keep a connection with the client. but, there are still a lot of connections to the backend. so many ESTAB and TIME-WAIT .

When I use the client to connect directly to the backend service, it can maintain a connection without disconnecting.
Subject Author Posted

gRPC reverse proxy closed tcp connection after 1000 rpc calls

jetchars March 06, 2019 09:20AM

Re: gRPC reverse proxy closed tcp connection after 1000 rpc calls

Sergey Kandaurov March 06, 2019 10:24AM

Re: gRPC reverse proxy closed tcp connection after 1000 rpc calls

jetchars March 07, 2019 03:29AM

Re: gRPC reverse proxy closed tcp connection after 1000 rpc calls

hadals April 11, 2019 09:13PM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 253
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready