-
Notifications
You must be signed in to change notification settings - Fork 4.8k
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
connection_pool_per_downstream_connection - close upstream connection when downstream closes #37617
Comments
Original issue: #12370 where this feature was added. |
I read somewhere (unable to find the doc now) that the 8 minute number is coming from this calculation:
keepalive_time + keepalive_probes * keepalive_interval = 526 seconds → 8.77 minutes |
I think this logic may could be optimized. But I cannot think of anyone have related experience. Will mark this as help wanted first. |
Wait a minute, cannot the |
oh, I see. The other two fields are also configurable. Trying this, will update:
Btw the connections are always supposed to be 1:1, right? Or can the upstream pool have more than one connection for any given downstream connection? |
Title: Close upstream connection soon after downstream connection is closed.
Description:
Enabling connection_pool_per_downstream_connection increases the number of open connections on the server app side (which is expected).
What is worrisome though is that these connections remain open for much longer than needed and are closed by idleTimeout (which takes atleast 8 minutes? Even if tcp keepalive time it set really small)
In case of connection_pool_per_downstream_connection, we don't have to wait for idleTimeout once the downstream is disconnected since the mapping is 1:1.
The text was updated successfully, but these errors were encountered: