-
Notifications
You must be signed in to change notification settings - Fork 3.6k
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
feat(http): add config parameters for HTTP timeouts #20971
Conversation
Flag: "http-bind-address", | ||
Default: o.HttpBindAddress, | ||
Desc: "bind address for the REST HTTP API", | ||
}, |
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.
Moved this to be with the other HTTP params
21dbeec
to
a076c87
Compare
Isn't IdleTimeout an implicit upper bound on the Read/Write timeouts? Also how does this interact with the query timeout? |
As I understand it, IdleTimeout is separate from read/write. It tracks the time between when a response is sent and the next request arrives. I left read&write timeouts un-set to avoid breaking existing workloads that write huge payloads / run long-running queries. I could set them to something huge like As far as I've seen, 2.x doesn't have a specific query-timeout (or any other request-specific timeouts). It would be good to restore those options at some point. |
I used these 2 posts as a reference for understanding Go's timeout parameters: |
You're right, I was looking at the wrong set of docs. |
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.
I agree explicit query timeouts would be nice - but we don't want too many knobs that interact in weird ways.
Closes #20769
I left the defaults for the read- and write-timeout parameters as 0, as I assume those will be workload-dependent.