-
Notifications
You must be signed in to change notification settings - Fork 34
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(restore): control rate limit during download (#4070)
* refactor(backup): extract DCLimit to backupspec As we want to add rate limit to restore, we should reuse the code already present in the backup pkg. This commit also makes functions generic. * feat(scyllaclient): add RcloneGetBandwidthLimit It's useful for testing purposes. * feat(restore): add RateLimit to Target This is the first step to control rate limit in the context of restore. * feat(scyllaclient): set rate limit in RcloneCopyPaths This commit requires changes in the usage of RcloneCopyPaths in restore pkg. * feat(command/restore): add --rate-limit flag This commit allows user to control rclone server rate limit used during restore. * feat(scyllaclient): set rate limit in rcloneMoveOrCopyDir This commit requires changes in the usage of RcloneMoveDir in backup pkg. * feat(restore_test): extend TestRestoreTablesPreparationIntegration with rate limit This way this test also checks rate limit before and after backup. It also checks transfers before, in the middle, when paused, when resumed, and after restore. This commit also extends the test to change transfers and rate limit values when restore is paused, so that it validates that they are correctly re-set during restore data stage.
- Loading branch information
1 parent
2099e2e
commit 8af93cf
Showing
23 changed files
with
335 additions
and
215 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
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.