-
-
Notifications
You must be signed in to change notification settings - Fork 1.4k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[IMPROVED] Various stream catchup improvements (#5454)
Various improvements to catchup logistics. 1. Make sure to register our sync sub earlier to avoid missing an early request for catchup on a scaleup. 2. Make sure we send trailing delete range blocks to avound getting stuck during catchup. 3. When parallel catchups running make sure to periodically check to see if we can send next batch since we could be blocked on others and not ourselves. 4. When catching up a stream that has a large number of interior deletes use LoadNextMsg() to more efficiently skip over large gaps. 5. When resuming apply queues in raft layer do not unpause our state until after processing to avoid possible elections under heavy load. 6. when syncing deleted blocks from snapshots only consider those applicable to our state. Signed-off-by: Derek Collison <[email protected]> --------- Signed-off-by: Derek Collison <[email protected]>
- Loading branch information
1 parent
57e780f
commit e59f96f
Showing
7 changed files
with
246 additions
and
39 deletions.
There are no files selected for viewing
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
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
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
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
Oops, something went wrong.