Registry Mirror
Skip to content

Conversation

@mayawang

Copy link
Copy Markdown
Collaborator

release-0.1 ships the workload route at the 10s default, so any turn slower than about 15s (10s route plus the 5s parking budget in front of it) returns 504 upstream request timeout. The caller cannot safely retry: the actor received the turn and is still working, so a retry runs it twice.

This uncomments the --route-timeout=5m line already present in the manifest, directly under the comment describing the trap.

Not a cherry-pick of #1529. That PR raises the constant on main and removes this line as redundant. Here the constant stays at 10s, so the manifest line is the fix.

No other timing moves. On this branch drainTimeout() derives from the constant and deliberately ignores --route-timeout, so the drain sequence and terminationGracePeriodSeconds are unchanged. The route idle timeout resolves to 5m either way.

Does not close #1525. The other half, where an abandoned answer can surface to the next caller, is unaffected by a longer ceiling.

The workload route runs at the 10s default, so any turn slower than
about 15s returns a 504 the caller cannot safely retry: the actor
received the turn and is still working, so retrying runs it twice.
Uncomment the override already present in the manifest.

The drain sequence sizes itself from the constant rather than from this
flag, so shutdown timing and the pod grace period are unchanged.
@annapendleton

Copy link
Copy Markdown
Collaborator

Please make sure this is submitted into main branch prior to submission in release-0.1

we want to avoid divergence.

@mayawang

Copy link
Copy Markdown
Collaborator Author

Closing this. Main first is right, and if the mitigation for release-0.1 is documenting the manifest line rather than moving the default here, this PR is the wrong shape for it.

#1529 carries the main-side question. If we do end up backporting after that lands, the cherry-pick applies clean onto this branch and the router tests pass, I checked already.

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.

2 participants