vttestserver: make tablet_refresh_interval configurable and reduce default value#11918
Merged
deepthi merged 11 commits intovitessio:mainfrom Dec 19, 2022
Merged
vttestserver: make tablet_refresh_interval configurable and reduce default value#11918deepthi merged 11 commits intovitessio:mainfrom
deepthi merged 11 commits intovitessio:mainfrom
Conversation
Signed-off-by: Rameez Sajwani <rameezwazirali@hotmail.com>
Contributor
Review ChecklistHello reviewers! 👋 Please follow this checklist when reviewing this Pull Request. General
If a new flag is being introduced:
If a workflow is added or modified:
Bug fixes
Non-trivial changes
New/Existing features
Backward compatibility
|
asura-asp
reviewed
Dec 9, 2022
go/vt/vttest/vtprocess.go
Outdated
| "--planner-version", args.PlannerVersion, | ||
|
|
||
| fmt.Sprintf("--tablet_refresh_interval=%v", args.TopoTabletRefreshInterval), | ||
| fmt.Sprintf("--leader_check_interval=%s", "3s"), |
There was a problem hiding this comment.
Should this be 5 instead of 3?
leaderCheckInterval = 5 * time.Second
Contributor
Author
There was a problem hiding this comment.
for vttestserver 5 seems to be high value. In order to make vttestserver fast, we can use 3 instead...
Signed-off-by: Rameez Sajwani <rameezwazirali@hotmail.com>
Signed-off-by: Rameez Sajwani <rameezwazirali@hotmail.com>
Signed-off-by: Rameez Sajwani <rameezwazirali@hotmail.com>
Signed-off-by: Rameez Sajwani <rameezwazirali@hotmail.com>
deepthi
reviewed
Dec 14, 2022
Collaborator
deepthi
left a comment
There was a problem hiding this comment.
Nice work. Mostly naming and config changes in my comments, but it is important to get them right.
shlomi-noach
approved these changes
Dec 15, 2022
Contributor
shlomi-noach
left a comment
There was a problem hiding this comment.
Please consider my inline comment
3 tasks
Signed-off-by: Rameez Sajwani <rameezwazirali@hotmail.com>
deepthi
reviewed
Dec 16, 2022
Signed-off-by: Rameez Sajwani <rameezwazirali@hotmail.com>
Signed-off-by: Rameez Sajwani <rameezwazirali@hotmail.com>
Signed-off-by: Rameez Sajwani <rameezwazirali@hotmail.com>
Signed-off-by: Rameez Sajwani <rameezwazirali@hotmail.com>
deepthi
reviewed
Dec 16, 2022
Signed-off-by: Rameez Sajwani <rameezwazirali@hotmail.com>
deepthi
approved these changes
Dec 19, 2022
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Signed-off-by: Rameez Sajwani rameezwazirali@hotmail.com
Description
This is an attempt to make vttestserver faster. Since its used for testing purpose we have seen people finding it slow especially while creating new database. It typically was taking more than 30second (on avg) to create empty database. This PR fixes the issue by reducing the value of.
refreshInterval
Even though we could have reduced the value of other flag
leaderCheckInterval
but we choose not to do that as it is going to be removed in subsequent refactoring PR by @shlomi-noach details here
Reducing these values might put more stress on Topo Server but for testing purpose we should be good. All the remaining details have been captured in the issue #11868
Testing
local testing using a script
I was able to verify that tablet_refresh_interval is pass all the way to vtcombo
setting refreshIntervale to 10 secs, I get following
Sample log Improvement
Related Issue(s)
closes #11868
Checklist
Deployment Notes