-
Notifications
You must be signed in to change notification settings - Fork 4.4k
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
[NET-5455] Allow disabling request and idle timeouts with -1 in service router and resolver #19992
Conversation
"commonLbConfig": { | ||
"healthyPanicThreshold": {} | ||
}, | ||
"connectTimeout": "25s", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This line shows that the service resolver connect timeout works
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This db cluster was added because it has been added as a destination on the splitter
agent/xds/testdata/routes/connect-proxy-with-chain-and-splitter.latest.golden
Outdated
Show resolved
Hide resolved
"commonLbConfig": { | ||
"healthyPanicThreshold": {} | ||
}, | ||
"connectTimeout": "25s", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ingress cases are updated in the same way that connect proxy cases are
"route": { | ||
"cluster": "big-side.default.dc1.internal.11111111-2222-3333-4444-555555555555.consul", | ||
"idleTimeout": "0s", | ||
"timeout": "10s" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Shows disabling idle timeout and positive value for request timeout
"prefix": "/lil-bit-side" | ||
}, | ||
"route": { | ||
"cluster": "lil-bit-side.default.dc1.internal.11111111-2222-3333-4444-555555555555.consul" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Shows zero values for both timeouts result in them being unset in envoy
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nice! LGTM
Description
Adds the ability to disable request and idle timeouts in a service router and service resolver.
Previous Behavior:
user sets 0s or doesn’t set anything -> results in envoy defaults of 15s (requestTimeout) or 1hr (idleTimeout)
user sets >0s -> results in setting that same value in envoy
Behavior with this change:
user sets -1s -> results in setting 0s in envoy (disabling the timeout)
user sets 0s or doesn’t set anything -> result in envoy defaults of 15s or 1hr
user sets >0s -> results in setting that same value in envoy
Links
https://hashicorp.atlassian.net/browse/NET-5455
PR Checklist