Skip to content

router: add per_try_idle_timeout configuration#18078

Merged
mattklein123 merged 4 commits intomainfrom
per_try_idle_timeout
Sep 14, 2021
Merged

router: add per_try_idle_timeout configuration#18078
mattklein123 merged 4 commits intomainfrom
per_try_idle_timeout

Conversation

@mattklein123
Copy link
Copy Markdown
Member

Allows ensuring continual progress of individual request attempts.

Risk Level: Low when not using feature. Medium when using feature. Timeouts are scary.
Testing: Unit and integration.
Docs Changes: Added
Release Notes: Added
Platform Specific Features: N/A

Allows ensuring continual progress of individual request attempts.

Signed-off-by: Matt Klein <mklein@lyft.com>
@repokitteh-read-only
Copy link
Copy Markdown

CC @envoyproxy/api-shepherds: Your approval is needed for changes made to api/envoy/.
envoyproxy/api-shepherds assignee is @adisuissa
CC @envoyproxy/api-watchers: FYI only for changes made to api/envoy/.

🐱

Caused by: #18078 was opened by mattklein123.

see: more, trace.

Signed-off-by: Matt Klein <mklein@lyft.com>
Copy link
Copy Markdown
Contributor

@alyssawilk alyssawilk left a comment

Choose a reason for hiding this comment

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

Looks good overall! Just 2 nits/questions


void UpstreamRequest::onPerTryIdleTimeout() {
ENVOY_STREAM_LOG(debug, "upstream per try idle timeout", *parent_.callbacks());
stream_info_.setResponseFlag(StreamInfo::ResponseFlag::StreamIdleTimeout);
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

If there's 2 tries (hedging or retries) but we successfully proxy, should the response flag be set?

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

This is stream info on the upstream request (for upstream logs), not the downstream stream info.

Copy link
Copy Markdown
Contributor

@adisuissa adisuissa left a comment

Choose a reason for hiding this comment

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

Thanks!
Left a couple of API comments

Signed-off-by: Matt Klein <mklein@lyft.com>
@mattklein123 mattklein123 merged commit b500a0a into main Sep 14, 2021
@mattklein123 mattklein123 deleted the per_try_idle_timeout branch September 14, 2021 22:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants