Skip to content

Allow override of Vitess HTTP timeout#120

Merged
timvaillancourt merged 25 commits into
masterfrom
config-http-timeout
Apr 29, 2020
Merged

Allow override of Vitess HTTP timeout#120
timvaillancourt merged 25 commits into
masterfrom
config-http-timeout

Conversation

@timvaillancourt

@timvaillancourt timvaillancourt commented Apr 24, 2020

Copy link
Copy Markdown
Contributor

This PR adds the Vitess config param TimeoutSecs to Freno (default 5 seconds)

This new config param controls how long Freno will wait for the Vitess API to return tablet information

cc @drogart / @nickcanz / @gtowey

@nickcanz nickcanz left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Yep, this looks good!

Question: if you thought about adding the timeout to the clusterSettings.VitessSettings section of config instead and why you chose the top level config?

@timvaillancourt

Copy link
Copy Markdown
Contributor Author

Yep, this looks good!

Question: if you thought about adding the timeout to the clusterSettings.VitessSettings section of config instead and why you chose the top level config?

That's a good question @nickcanz. I think that's probably a better way to go. The only drawback is having to set the timeout per cluster, but someone is going to need that one day

@timvaillancourt

Copy link
Copy Markdown
Contributor Author

Done fiddling, re-requesting review from @nickcanz and @gtowey

@nickcanz nickcanz left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

👍 and I like the new signature for the ParseTablets function.

@timvaillancourt timvaillancourt temporarily deployed to production/role=mysqlutil&site=ash1-iad April 29, 2020 20:02 Inactive
@timvaillancourt timvaillancourt temporarily deployed to production/role=mysqlutil&site=ac4-iad April 29, 2020 20:04 Inactive
@timvaillancourt timvaillancourt merged commit 408e904 into master Apr 29, 2020
@timvaillancourt timvaillancourt deleted the config-http-timeout branch April 29, 2020 20:05
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.

3 participants