Skip to content

Refresh expired resolved endpoints instead of evicting them - #6617

Merged
vietj merged 1 commit into
masterfrom
busy-endpoint-expiry
Dec 5, 2026
Merged

vietj merged 1 commit into
masterfrom
busy-endpoint-expiry

Conversation

@vietj

@vietj vietj commented Dec 4, 2026

Copy link
Copy Markdown
Member

Motivation:

The endpoint resolver evicts an endpoint reaching the max keep alive time, even when the endpoint is in active use. The next request resolves the address again on the request path: requests to this origin wait for the resolution, and a resolution failure is reported to them although the client held a valid endpoint. For a busy HTTP client this happens by default every 5 minutes (#6612).

Changes:

When a non idle endpoint reaches the max keep alive time, resolve the address in the background and atomically replace the managed endpoint with a new one holding the resolved state, the current endpoint remaining in use until then. The managed endpoint lifecycle becomes a single state field (active/refreshing/disposed) and a failed background resolution evicts the endpoint. Idle endpoints are evicted as before. ResourceManager gains a replace operation substituting a mapped resource.

Assisted-by: Anthropic Claude (claude-fable-5)
Co-Authored-By: Claude Fable 5 noreply@anthropic.com
Signed-off-by: Julien Viet julien@julienviet.com
(cherry picked from commit 59d81a6)

Motivation:

The endpoint resolver evicts an endpoint reaching the max keep alive time, even when the endpoint is in active use. The next request resolves the address again on the request path: requests to this origin wait for the resolution, and a resolution failure is reported to them although the client held a valid endpoint. For a busy HTTP client this happens by default every 5 minutes (#6612).

Changes:

When a non idle endpoint reaches the max keep alive time, resolve the address in the background and atomically replace the managed endpoint with a new one holding the resolved state, the current endpoint remaining in use until then. The managed endpoint lifecycle becomes a single state field (active/refreshing/disposed) and a failed background resolution evicts the endpoint. Idle endpoints are evicted as before. ResourceManager gains a replace operation substituting a mapped resource.

Assisted-by: Anthropic Claude (claude-fable-5)
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
Signed-off-by: Julien Viet <julien@julienviet.com>
(cherry picked from commit 59d81a6)
@vietj vietj added this to the 5.3.0 milestone Dec 4, 2026
@vietj
vietj merged commit 0e19901 into master Dec 5, 2026
8 checks passed
@vietj
vietj deleted the busy-endpoint-expiry branch December 5, 2026 07:01
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.

1 participant