Skip to content

Set a keepalive_connections_max_age to expire excessively long running connections.#695

Open
jtmkrueger wants to merge 1 commit intomainfrom
686-keepalive-max-age
Open

Set a keepalive_connections_max_age to expire excessively long running connections.#695
jtmkrueger wants to merge 1 commit intomainfrom
686-keepalive-max-age

Conversation

@jtmkrueger
Copy link
Collaborator

resolves 18F/api.data.gov#686

The actual change here is pretty minimal, but I put in a test to document what's going on. By setting keepalive_connections_max_age we just close connections after they've been hanging around for the time limit. I went with 30 minutes but that's an easy change if you're thinking it needs to be longer or shorter.

@jtmkrueger jtmkrueger requested a review from GUI February 6, 2026 16:03
end

def test_max_connection_age_closes_connections
envoy_upstream_keepalive_connections_max_age = 5
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Set this super short in the test so it doesn't clog up CI

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Tune API backend keepalive settings for misbehaving API backends

1 participant