Welcome! Log In Create A New Profile

Advanced

nginx/backend keepalive question

Yu Zhao
April 30, 2014 05:10PM
Greetings!

I couldn't find my answer of following questions in the manual or somewhere
else. Your help is much appreciated!

1) does nginx manage frontend/nginx and nginx/backend connections
separately? In another word, will a nginx/backend connection be bond to a
certain frontend/nginx connection for the lifetime of the frontend/nginx
connection that is also kept-alive? My guess is it's not, nginx uses M:N
model which M is the number of frontend/nginx connections that may or may
not be kept-alive and N is the number of nginx/backend kept-alive
connections, and M connections share N connections.

2) If my guess is correct, how does nginx make sure the request/response
pair is not broken/mismatched? Nginx wil NOT send new request to a backend
until the response of the last one is received, right?

3) If I'm still on the right track: because nginx has to wait the response
from a backend connection, it cannot reuse it for next request. That's why
nginx still needs to open new connections to backend even there are
existing connections. But It will only do so when all the existing
connection are non-idle (i.e. responses from them haven't been fully
received).

Thank you!
_______________________________________________
nginx-devel mailing list
nginx-devel@nginx.org
http://mailman.nginx.org/mailman/listinfo/nginx-devel
Subject Author Views Posted

nginx/backend keepalive question

Yu Zhao 1008 April 30, 2014 05:10PM



Sorry, you do not have permission to post/reply in this forum.

Online Users

Guests: 211
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