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 intovitessio:mainfrom
Closed
Conversation
…r when they've been 'check'ed Signed-off-by: Shlomi Noach <2607934+shlomi-noach@users.noreply.github.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
|
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>
Contributor
Author
|
Implicitly merged via #13195 |
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.
Description
#13175 describes a starvation scenario, where a streamer happens to read from a
REPLICAand nothing on thePRIMARYchecks the throttler. This may happen when:--heartbeat_on_demand_durationPRIMARYand when:
MoveTables, resharding)Up till now, throttler
checks 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 between1secand2sec.As the
PRIMARYthrottler 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