Skip to content

Commit

Permalink
backup: support rate limit and concurrency (#456)
Browse files Browse the repository at this point in the history
Signed-off-by: Neil Shen <[email protected]>
  • Loading branch information
overvenus authored Sep 10, 2019
1 parent f31789c commit 0e61b6f
Show file tree
Hide file tree
Showing 2 changed files with 135 additions and 55 deletions.
185 changes: 130 additions & 55 deletions pkg/backup/backup.pb.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

5 changes: 5 additions & 0 deletions proto/backup.proto
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,12 @@ message BackupRequest {
uint64 start_version = 4;
uint64 end_version = 5;

// The path where saves backup files.
string path = 6;
// The I/O rate limit for backup request.
uint64 rate_limit = 7;
// The concurrency for executing the backup request in every tikv node.
uint32 concurrency = 8;
}

message BackupResponse {
Expand Down

0 comments on commit 0e61b6f

Please sign in to comment.