From 0e61b6f435c1d08d96020418bc7322ff83c66f10 Mon Sep 17 00:00:00 2001 From: Neil Shen Date: Tue, 10 Sep 2019 15:40:05 +0800 Subject: [PATCH] backup: support rate limit and concurrency (#456) Signed-off-by: Neil Shen --- pkg/backup/backup.pb.go | 185 ++++++++++++++++++++++++++++------------ proto/backup.proto | 5 ++ 2 files changed, 135 insertions(+), 55 deletions(-) diff --git a/pkg/backup/backup.pb.go b/pkg/backup/backup.pb.go index 7ecdba11e..fd9df2cbc 100644 --- a/pkg/backup/backup.pb.go +++ b/pkg/backup/backup.pb.go @@ -59,7 +59,7 @@ func (m *BackupMeta) Reset() { *m = BackupMeta{} } func (m *BackupMeta) String() string { return proto.CompactTextString(m) } func (*BackupMeta) ProtoMessage() {} func (*BackupMeta) Descriptor() ([]byte, []int) { - return fileDescriptor_backup_fbdde1adc108ad00, []int{0} + return fileDescriptor_backup_d207f25b061509a9, []int{0} } func (m *BackupMeta) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -153,7 +153,7 @@ func (m *File) Reset() { *m = File{} } func (m *File) String() string { return proto.CompactTextString(m) } func (*File) ProtoMessage() {} func (*File) Descriptor() ([]byte, []int) { - return fileDescriptor_backup_fbdde1adc108ad00, []int{1} + return fileDescriptor_backup_d207f25b061509a9, []int{1} } func (m *File) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -236,7 +236,7 @@ func (m *Schema) Reset() { *m = Schema{} } func (m *Schema) String() string { return proto.CompactTextString(m) } func (*Schema) ProtoMessage() {} func (*Schema) Descriptor() ([]byte, []int) { - return fileDescriptor_backup_fbdde1adc108ad00, []int{2} + return fileDescriptor_backup_d207f25b061509a9, []int{2} } func (m *Schema) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -291,7 +291,7 @@ func (m *ClusterIDError) Reset() { *m = ClusterIDError{} } func (m *ClusterIDError) String() string { return proto.CompactTextString(m) } func (*ClusterIDError) ProtoMessage() {} func (*ClusterIDError) Descriptor() ([]byte, []int) { - return fileDescriptor_backup_fbdde1adc108ad00, []int{3} + return fileDescriptor_backup_d207f25b061509a9, []int{3} } func (m *ClusterIDError) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -350,7 +350,7 @@ func (m *Error) Reset() { *m = Error{} } func (m *Error) String() string { return proto.CompactTextString(m) } func (*Error) ProtoMessage() {} func (*Error) Descriptor() ([]byte, []int) { - return fileDescriptor_backup_fbdde1adc108ad00, []int{4} + return fileDescriptor_backup_d207f25b061509a9, []int{4} } func (m *Error) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -528,12 +528,17 @@ func _Error_OneofSizer(msg proto.Message) (n int) { } type BackupRequest struct { - ClusterId uint64 `protobuf:"varint,1,opt,name=cluster_id,json=clusterId,proto3" json:"cluster_id,omitempty"` - StartKey []byte `protobuf:"bytes,2,opt,name=start_key,json=startKey,proto3" json:"start_key,omitempty"` - EndKey []byte `protobuf:"bytes,3,opt,name=end_key,json=endKey,proto3" json:"end_key,omitempty"` - StartVersion uint64 `protobuf:"varint,4,opt,name=start_version,json=startVersion,proto3" json:"start_version,omitempty"` - EndVersion uint64 `protobuf:"varint,5,opt,name=end_version,json=endVersion,proto3" json:"end_version,omitempty"` - Path string `protobuf:"bytes,6,opt,name=path,proto3" json:"path,omitempty"` + ClusterId uint64 `protobuf:"varint,1,opt,name=cluster_id,json=clusterId,proto3" json:"cluster_id,omitempty"` + StartKey []byte `protobuf:"bytes,2,opt,name=start_key,json=startKey,proto3" json:"start_key,omitempty"` + EndKey []byte `protobuf:"bytes,3,opt,name=end_key,json=endKey,proto3" json:"end_key,omitempty"` + StartVersion uint64 `protobuf:"varint,4,opt,name=start_version,json=startVersion,proto3" json:"start_version,omitempty"` + EndVersion uint64 `protobuf:"varint,5,opt,name=end_version,json=endVersion,proto3" json:"end_version,omitempty"` + // The path where saves backup files. + Path string `protobuf:"bytes,6,opt,name=path,proto3" json:"path,omitempty"` + // The I/O rate limit for backup request. + RateLimit uint64 `protobuf:"varint,7,opt,name=rate_limit,json=rateLimit,proto3" json:"rate_limit,omitempty"` + // The concurrency for executing the backup request in every tikv node. + Concurrency uint32 `protobuf:"varint,8,opt,name=concurrency,proto3" json:"concurrency,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` @@ -543,7 +548,7 @@ func (m *BackupRequest) Reset() { *m = BackupRequest{} } func (m *BackupRequest) String() string { return proto.CompactTextString(m) } func (*BackupRequest) ProtoMessage() {} func (*BackupRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_backup_fbdde1adc108ad00, []int{5} + return fileDescriptor_backup_d207f25b061509a9, []int{5} } func (m *BackupRequest) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -614,6 +619,20 @@ func (m *BackupRequest) GetPath() string { return "" } +func (m *BackupRequest) GetRateLimit() uint64 { + if m != nil { + return m.RateLimit + } + return 0 +} + +func (m *BackupRequest) GetConcurrency() uint32 { + if m != nil { + return m.Concurrency + } + return 0 +} + type BackupResponse struct { Error *Error `protobuf:"bytes,1,opt,name=error" json:"error,omitempty"` StartKey []byte `protobuf:"bytes,2,opt,name=start_key,json=startKey,proto3" json:"start_key,omitempty"` @@ -628,7 +647,7 @@ func (m *BackupResponse) Reset() { *m = BackupResponse{} } func (m *BackupResponse) String() string { return proto.CompactTextString(m) } func (*BackupResponse) ProtoMessage() {} func (*BackupResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_backup_fbdde1adc108ad00, []int{6} + return fileDescriptor_backup_d207f25b061509a9, []int{6} } func (m *BackupResponse) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -1108,6 +1127,16 @@ func (m *BackupRequest) MarshalTo(dAtA []byte) (int, error) { i = encodeVarintBackup(dAtA, i, uint64(len(m.Path))) i += copy(dAtA[i:], m.Path) } + if m.RateLimit != 0 { + dAtA[i] = 0x38 + i++ + i = encodeVarintBackup(dAtA, i, uint64(m.RateLimit)) + } + if m.Concurrency != 0 { + dAtA[i] = 0x40 + i++ + i = encodeVarintBackup(dAtA, i, uint64(m.Concurrency)) + } if m.XXX_unrecognized != nil { i += copy(dAtA[i:], m.XXX_unrecognized) } @@ -1345,6 +1374,12 @@ func (m *BackupRequest) Size() (n int) { if l > 0 { n += 1 + l + sovBackup(uint64(l)) } + if m.RateLimit != 0 { + n += 1 + sovBackup(uint64(m.RateLimit)) + } + if m.Concurrency != 0 { + n += 1 + sovBackup(uint64(m.Concurrency)) + } if m.XXX_unrecognized != nil { n += len(m.XXX_unrecognized) } @@ -2373,6 +2408,44 @@ func (m *BackupRequest) Unmarshal(dAtA []byte) error { } m.Path = string(dAtA[iNdEx:postIndex]) iNdEx = postIndex + case 7: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field RateLimit", wireType) + } + m.RateLimit = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowBackup + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.RateLimit |= (uint64(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + case 8: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field Concurrency", wireType) + } + m.Concurrency = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowBackup + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.Concurrency |= (uint32(b) & 0x7F) << shift + if b < 0x80 { + break + } + } default: iNdEx = preIndex skippy, err := skipBackup(dAtA[iNdEx:]) @@ -2677,46 +2750,48 @@ var ( ErrIntOverflowBackup = fmt.Errorf("proto: integer overflow") ) -func init() { proto.RegisterFile("backup.proto", fileDescriptor_backup_fbdde1adc108ad00) } - -var fileDescriptor_backup_fbdde1adc108ad00 = []byte{ - // 598 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xac, 0x54, 0xcf, 0x6e, 0xd3, 0x4e, - 0x10, 0xee, 0x26, 0xb6, 0x93, 0x4c, 0x6c, 0xb7, 0xbf, 0x55, 0x7f, 0xc5, 0x2a, 0x22, 0x54, 0xae, - 0x04, 0x39, 0x19, 0x94, 0x1e, 0xb9, 0x85, 0x16, 0x51, 0x55, 0x5c, 0x16, 0x89, 0x6b, 0xe5, 0x3f, - 0x4b, 0x6a, 0x39, 0xb1, 0xcd, 0x7a, 0x63, 0x29, 0x4f, 0xc1, 0x95, 0x47, 0xe0, 0xc0, 0x33, 0x70, - 0xe6, 0xc0, 0x81, 0x23, 0x47, 0x14, 0x5e, 0x83, 0x03, 0xf2, 0xac, 0x37, 0x55, 0x40, 0x50, 0x84, - 0x38, 0x79, 0xe6, 0x9b, 0x99, 0xdd, 0xef, 0x9b, 0x99, 0x35, 0xd8, 0x51, 0x18, 0x67, 0xcb, 0x32, - 0x28, 0x45, 0x21, 0x0b, 0x6a, 0x29, 0xef, 0xd0, 0xc9, 0x6a, 0x51, 0xc6, 0x65, 0xa4, 0xe0, 0x43, - 0x87, 0x0b, 0x51, 0x88, 0x8d, 0xbb, 0x3f, 0x2b, 0x66, 0x05, 0x9a, 0x0f, 0x1a, 0xab, 0x45, 0x77, - 0xc5, 0xb2, 0x92, 0x68, 0x2a, 0xc0, 0xff, 0x46, 0x00, 0xa6, 0x78, 0xde, 0x33, 0x2e, 0x43, 0x7a, - 0x07, 0x20, 0x9e, 0x2f, 0x2b, 0xc9, 0xc5, 0x65, 0x9a, 0x78, 0xe4, 0x88, 0x8c, 0x0d, 0x36, 0x68, - 0x91, 0xf3, 0x84, 0xde, 0x87, 0x5d, 0x1d, 0xae, 0xb9, 0xa8, 0xd2, 0x22, 0xf7, 0x3a, 0x47, 0x64, - 0x3c, 0x60, 0x6e, 0x0b, 0xbf, 0x50, 0x28, 0xa5, 0x60, 0x94, 0xa1, 0xbc, 0xf2, 0xba, 0x18, 0x45, - 0x9b, 0xfa, 0x60, 0xb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ad, 0x47, - 0xe4, 0xcb, 0x7a, 0x44, 0xde, 0x7c, 0x1d, 0xed, 0xc0, 0x5e, 0x21, 0x66, 0x81, 0x4c, 0xb3, 0x3a, - 0xc8, 0x6a, 0xfc, 0x69, 0x45, 0x16, 0x7e, 0x4e, 0xbe, 0x07, 0x00, 0x00, 0xff, 0xff, 0xcb, 0xbe, - 0xa5, 0x18, 0x18, 0x05, 0x00, 0x00, +func init() { proto.RegisterFile("backup.proto", fileDescriptor_backup_d207f25b061509a9) } + +var fileDescriptor_backup_d207f25b061509a9 = []byte{ + // 628 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xac, 0x54, 0xc1, 0x6e, 0xd3, 0x40, + 0x10, 0xed, 0x26, 0xb6, 0x93, 0x4c, 0x9c, 0xb4, 0xac, 0x4a, 0xb1, 0x8a, 0x1a, 0x22, 0x57, 0x82, + 0x9c, 0x0c, 0x4a, 0x8f, 0xdc, 0x42, 0x8b, 0xa8, 0x0a, 0x97, 0x45, 0xe2, 0x5a, 0x39, 0xf6, 0x92, + 0x5a, 0x4e, 0x6c, 0xb3, 0xde, 0x58, 0xca, 0x57, 0x70, 0xe5, 0x13, 0x38, 0xf0, 0x21, 0x1c, 0x38, + 0x70, 0xe4, 0x88, 0xca, 0x6f, 0x20, 0x81, 0x76, 0xd6, 0x1b, 0x1a, 0x10, 0x14, 0x21, 0x4e, 0x9e, + 0x79, 0x33, 0xb3, 0xfb, 0x66, 0xe6, 0xad, 0xc1, 0x9d, 0x86, 0x51, 0xba, 0x2c, 0x82, 0x42, 0xe4, + 0x32, 0xa7, 0x8e, 0xf6, 0xf6, 0x7b, 0x69, 0x25, 0x8a, 0xa8, 0x98, 0x6a, 0x78, 0xbf, 0xc7, 0x85, + 0xc8, 0xc5, 0xda, 0xdd, 0x9d, 0xe5, 0xb3, 0x1c, 0xcd, 0xfb, 0xca, 0xaa, 0xd1, 0x6d, 0xb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48, 0x07, 0x00, 0x22, 0x94, 0xfc, + 0x7c, 0x9e, 0x2c, 0x12, 0xe9, 0xb5, 0x34, 0x5d, 0x85, 0x3c, 0x55, 0x00, 0x1d, 0x42, 0x37, 0xca, + 0x33, 0xbd, 0xd6, 0x68, 0xe5, 0xb5, 0x51, 0xbc, 0x57, 0x21, 0xff, 0x35, 0x81, 0xbe, 0x99, 0x40, + 0x59, 0xe4, 0x59, 0xc9, 0xe9, 0x21, 0xd8, 0x7a, 0x98, 0x04, 0x87, 0xd9, 0x33, 0xcb, 0xc3, 0xe1, + 0x31, 0x1d, 0xfb, 0xc7, 0x41, 0xfc, 0xc5, 0xbb, 0x1f, 0x9f, 0x80, 0xa3, 0x09, 0xd1, 0x87, 0x50, + 0xff, 0xdf, 0xe8, 0x4d, 0x93, 0xb8, 0xb1, 0xac, 0xfd, 0xbd, 0x9f, 0x61, 0xdd, 0x81, 0xbf, 0xf5, + 0x80, 0x4c, 0xee, 0x7e, 0x7a, 0xdb, 0x26, 0xef, 0x2f, 0x07, 0xe4, 0xe3, 0xe5, 0x80, 0x7c, 0xbe, + 0x1c, 0x90, 0x37, 0x5f, 0x06, 0x5b, 0xb0, 0x93, 0x8b, 0x59, 0x20, 0x93, 0xb4, 0x0a, 0xd2, 0x0a, + 0xff, 0x7a, 0x53, 0x07, 0x3f, 0x47, 0xdf, 0x03, 0x00, 0x00, 0xff, 0xff, 0x75, 0x90, 0x79, 0x7e, + 0x59, 0x05, 0x00, 0x00, } diff --git a/proto/backup.proto b/proto/backup.proto index 366789284..d81d29711 100644 --- a/proto/backup.proto +++ b/proto/backup.proto @@ -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 {