-
Notifications
You must be signed in to change notification settings - Fork 2.1k
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
Tablet throttler: non-PRIMARY tablets report back to PRIMARY throttler when they've been 'check'ed #13177
Closed
shlomi-noach
wants to merge
5
commits into
vitessio:main
from
planetscale:throttler-replica-propagate-check
Closed
Tablet throttler: non-PRIMARY tablets report back to PRIMARY throttler when they've been 'check'ed #13177
shlomi-noach
wants to merge
5
commits into
vitessio:main
from
planetscale:throttler-replica-propagate-check
Conversation
This file contains 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
…r when they've been 'check'ed Signed-off-by: Shlomi Noach <2607934+shlomi-noach@users.noreply.github.com>
shlomi-noach
requested review from
harshit-gangal,
systay and
rohit-nayak-ps
as code owners
May 28, 2023 14:11
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
|
vitess-bot
bot
added
NeedsDescriptionUpdate
The description is not clear or comprehensive enough, and needs work
NeedsIssue
A linked issue is missing for this Pull Request
NeedsWebsiteDocsUpdate
What it says
labels
May 28, 2023
Signed-off-by: Shlomi Noach <2607934+shlomi-noach@users.noreply.github.com>
Signed-off-by: Shlomi Noach <2607934+shlomi-noach@users.noreply.github.com>
Signed-off-by: Shlomi Noach <2607934+shlomi-noach@users.noreply.github.com>
Signed-off-by: Shlomi Noach <2607934+shlomi-noach@users.noreply.github.com>
Implicitly merged via #13195 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Labels
Component: TabletManager
Component: VReplication
NeedsDescriptionUpdate
The description is not clear or comprehensive enough, and needs work
NeedsIssue
A linked issue is missing for this Pull Request
NeedsWebsiteDocsUpdate
What it says
Type: Bug
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.
Description
#13175 describes a starvation scenario, where a streamer happens to read from a
REPLICA
and nothing on thePRIMARY
checks the throttler. This may happen when:--heartbeat_on_demand_duration
PRIMARY
and when:
MoveTables
, resharding)Up till now, throttler
check
s on the replica would not trigger on-demand heartbeats on the source cluster. This can lead to a "starvation" scenario, where the app is continuously throttled: nothing writes heartbeats on the source cluster. the checks on the replica do not trigger heartbeats, the throttler thinks there's lag, stalls reads, no writes taking place, the entire flow is at standstill.As of this PR, a replica's throttler service takes note when someone (other than the throttler mechanism itself) performs a
check
. It notes down "I have been recently checked". This note expires between1sec
and2sec
.As the
PRIMARY
throttler probes the replicas, it also collects this new information. If it sees a replica which has "just been recently throttled", then it asks for a heartbeat lease renewal.With this PR, any check on the throttler of any tablet in the cluster, will trigger a heartbeat lease renewal.
Related Issue(s)
Checklist
Deployment Notes