Welcome! Log In Create A New Profile

Advanced

Is grpc keepalive supported ?

March 31, 2018 06:36AM
Hello everyone,
In the latest version(1.13.10)
Does ‘grpc_pass’ support the ‘keepalive’ option ?
My configuration is:

...
http {
...
upstream backend {
server localhost:50051;
keepalive 300;
}
server {
listen 80 http2;
location / {
grpc_pass grpc://backend;
}
...
}
...

It seems not work,
Because I can still see for every request from the front,
Nginx create a new tcp connection between nginx and backend every time.
Is there something wrong in my configuration file?
Or just it is not supported in this version ?

Thanks
Subject Author Posted

Is grpc keepalive supported ?

bcoz123 March 31, 2018 06:36AM

Re: Is grpc keepalive supported ?

Maxim Dounin March 31, 2018 06:26PM

Re: Is grpc keepalive supported ?

bcoz123 April 02, 2018 03:47AM

Re: Is grpc keepalive supported ?

Maxim Dounin April 02, 2018 08:52AM

Re: Is grpc keepalive supported ?

bcoz123 April 03, 2018 06:51AM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 78
Record Number of Users: 6 on February 13, 2018
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready