-
Notifications
You must be signed in to change notification settings - Fork 3.8k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
storage: add limits to skipped data iteration
Previously when iterating engine using MVCCIncrementalIterator caller could skip large amounts of non-matching data which would result in "unbounded" resource usage. This is becoming a problem for resource constrained clusters where low priority requests like export that are used by backups to interfere with high priority workloads. If we want to throttle backups we need to be able to limit how many underlying operations we want to perform per request. This change adds an optional iteration limit to the iterator. Once the limit is reached, iterator will return an error. Error will provide a resume key to continue iteration in next request. Release note: None
- Loading branch information
1 parent
4ff11bc
commit e18e0ff
Showing
5 changed files
with
340 additions
and
63 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
Oops, something went wrong.