-
Notifications
You must be signed in to change notification settings - Fork 3.8k
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
distsql: add flow setup cluster settings and improve debuggability #27404
Conversation
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.
Reviewable status: complete! 0 of 0 LGTMs obtained
pkg/sql/distsqlrun/flow_scheduler.go, line 77 at r1 (raw file):
fs.mu.queue = list.New() settingMaxRunningFlows.SetOnChange(&settings.SV, func() { fs.maxRunningFlows = int(settingMaxRunningFlows.Get(&settings.SV))
Isn't there a race here?
This gives users the ability to increase the default flow stream timeout to avoid inbound stream connection errors as well as controlling the maximum number of running flows on a node. Release note (sql change): Add sql.distsql.{flow_stream_timeout, max_running_flows} cluster settings to fine tune flow setup
Release note: None
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.
Reviewable status: complete! 0 of 0 LGTMs obtained
pkg/sql/distsqlrun/flow_scheduler.go, line 77 at r1 (raw file):
Previously, RaduBerinde wrote…
Isn't there a race here?
Yup, thanks for catching!
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.
Reviewable status: complete! 0 of 0 LGTMs obtained (and 1 stale)
bors r+ |
27404: distsql: add flow setup cluster settings and improve debuggability r=asubiotto a=asubiotto This change adds flow setup-related cluster settings to give users the flexibility of increasing the default flow stream timeout to avoid inbound stream connection errors as well as controlling the maximum number of running flows on a node. Log messages have also been added to the flow scheduler to provide more insight into its operations and improve debugging. Co-authored-by: Alfonso Subiotto Marqués <[email protected]>
Build succeeded |
This change adds flow setup-related cluster settings to give users the flexibility of increasing the default flow stream timeout to avoid inbound stream connection errors as well as controlling the maximum number of running flows on a node. Log messages have also been added to the flow scheduler to provide more insight into its operations and improve debugging.