Skip to content
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

slack-15.0: add topo/healthcheck flags to vttablet for txthrottler #560

Merged
merged 2 commits into from
Nov 19, 2024

Conversation

timvaillancourt
Copy link
Member

@timvaillancourt timvaillancourt commented Nov 15, 2024

Description

This PR adds important flags for tuning topo/discovery behaviour in vttablet, which will benefit txthrottler

With this PR I suggest we:

  1. Set --topo_read_concurrency to 4, equal to cells (from 32 😬)
    • Some functions start a worker per cell, so >= 4 is a good idea
  2. Increase --tablet_refresh_interval duration (currently 1m)
  3. Enable --tablet_refresh_known_tablets to cache records
  4. Set --healthcheck-dial-concurrency to 4-8-ish

cc @ejortegau

Related Issue(s)

Checklist

  • "Backport to:" labels have been added if this change should be back-ported
  • Tests were added or are not required
  • Did the new or modified tests pass consistently locally and on the CI
  • Documentation was added or is not required

Deployment Notes

Signed-off-by: Tim Vaillancourt <tim@timvaillancourt.com>
Signed-off-by: Tim Vaillancourt <tim@timvaillancourt.com>
@github-actions github-actions bot added this to the v15.0.5 milestone Nov 15, 2024
@@ -165,6 +165,7 @@ func init() {
}

servenv.OnParseFor("vtctld", registerWebUIFlags)
servenv.OnParseFor("vttablet", registerWebUIFlags)
Copy link
Member Author

Choose a reason for hiding this comment

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

registerWebUIFlags is a terrible func name, all but 1 flag are not web UI related. But wasn't me 🤦

@timvaillancourt timvaillancourt marked this pull request as ready for review November 15, 2024 16:51
@timvaillancourt timvaillancourt requested a review from a team as a code owner November 15, 2024 16:51
Copy link
Collaborator

@ejortegau ejortegau left a comment

Choose a reason for hiding this comment

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

LGTM

@timvaillancourt timvaillancourt merged commit 65cd79e into slack-15.0 Nov 19, 2024
195 checks passed
@timvaillancourt timvaillancourt deleted the vttablet-topo_read_concurrency.slack-15.0 branch November 19, 2024 21:46
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.

2 participants