SeaweedFS is a distributed storage system for object storage (S3), file systems, Iceberg table buckets, and Lance vector buckets, designed to handle billions of files with O(1) disk access and effortless horizontal scaling.
Go blob-storagecloud-drivedistributed-file-systemdistributed-storageerasure-codingfusehadoop-hdfshdfskuberneteslancelancedbobject-storageposixs3s3-storageseaweedfstiered-file-systemvector-search
tiered storage: can copy to s3, read from s3
Chris Luec8de250e28b
diff --git a/weed/pb/volume_server.proto b/weed/pb/volume_server.protoindex 94af4bea07..81c9901b93 100644--- a/weed/pb/volume_server.proto+++ b/weed/pb/volume_server.proto@@ -68,7 +68,7 @@ service VolumeServer {}// tiered storage- rpc VolumeTierCopyDatToRemote (VolumeTierCopyDatToRemoteRequest) returns (VolumeTierCopyDatToRemoteResponse) {+ rpc VolumeTierCopyDatToRemote (VolumeTierCopyDatToRemoteRequest) returns (stream VolumeTierCopyDatToRemoteResponse) {}// query@@ -329,18 +329,27 @@ message MemStatus {}// tired storage on volume servers-message TieredVolume {+message RemoteFile {string backend_type = 1;- string backend_name = 2;- uint64 version = 3;+ string backend_id = 2;+ string key = 3;+ uint64 offset = 4;+ uint64 file_size = 5;+ uint64 modified_time = 6;+}+message VolumeTierInfo {+ repeated RemoteFile files = 1;}message VolumeTierCopyDatToRemoteRequest {uint32 volume_id = 1;string collection = 2;string destination_backend_name = 3;+ bool keep_local_dat_file = 4;}message VolumeTierCopyDatToRemoteResponse {+ int64 processed = 1;+ float processedPercentage = 2;}// select on volume serversdiff --git a/weed/pb/volume_server_pb/volume_server.pb.go b/weed/pb/volume_server_pb/volume_server.pb.goindex 29d624209c..0303106442 100644--- a/weed/pb/volume_server_pb/volume_server.pb.go+++ b/weed/pb/volume_server_pb/volume_server.pb.go@@ -65,7 +65,8 @@ It has these top-level messages:ReadVolumeFileStatusResponseDiskStatusMemStatus- TieredVolume+ RemoteFile+ VolumeTierInfoVolumeTierCopyDatToRemoteRequestVolumeTierCopyDatToRemoteResponseQueryRequest@@ -1398,49 +1399,90 @@ func (m *MemStatus) GetStack() uint64 {}// tired storage on volume servers-type TieredVolume struct {- BackendType string `protobuf:"bytes,1,opt,name=backend_type,json=backendType" json:"backend_type,omitempty"`- BackendName string `protobuf:"bytes,2,opt,name=backend_name,json=backendName" json:"backend_name,omitempty"`- Version uint64 `protobuf:"varint,3,opt,name=version" json:"version,omitempty"`+type RemoteFile struct {+ BackendType string `protobuf:"bytes,1,opt,name=backend_type,json=backendType" json:"backend_type,omitempty"`+ BackendId string `protobuf:"bytes,2,opt,name=backend_id,json=backendId" json:"backend_id,omitempty"`+ Key string `protobuf:"bytes,3,opt,name=key" json:"key,omitempty"`+ Offset uint64 `protobuf:"varint,4,opt,name=offset" json:"offset,omitempty"`+ FileSize uint64 `protobuf:"varint,5,opt,name=file_size,json=fileSize" json:"file_size,omitempty"`+ ModifiedTime uint64 `protobuf:"varint,6,opt,name=modified_time,json=modifiedTime" json:"modified_time,omitempty"`}-func (m *TieredVolume) Reset() { *m = TieredVolume{} }-func (m *TieredVolume) String() string { return proto.CompactTextString(m) }-func (*TieredVolume) ProtoMessage() {}-func (*TieredVolume) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{56} }+func (m *RemoteFile) Reset() { *m = RemoteFile{} }+func (m *RemoteFile) String() string { return proto.CompactTextString(m) }+func (*RemoteFile) ProtoMessage() {}+func (*RemoteFile) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{56} }-func (m *TieredVolume) GetBackendType() string {+func (m *RemoteFile) GetBackendType() string {if m != nil {return m.BackendType}return ""}-func (m *TieredVolume) GetBackendName() string {+func (m *RemoteFile) GetBackendId() string {if m != nil {- return m.BackendName+ return m.BackendId}return ""}-func (m *TieredVolume) GetVersion() uint64 {+func (m *RemoteFile) GetKey() string {if m != nil {- return m.Version+ return m.Key+ }+ return ""+}++func (m *RemoteFile) GetOffset() uint64 {+ if m != nil {+ return m.Offset+ }+ return 0+}++func (m *RemoteFile) GetFileSize() uint64 {+ if m != nil {+ return m.FileSize+ }+ return 0+}++func (m *RemoteFile) GetModifiedTime() uint64 {+ if m != nil {+ return m.ModifiedTime}return 0}+type VolumeTierInfo struct {+ Files []*RemoteFile `protobuf:"bytes,1,rep,name=files" json:"files,omitempty"`+}++func (m *VolumeTierInfo) Reset() { *m = VolumeTierInfo{} }+func (m *VolumeTierInfo) String() string { return proto.CompactTextString(m) }+func (*VolumeTierInfo) ProtoMessage() {}+func (*VolumeTierInfo) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{57} }++func (m *VolumeTierInfo) GetFiles() []*RemoteFile {+ if m != nil {+ return m.Files+ }+ return nil+}+type VolumeTierCopyDatToRemoteRequest struct {VolumeId uint32 `protobuf:"varint,1,opt,name=volume_id,json=volumeId" json:"volume_id,omitempty"`Collection string `protobuf:"bytes,2,opt,name=collection" json:"collection,omitempty"`DestinationBackendName string `protobuf:"bytes,3,opt,name=destination_backend_name,json=destinationBackendName" json:"destination_backend_name,omitempty"`+ KeepLocalDatFile bool `protobuf:"varint,4,opt,name=keep_local_dat_file,json=keepLocalDatFile" json:"keep_local_dat_file,omitempty"`}func (m *VolumeTierCopyDatToRemoteRequest) Reset() { *m = VolumeTierCopyDatToRemoteRequest{} }func (m *VolumeTierCopyDatToRemoteRequest) String() string { return proto.CompactTextString(m) }func (*VolumeTierCopyDatToRemoteRequest) ProtoMessage() {}func (*VolumeTierCopyDatToRemoteRequest) Descriptor() ([]byte, []int) {- return fileDescriptor0, []int{57}+ return fileDescriptor0, []int{58}}func (m *VolumeTierCopyDatToRemoteRequest) GetVolumeId() uint32 {@@ -1464,14 +1506,37 @@ func (m *VolumeTierCopyDatToRemoteRequest) GetDestinationBackendName() string {return ""}+func (m *VolumeTierCopyDatToRemoteRequest) GetKeepLocalDatFile() bool {+ if m != nil {+ return m.KeepLocalDatFile+ }+ return false+}+type VolumeTierCopyDatToRemoteResponse struct {+ Processed int64 `protobuf:"varint,1,opt,name=processed" json:"processed,omitempty"`+ ProcessedPercentage float32 `protobuf:"fixed32,2,opt,name=processedPercentage" json:"processedPercentage,omitempty"`}func (m *VolumeTierCopyDatToRemoteResponse) Reset() { *m = VolumeTierCopyDatToRemoteResponse{} }func (m *VolumeTierCopyDatToRemoteResponse) String() string { return proto.CompactTextString(m) }func (*VolumeTierCopyDatToRemoteResponse) ProtoMessage() {}func (*VolumeTierCopyDatToRemoteResponse) Descriptor() ([]byte, []int) {- return fileDescriptor0, []int{58}+ return fileDescriptor0, []int{59}+}++func (m *VolumeTierCopyDatToRemoteResponse) GetProcessed() int64 {+ if m != nil {+ return m.Processed+ }+ return 0+}++func (m *VolumeTierCopyDatToRemoteResponse) GetProcessedPercentage() float32 {+ if m != nil {+ return m.ProcessedPercentage+ }+ return 0}// select on volume servers@@ -1486,7 +1551,7 @@ type QueryRequest struct {func (m *QueryRequest) Reset() { *m = QueryRequest{} }func (m *QueryRequest) String() string { return proto.CompactTextString(m) }func (*QueryRequest) ProtoMessage() {}-func (*QueryRequest) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{59} }+func (*QueryRequest) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{60} }func (m *QueryRequest) GetSelections() []string {if m != nil {@@ -1532,7 +1597,7 @@ type QueryRequest_Filter struct {func (m *QueryRequest_Filter) Reset() { *m = QueryRequest_Filter{} }func (m *QueryRequest_Filter) String() string { return proto.CompactTextString(m) }func (*QueryRequest_Filter) ProtoMessage() {}-func (*QueryRequest_Filter) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{59, 0} }+func (*QueryRequest_Filter) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{60, 0} }func (m *QueryRequest_Filter) GetField() string {if m != nil {@@ -1567,7 +1632,7 @@ func (m *QueryRequest_InputSerialization) Reset() { *m = QueryRequest_Infunc (m *QueryRequest_InputSerialization) String() string { return proto.CompactTextString(m) }func (*QueryRequest_InputSerialization) ProtoMessage() {}func (*QueryRequest_InputSerialization) Descriptor() ([]byte, []int) {- return fileDescriptor0, []int{59, 1}+ return fileDescriptor0, []int{60, 1}}func (m *QueryRequest_InputSerialization) GetCompressionType() string {@@ -1615,7 +1680,7 @@ func (m *QueryRequest_InputSerialization_CSVInput) Reset() {func (m *QueryRequest_InputSerialization_CSVInput) String() string { return proto.CompactTextString(m) }func (*QueryRequest_InputSerialization_CSVInput) ProtoMessage() {}func (*QueryRequest_InputSerialization_CSVInput) Descriptor() ([]byte, []int) {- return fileDescriptor0, []int{59, 1, 0}+ return fileDescriptor0, []int{60, 1, 0}}func (m *QueryRequest_InputSerialization_CSVInput) GetFileHeaderInfo() string {@@ -1677,7 +1742,7 @@ func (m *QueryRequest_InputSerialization_JSONInput) Reset() {func (m *QueryRequest_InputSerialization_JSONInput) String() string { return proto.CompactTextString(m) }func (*QueryRequest_InputSerialization_JSONInput) ProtoMessage() {}func (*QueryRequest_InputSerialization_JSONInput) Descriptor() ([]byte, []int) {- return fileDescriptor0, []int{59, 1, 1}+ return fileDescriptor0, []int{60, 1, 1}}func (m *QueryRequest_InputSerialization_JSONInput) GetType() string {@@ -1698,7 +1763,7 @@ func (m *QueryRequest_InputSerialization_ParquetInput) String() string {}func (*QueryRequest_InputSerialization_ParquetInput) ProtoMessage() {}func (*QueryRequest_InputSerialization_ParquetInput) Descriptor() ([]byte, []int) {- return fileDescriptor0, []int{59, 1, 2}+ return fileDescriptor0, []int{60, 1, 2}}type QueryRequest_OutputSerialization struct {@@ -1710,7 +1775,7 @@ func (m *QueryRequest_OutputSerialization) Reset() { *m = QueryRequest_Ofunc (m *QueryRequest_OutputSerialization) String() string { return proto.CompactTextString(m) }func (*QueryRequest_OutputSerialization) ProtoMessage() {}func (*QueryRequest_OutputSerialization) Descriptor() ([]byte, []int) {- return fileDescriptor0, []int{59, 2}+ return fileDescriptor0, []int{60, 2}}func (m *QueryRequest_OutputSerialization) GetCsvOutput() *QueryRequest_OutputSerialization_CSVOutput {@@ -1743,7 +1808,7 @@ func (m *QueryRequest_OutputSerialization_CSVOutput) String() string {}func (*QueryRequest_OutputSerialization_CSVOutput) ProtoMessage() {}func (*QueryRequest_OutputSerialization_CSVOutput) Descriptor() ([]byte, []int) {- return fileDescriptor0, []int{59, 2, 0}+ return fileDescriptor0, []int{60, 2, 0}}func (m *QueryRequest_OutputSerialization_CSVOutput) GetQuoteFields() string {@@ -1793,7 +1858,7 @@ func (m *QueryRequest_OutputSerialization_JSONOutput) String() string {}func (*QueryRequest_OutputSerialization_JSONOutput) ProtoMessage() {}func (*QueryRequest_OutputSerialization_JSONOutput) Descriptor() ([]byte, []int) {- return fileDescriptor0, []int{59, 2, 1}+ return fileDescriptor0, []int{60, 2, 1}}func (m *QueryRequest_OutputSerialization_JSONOutput) GetRecordDelimiter() string {@@ -1810,7 +1875,7 @@ type QueriedStripe struct {func (m *QueriedStripe) Reset() { *m = QueriedStripe{} }func (m *QueriedStripe) String() string { return proto.CompactTextString(m) }func (*QueriedStripe) ProtoMessage() {}-func (*QueriedStripe) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{60} }+func (*QueriedStripe) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{61} }func (m *QueriedStripe) GetRecords() []byte {if m != nil {@@ -1876,7 +1941,8 @@ func init() {proto.RegisterType((*ReadVolumeFileStatusResponse)(nil), "volume_server_pb.ReadVolumeFileStatusResponse")proto.RegisterType((*DiskStatus)(nil), "volume_server_pb.DiskStatus")proto.RegisterType((*MemStatus)(nil), "volume_server_pb.MemStatus")- proto.RegisterType((*TieredVolume)(nil), "volume_server_pb.TieredVolume")+ proto.RegisterType((*RemoteFile)(nil), "volume_server_pb.RemoteFile")+ proto.RegisterType((*VolumeTierInfo)(nil), "volume_server_pb.VolumeTierInfo")proto.RegisterType((*VolumeTierCopyDatToRemoteRequest)(nil), "volume_server_pb.VolumeTierCopyDatToRemoteRequest")proto.RegisterType((*VolumeTierCopyDatToRemoteResponse)(nil), "volume_server_pb.VolumeTierCopyDatToRemoteResponse")proto.RegisterType((*QueryRequest)(nil), "volume_server_pb.QueryRequest")@@ -1932,7 +1998,7 @@ type VolumeServerClient interface {VolumeEcShardRead(ctx context.Context, in *VolumeEcShardReadRequest, opts ...grpc.CallOption) (VolumeServer_VolumeEcShardReadClient, error)VolumeEcBlobDelete(ctx context.Context, in *VolumeEcBlobDeleteRequest, opts ...grpc.CallOption) (*VolumeEcBlobDeleteResponse, error)// tiered storage- VolumeTierCopyDatToRemote(ctx context.Context, in *VolumeTierCopyDatToRemoteRequest, opts ...grpc.CallOption) (*VolumeTierCopyDatToRemoteResponse, error)+ VolumeTierCopyDatToRemote(ctx context.Context, in *VolumeTierCopyDatToRemoteRequest, opts ...grpc.CallOption) (VolumeServer_VolumeTierCopyDatToRemoteClient, error)// queryQuery(ctx context.Context, in *QueryRequest, opts ...grpc.CallOption) (VolumeServer_QueryClient, error)}@@ -2271,17 +2337,40 @@ func (c *volumeServerClient) VolumeEcBlobDelete(ctx context.Context, in *VolumeEreturn out, nil}-func (c *volumeServerClient) VolumeTierCopyDatToRemote(ctx context.Context, in *VolumeTierCopyDatToRemoteRequest, opts ...grpc.CallOption) (*VolumeTierCopyDatToRemoteResponse, error) {- out := new(VolumeTierCopyDatToRemoteResponse)- err := grpc.Invoke(ctx, "/volume_server_pb.VolumeServer/VolumeTierCopyDatToRemote", in, out, c.cc, opts...)+func (c *volumeServerClient) VolumeTierCopyDatToRemote(ctx context.Context, in *VolumeTierCopyDatToRemoteRequest, opts ...grpc.CallOption) (VolumeServer_VolumeTierCopyDatToRemoteClient, error) {+ stream, err := grpc.NewClientStream(ctx, &_VolumeServer_serviceDesc.Streams[4], c.cc, "/volume_server_pb.VolumeServer/VolumeTierCopyDatToRemote", opts...)if err != nil {return nil, err}- return out, nil+ x := &volumeServerVolumeTierCopyDatToRemoteClient{stream}+ if err := x.ClientStream.SendMsg(in); err != nil {+ return nil, err+ }+ if err := x.ClientStream.CloseSend(); err != nil {+ return nil, err+ }+ return x, nil+}++type VolumeServer_VolumeTierCopyDatToRemoteClient interface {+ Recv() (*VolumeTierCopyDatToRemoteResponse, error)+ grpc.ClientStream+}++type volumeServerVolumeTierCopyDatToRemoteClient struct {+ grpc.ClientStream+}++func (x *volumeServerVolumeTierCopyDatToRemoteClient) Recv() (*VolumeTierCopyDatToRemoteResponse, error) {+ m := new(VolumeTierCopyDatToRemoteResponse)+ if err := x.ClientStream.RecvMsg(m); err != nil {+ return nil, err+ }+ return m, nil}func (c *volumeServerClient) Query(ctx context.Context, in *QueryRequest, opts ...grpc.CallOption) (VolumeServer_QueryClient, error) {- stream, err := grpc.NewClientStream(ctx, &_VolumeServer_serviceDesc.Streams[4], c.cc, "/volume_server_pb.VolumeServer/Query", opts...)+ stream, err := grpc.NewClientStream(ctx, &_VolumeServer_serviceDesc.Streams[5], c.cc, "/volume_server_pb.VolumeServer/Query", opts...)if err != nil {return nil, err}@@ -2345,7 +2434,7 @@ type VolumeServerServer interface {VolumeEcShardRead(*VolumeEcShardReadRequest, VolumeServer_VolumeEcShardReadServer) errorVolumeEcBlobDelete(context.Context, *VolumeEcBlobDeleteRequest) (*VolumeEcBlobDeleteResponse, error)// tiered storage- VolumeTierCopyDatToRemote(context.Context, *VolumeTierCopyDatToRemoteRequest) (*VolumeTierCopyDatToRemoteResponse, error)+ VolumeTierCopyDatToRemote(*VolumeTierCopyDatToRemoteRequest, VolumeServer_VolumeTierCopyDatToRemoteServer) error// queryQuery(*QueryRequest, VolumeServer_QueryServer) error}@@ -2834,22 +2923,25 @@ func _VolumeServer_VolumeEcBlobDelete_Handler(srv interface{}, ctx context.Contereturn interceptor(ctx, in, info, handler)}-func _VolumeServer_VolumeTierCopyDatToRemote_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {- in := new(VolumeTierCopyDatToRemoteRequest)- if err := dec(in); err != nil {- return nil, err- }- if interceptor == nil {- return srv.(VolumeServerServer).VolumeTierCopyDatToRemote(ctx, in)- }- info := &grpc.UnaryServerInfo{- Server: srv,- FullMethod: "/volume_server_pb.VolumeServer/VolumeTierCopyDatToRemote",- }- handler := func(ctx context.Context, req interface{}) (interface{}, error) {- return srv.(VolumeServerServer).VolumeTierCopyDatToRemote(ctx, req.(*VolumeTierCopyDatToRemoteRequest))+func _VolumeServer_VolumeTierCopyDatToRemote_Handler(srv interface{}, stream grpc.ServerStream) error {+ m := new(VolumeTierCopyDatToRemoteRequest)+ if err := stream.RecvMsg(m); err != nil {+ return err}- return interceptor(ctx, in, info, handler)+ return srv.(VolumeServerServer).VolumeTierCopyDatToRemote(m, &volumeServerVolumeTierCopyDatToRemoteServer{stream})+}++type VolumeServer_VolumeTierCopyDatToRemoteServer interface {+ Send(*VolumeTierCopyDatToRemoteResponse) error+ grpc.ServerStream+}++type volumeServerVolumeTierCopyDatToRemoteServer struct {+ grpc.ServerStream+}++func (x *volumeServerVolumeTierCopyDatToRemoteServer) Send(m *VolumeTierCopyDatToRemoteResponse) error {+ return x.ServerStream.SendMsg(m)}func _VolumeServer_Query_Handler(srv interface{}, stream grpc.ServerStream) error {@@ -2965,10 +3057,6 @@ var _VolumeServer_serviceDesc = grpc.ServiceDesc{MethodName: "VolumeEcBlobDelete",Handler: _VolumeServer_VolumeEcBlobDelete_Handler,},- {- MethodName: "VolumeTierCopyDatToRemote",- Handler: _VolumeServer_VolumeTierCopyDatToRemote_Handler,- },},Streams: []grpc.StreamDesc{{@@ -2991,6 +3079,11 @@ var _VolumeServer_serviceDesc = grpc.ServiceDesc{Handler: _VolumeServer_VolumeEcShardRead_Handler,ServerStreams: true,},+ {+ StreamName: "VolumeTierCopyDatToRemote",+ Handler: _VolumeServer_VolumeTierCopyDatToRemote_Handler,+ ServerStreams: true,+ },{StreamName: "Query",Handler: _VolumeServer_Query_Handler,@@ -3003,169 +3096,176 @@ var _VolumeServer_serviceDesc = grpc.ServiceDesc{func init() { proto.RegisterFile("volume_server.proto", fileDescriptor0) }var fileDescriptor0 = []byte{- // 2613 bytes of a gzipped FileDescriptorProto+ // 2735 bytes of a gzipped FileDescriptorProto0x1f, 0x8b, 0x08, 0x00, 0x00, 0x09, 0x6e, 0x88, 0x02, 0x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, 0x53, 0xe8, 0xd7, 0xe3, 0xee, 0x68, 0xf9, 0xe5, 0x09, 0x6d, 0xd7, 0xe6, 0x82, 0xda,+ 0x07, 0x37, 0xe3, 0xed, 0x33, 0xd1, 0x64, 0xb4, 0xff, 0x08, 0x66, 0xc4, 0x6d, 0x0b, 0xad, 0x9d,+ 0x7e, 0x0d, 0x33, 0xae, 0x54, 0xcf, 0xa7, 0x97, 0x09, 0xce, 0xed, 0xe0, 0xbc, 0xf8, 0x6d, 0xf0,+ 0xed, 0xff, 0x04, 0x00, 0x00, 0xff, 0xff, 0x8a, 0x85, 0xda, 0x2e, 0x4d, 0x28, 0x00, 0x00,}diff --git a/weed/pb/volume_server_pb/volume_server_helper.go b/weed/pb/volume_server_pb/volume_server_helper.gonew file mode 100644index 0000000000..356be27ff6--- /dev/null+++ b/weed/pb/volume_server_pb/volume_server_helper.go@@ -0,0 +1,5 @@+package volume_server_pb++func (m *RemoteFile) BackendName() string {+ return m.BackendType + "." + m.BackendId+}diff --git a/weed/server/common.go b/weed/server/common.goindex e3e16b927b..ba5562dfeb 100644--- a/weed/server/common.go+++ b/weed/server/common.go@@ -11,15 +11,12 @@ import ("strings""time"- "github.com/chrislusf/seaweedfs/weed/storage/needle"- "google.golang.org/grpc"-- _ "github.com/chrislusf/seaweedfs/weed/storage/backend/s3_backend"-"github.com/chrislusf/seaweedfs/weed/glog""github.com/chrislusf/seaweedfs/weed/operation""github.com/chrislusf/seaweedfs/weed/stats"+ "github.com/chrislusf/seaweedfs/weed/storage/needle""github.com/chrislusf/seaweedfs/weed/util"+ "google.golang.org/grpc"_ "github.com/chrislusf/seaweedfs/weed/statik""github.com/gorilla/mux"diff --git a/weed/server/volume_grpc_tier.go b/weed/server/volume_grpc_tier.goindex cbd344ed02..d3cdd62f26 100644--- a/weed/server/volume_grpc_tier.go+++ b/weed/server/volume_grpc_tier.go@@ -1,9 +1,9 @@package weed_serverimport (- "context""fmt""os"+ "time""github.com/chrislusf/seaweedfs/weed/pb/volume_server_pb""github.com/chrislusf/seaweedfs/weed/storage/backend"@@ -11,28 +11,83 @@ import ()// VolumeTierCopyDatToRemote copy dat file to a remote tier-func (vs *VolumeServer) VolumeTierCopyDatToRemote(ctx context.Context, req *volume_server_pb.VolumeTierCopyDatToRemoteRequest) (*volume_server_pb.VolumeTierCopyDatToRemoteResponse, error) {+func (vs *VolumeServer) VolumeTierCopyDatToRemote(req *volume_server_pb.VolumeTierCopyDatToRemoteRequest, stream volume_server_pb.VolumeServer_VolumeTierCopyDatToRemoteServer) error {+ // find existing volumev := vs.store.GetVolume(needle.VolumeId(req.VolumeId))if v == nil {- return nil, fmt.Errorf("volume %d not found", req.VolumeId)+ return fmt.Errorf("volume %d not found", req.VolumeId)}+ // verify the collectionif v.Collection != req.Collection {- return nil, fmt.Errorf("existing collection:%v unexpected input: %v", v.Collection, req.Collection)+ return fmt.Errorf("existing collection:%v unexpected input: %v", v.Collection, req.Collection)}+ // locate the disk filediskFile, ok := v.DataBackend.(*backend.DiskFile)if !ok {- return nil, fmt.Errorf("volume %d is not on local disk", req.VolumeId)+ return fmt.Errorf("volume %d is not on local disk", req.VolumeId)}- err := uploadFileToRemote(ctx, req, diskFile.File)- return &volume_server_pb.VolumeTierCopyDatToRemoteResponse{}, err-}+ // check valid storage backend type+ backendStorage, found := backend.BackendStorages[req.DestinationBackendName]+ if !found {+ var keys []string+ for key := range backend.BackendStorages {+ keys = append(keys, key)+ }+ return fmt.Errorf("destination %s not found, suppported: %v", req.DestinationBackendName, keys)+ }++ // check whether the existing backend storage is the same as requested+ // if same, skip+ backendType, backendId := backend.BackendNameToTypeId(req.DestinationBackendName)+ for _, remoteFile := range v.GetVolumeTierInfo().GetFiles() {+ if remoteFile.BackendType == backendType && remoteFile.BackendId == backendId {+ return fmt.Errorf("destination %s already exists", req.DestinationBackendName)+ }+ }++ startTime := time.Now()+ fn := func(progressed int64, percentage float32) error {+ now := time.Now()+ if now.Sub(startTime) < time.Second {+ return nil+ }+ startTime = now+ return stream.Send(&volume_server_pb.VolumeTierCopyDatToRemoteResponse{+ Processed: progressed,+ ProcessedPercentage: percentage,+ })+ }+ // copy the data file+ key, size, err := backendStorage.CopyFile(diskFile.File, fn)+ if err != nil {+ return fmt.Errorf("backend %s copy file %s: %v", req.DestinationBackendName, diskFile.String(), err)+ }-func uploadFileToRemote(ctx context.Context, req *volume_server_pb.VolumeTierCopyDatToRemoteRequest, f *os.File) error {- println("copying dat file of", f.Name(), "to remote")+ // save the remote file to volume tier info+ v.GetVolumeTierInfo().Files = append(v.GetVolumeTierInfo().GetFiles(), &volume_server_pb.RemoteFile{+ BackendType: backendType,+ BackendId: backendId,+ Key: key,+ Offset: 0,+ FileSize: uint64(size),+ ModifiedTime: uint64(time.Now().Unix()),+ })++ if err := v.SaveVolumeTierInfo(); err != nil {+ return fmt.Errorf("volume %d fail to save remote file info: %v", v.Id, err)+ }++ if err := v.LoadRemoteFile(); err != nil {+ return fmt.Errorf("volume %d fail to load remote file: %v", v.Id, err)+ }++ if !req.KeepLocalDatFile {+ os.Remove(v.FileName() + ".dat")+ }return nil}diff --git a/weed/shell/command_volume_tier.go b/weed/shell/command_volume_tier.goindex 177d3f30d1..9047d1199d 100644--- a/weed/shell/command_volume_tier.go+++ b/weed/shell/command_volume_tier.go@@ -25,14 +25,30 @@ func (c *commandVolumeTier) Name() string {}func (c *commandVolumeTier) Help() string {- return `copy the dat file of a volume to a remote tier+ return `move the dat file of a volume to a remote tier- ec.encode [-collection=""] [-fullPercent=95] [-quietFor=1h]- ec.encode [-collection=""] [-volumeId=<volume_id>]+ volume.tier [-collection=""] [-fullPercent=95] [-quietFor=1h]+ volume.tier [-collection=""] -volumeId=<volume_id> -dest=<storage_backend> [-keepLocalDatFile]- This command will:- 1. freeze one volume- 2. copy the dat file of a volume to a remote tier+ e.g.:+ volume.tier -volumeId=7 -dest=s3+ volume.tier -volumeId=7 -dest=s3.default++ The <storage_backend> is defined in master.toml.+ For example, "s3.default" in [storage.backend.s3.default]++ This command will move the dat file of a volume to a remote tier.++ SeaweedFS enables scalable and fast local access to lots of files,+ and the cloud storage is slower by cost efficient. How to combine them together?++ Usually the data follows 80/20 rule: only 20% of data is frequently accessed.+ We can offload the old volumes to the cloud.++ With this, SeaweedFS can be both fast and scalable, and infinite storage space.+ Just add more local SeaweedFS volume servers to increase the throughput.++ The index file is still local, and the same O(1) disk read is applied to the remote file.`}@@ -44,7 +60,8 @@ func (c *commandVolumeTier) Do(args []string, commandEnv *CommandEnv, writer io.collection := tierCommand.String("collection", "", "the collection name")fullPercentage := tierCommand.Float64("fullPercent", 95, "the volume reaches the percentage of max volume size")quietPeriod := tierCommand.Duration("quietFor", 24*time.Hour, "select volumes without no writes for this period")- dest := tierCommand.String("destination", "", "the target tier name")+ dest := tierCommand.String("dest", "", "the target tier name")+ keepLocalDatFile := tierCommand.Bool("keepLocalDatFile", false, "whether keep local dat file")if err = tierCommand.Parse(args); err != nil {return nil}@@ -54,7 +71,7 @@ func (c *commandVolumeTier) Do(args []string, commandEnv *CommandEnv, writer io.// volumeId is providedif vid != 0 {- return doVolumeTier(ctx, commandEnv, *collection, vid, *dest)+ return doVolumeTier(ctx, commandEnv, writer, *collection, vid, *dest, *keepLocalDatFile)}// apply to all volumes in the collection@@ -65,7 +82,7 @@ func (c *commandVolumeTier) Do(args []string, commandEnv *CommandEnv, writer io.}fmt.Printf("tiering volumes: %v\n", volumeIds)for _, vid := range volumeIds {- if err = doVolumeTier(ctx, commandEnv, *collection, vid, *dest); err != nil {+ if err = doVolumeTier(ctx, commandEnv, writer, *collection, vid, *dest, *keepLocalDatFile); err != nil {return err}}@@ -73,7 +90,7 @@ func (c *commandVolumeTier) Do(args []string, commandEnv *CommandEnv, writer io.return nil}-func doVolumeTier(ctx context.Context, commandEnv *CommandEnv, collection string, vid needle.VolumeId, dest string) (err error) {+func doVolumeTier(ctx context.Context, commandEnv *CommandEnv, writer io.Writer, collection string, vid needle.VolumeId, dest string, keepLocalDatFile bool) (err error) {// find volume locationlocations, found := commandEnv.MasterClient.GetLocations(uint32(vid))if !found {@@ -89,7 +106,7 @@ func doVolumeTier(ctx context.Context, commandEnv *CommandEnv, collection string*/// copy the .dat file to remote tier- err = copyDatToRemoteTier(ctx, commandEnv.option.GrpcDialOption, needle.VolumeId(vid), collection, locations[0].Url, dest)+ err = copyDatToRemoteTier(ctx, commandEnv.option.GrpcDialOption, writer, needle.VolumeId(vid), collection, locations[0].Url, dest, keepLocalDatFile)if err != nil {return fmt.Errorf("copy dat file for volume %d on %s to %s: %v", vid, locations[0].Url, dest, err)}@@ -97,13 +114,34 @@ func doVolumeTier(ctx context.Context, commandEnv *CommandEnv, collection stringreturn nil}-func copyDatToRemoteTier(ctx context.Context, grpcDialOption grpc.DialOption, volumeId needle.VolumeId, collection string, sourceVolumeServer string, dest string) error {+func copyDatToRemoteTier(ctx context.Context, grpcDialOption grpc.DialOption, writer io.Writer, volumeId needle.VolumeId, collection string, sourceVolumeServer string, dest string, keepLocalDatFile bool) error {err := operation.WithVolumeServerClient(sourceVolumeServer, grpcDialOption, func(volumeServerClient volume_server_pb.VolumeServerClient) error {- _, copyErr := volumeServerClient.VolumeTierCopyDatToRemote(ctx, &volume_server_pb.VolumeTierCopyDatToRemoteRequest{- VolumeId: uint32(volumeId),- Collection: collection,+ stream, copyErr := volumeServerClient.VolumeTierCopyDatToRemote(ctx, &volume_server_pb.VolumeTierCopyDatToRemoteRequest{+ VolumeId: uint32(volumeId),+ Collection: collection,+ DestinationBackendName: dest,+ KeepLocalDatFile: keepLocalDatFile,})++ var lastProcessed int64+ for {+ resp, recvErr := stream.Recv()+ if recvErr != nil {+ if recvErr == io.EOF {+ break+ } else {+ return recvErr+ }+ }++ processingSpeed := float64(resp.Processed - lastProcessed)/1024.0/1024.0++ fmt.Fprintf(writer, "copied %.2f%%, %d bytes, %.2fMB/s\n", resp.ProcessedPercentage, resp.Processed, processingSpeed)++ lastProcessed = resp.Processed+ }+return copyErr})diff --git a/weed/storage/backend/backend.go b/weed/storage/backend/backend.goindex 2552e5c06b..4b54d89dd5 100644--- a/weed/storage/backend/backend.go+++ b/weed/storage/backend/backend.go@@ -8,6 +8,7 @@ import ("github.com/chrislusf/seaweedfs/weed/glog""github.com/chrislusf/seaweedfs/weed/pb/master_pb"+ "github.com/chrislusf/seaweedfs/weed/pb/volume_server_pb""github.com/spf13/viper")@@ -23,7 +24,8 @@ type BackendStorageFile interface {type BackendStorage interface {ToProperties() map[string]string- NewStorageFile(key string) BackendStorageFile+ NewStorageFile(key string, tierInfo *volume_server_pb.VolumeTierInfo) BackendStorageFile+ CopyFile(f *os.File, fn func(progressed int64, percentage float32) error) (key string, size int64, err error)}type StringProperties interface {@@ -46,13 +48,13 @@ func LoadConfiguration(config *viper.Viper) {backendSub := config.Sub(StorageBackendPrefix)- for backendTypeName, _ := range config.GetStringMap(StorageBackendPrefix) {+ for backendTypeName := range config.GetStringMap(StorageBackendPrefix) {backendStorageFactory, found := BackendStorageFactories[StorageType(backendTypeName)]if !found {glog.Fatalf("backend storage type %s not found", backendTypeName)}backendTypeSub := backendSub.Sub(backendTypeName)- for backendStorageId, _ := range backendSub.GetStringMap(backendTypeName) {+ for backendStorageId := range backendSub.GetStringMap(backendTypeName) {if !backendTypeSub.GetBool(backendStorageId + ".enabled") {continue}@@ -105,12 +107,10 @@ func (p *Properties) GetString(key string) string {func ToPbStorageBackends() (backends []*master_pb.StorageBackend) {for sName, s := range BackendStorages {- parts := strings.Split(sName, ".")- if len(parts) != 2 {+ sType, sId := BackendNameToTypeId(sName)+ if sType == "" {continue}-- sType, sId := parts[0], parts[1]backends = append(backends, &master_pb.StorageBackend{Type: sType,Id: sId,@@ -119,3 +119,16 @@ func ToPbStorageBackends() (backends []*master_pb.StorageBackend) {}return}++func BackendNameToTypeId(backendName string) (backendType, backendId string) {+ parts := strings.Split(backendName, ".")+ if len(parts) == 1 {+ return backendName, "default"+ }+ if len(parts) != 2 {+ return+ }++ backendType, backendId = parts[0], parts[1]+ return+}diff --git a/weed/storage/backend/s3_backend/s3_backend.go b/weed/storage/backend/s3_backend/s3_backend.goindex 7db8f2337d..66299be483 100644--- a/weed/storage/backend/s3_backend/s3_backend.go+++ b/weed/storage/backend/s3_backend/s3_backend.go@@ -2,6 +2,7 @@ package s3_backendimport ("fmt"+ "io""os""strings""time"@@ -9,7 +10,9 @@ import ("github.com/aws/aws-sdk-go/service/s3""github.com/aws/aws-sdk-go/service/s3/s3iface""github.com/chrislusf/seaweedfs/weed/glog"+ "github.com/chrislusf/seaweedfs/weed/pb/volume_server_pb""github.com/chrislusf/seaweedfs/weed/storage/backend"+ "github.com/google/uuid")func init() {@@ -57,7 +60,7 @@ func (s *S3BackendStorage) ToProperties() map[string]string {return m}-func (s *S3BackendStorage) NewStorageFile(key string) backend.BackendStorageFile {+func (s *S3BackendStorage) NewStorageFile(key string, tierInfo *volume_server_pb.VolumeTierInfo) backend.BackendStorageFile {if strings.HasPrefix(key, "/") {key = key[1:]}@@ -65,18 +68,35 @@ func (s *S3BackendStorage) NewStorageFile(key string) backend.BackendStorageFilef := &S3BackendStorageFile{backendStorage: s,key: key,+ tierInfo: tierInfo,}return f}+func (s *S3BackendStorage) CopyFile(f *os.File, fn func(progressed int64, percentage float32) error) (key string, size int64, err error) {+ randomUuid, _ := uuid.NewRandom()+ key = randomUuid.String()++ glog.V(1).Infof("copying dat file of", f.Name(), "to remote s3", s.id, "as", key)++ size, err = uploadToS3(s.conn, f.Name(), s.bucket, key, fn)++ return+}+type S3BackendStorageFile struct {backendStorage *S3BackendStoragekey string+ tierInfo *volume_server_pb.VolumeTierInfo}func (s3backendStorageFile S3BackendStorageFile) ReadAt(p []byte, off int64) (n int, err error) {+bytesRange := fmt.Sprintf("bytes=%d-%d", off, off+int64(len(p))-1)++ // glog.V(0).Infof("read %s %s", s3backendStorageFile.key, bytesRange)+getObjectOutput, getObjectErr := s3backendStorageFile.backendStorage.conn.GetObject(&s3.GetObjectInput{Bucket: &s3backendStorageFile.backendStorage.bucket,Key: &s3backendStorageFile.key,@@ -84,13 +104,26 @@ func (s3backendStorageFile S3BackendStorageFile) ReadAt(p []byte, off int64) (n})if getObjectErr != nil {- return 0, fmt.Errorf("bucket %s GetObject %s: %v",- s3backendStorageFile.backendStorage.bucket, s3backendStorageFile.key, getObjectErr)+ return 0, fmt.Errorf("bucket %s GetObject %s: %v", s3backendStorageFile.backendStorage.bucket, s3backendStorageFile.key, getObjectErr)}defer getObjectOutput.Body.Close()- return getObjectOutput.Body.Read(p)+ glog.V(4).Infof("read %s %s", s3backendStorageFile.key, bytesRange)+ glog.V(4).Infof("content range: %s, contentLength: %d", *getObjectOutput.ContentRange, *getObjectOutput.ContentLength)+ for {+ if n, err = getObjectOutput.Body.Read(p); err == nil && n < len(p) {+ p = p[n:]+ } else {+ break+ }+ }++ if err == io.EOF {+ err = nil+ }++ return}func (s3backendStorageFile S3BackendStorageFile) WriteAt(p []byte, off int64) (n int, err error) {@@ -107,18 +140,15 @@ func (s3backendStorageFile S3BackendStorageFile) Close() error {func (s3backendStorageFile S3BackendStorageFile) GetStat() (datSize int64, modTime time.Time, err error) {- headObjectOutput, headObjectErr := s3backendStorageFile.backendStorage.conn.HeadObject(&s3.HeadObjectInput{- Bucket: &s3backendStorageFile.backendStorage.bucket,- Key: &s3backendStorageFile.key,- })+ files := s3backendStorageFile.tierInfo.GetFiles()- if headObjectErr != nil {- return 0, time.Now(), fmt.Errorf("bucket %s HeadObject %s: %v",- s3backendStorageFile.backendStorage.bucket, s3backendStorageFile.key, headObjectErr)+ if len(files)==0 {+ err = fmt.Errorf("remote file info not found")+ return}- datSize = int64(*headObjectOutput.ContentLength)- modTime = *headObjectOutput.LastModified+ datSize = int64(files[0].FileSize)+ modTime = time.Unix(int64(files[0].ModifiedTime),0)return}diff --git a/weed/storage/backend/s3_backend/s3_upload.go b/weed/storage/backend/s3_backend/s3_upload.goindex 1fde0a84ff..38acd18eff 100644--- a/weed/storage/backend/s3_backend/s3_upload.go+++ b/weed/storage/backend/s3_backend/s3_upload.go@@ -3,27 +3,30 @@ package s3_backendimport ("fmt""os"+ "sync/atomic""github.com/aws/aws-sdk-go/aws""github.com/aws/aws-sdk-go/service/s3/s3iface""github.com/aws/aws-sdk-go/service/s3/s3manager"+ "github.com/chrislusf/seaweedfs/weed/glog")-func uploadToS3(sess s3iface.S3API, filename string, destBucket string, destKey string) error {+func uploadToS3(sess s3iface.S3API, filename string, destBucket string, destKey string,+ fn func(progressed int64, percentage float32)error) (fileSize int64, err error) {//open the filef, err := os.Open(filename)if err != nil {- return fmt.Errorf("failed to open file %q, %v", filename, err)+ return 0, fmt.Errorf("failed to open file %q, %v", filename, err)}defer f.Close()info, err := f.Stat()if err != nil {- return fmt.Errorf("failed to stat file %q, %v", filename, err)+ return 0, fmt.Errorf("failed to stat file %q, %v", filename, err)}- fileSize := info.Size()+ fileSize = info.Size()partSize := int64(64 * 1024 * 1024) // The minimum/default allowed part size is 5MBfor partSize*1000 < fileSize {@@ -33,14 +36,22 @@ func uploadToS3(sess s3iface.S3API, filename string, destBucket string, destKey// Create an uploader with the session and custom optionsuploader := s3manager.NewUploaderWithClient(sess, func(u *s3manager.Uploader) {u.PartSize = partSize- u.Concurrency = 15 // default is 15+ u.Concurrency = 5})+ fileReader := &s3UploadProgressedReader{+ fp: f,+ size:fileSize,+ read:-fileSize,+ fn:fn,+ }+// Upload the file to S3.- result, err := uploader.Upload(&s3manager.UploadInput{+ var result *s3manager.UploadOutput+ result, err = uploader.Upload(&s3manager.UploadInput{Bucket: aws.String(destBucket),Key: aws.String(destKey),- Body: f,+ Body: fileReader,ACL: aws.String("private"),ServerSideEncryption: aws.String("AES256"),StorageClass: aws.String("STANDARD_IA"),@@ -48,9 +59,44 @@ func uploadToS3(sess s3iface.S3API, filename string, destBucket string, destKey//in case it fails to uploadif err != nil {- return fmt.Errorf("failed to upload file, %v", err)+ return 0, fmt.Errorf("failed to upload file %s: %v", filename, err)+ }+ glog.V(1).Infof("file %s uploaded to %s\n", filename, result.Location)++ return+}++// adapted from https://github.com/aws/aws-sdk-go/pull/1868+type s3UploadProgressedReader struct {+ fp *os.File+ size int64+ read int64+ fn func(progressed int64, percentage float32)error+}+func (r *s3UploadProgressedReader) Read(p []byte) (int, error) {+ return r.fp.Read(p)+}++func (r *s3UploadProgressedReader) ReadAt(p []byte, off int64) (int, error) {+ n, err := r.fp.ReadAt(p, off)+ if err != nil {+ return n, err+ }++ // Got the length have read( or means has uploaded), and you can construct your message+ atomic.AddInt64(&r.read, int64(n))++ if r.fn != nil {+ read := r.read+ if err := r.fn(read, float32(read*100)/float32(r.size)); err != nil {+ return n, err+ }}- fmt.Printf("file %s uploaded to %s\n", filename, result.Location)- return nil+ return n, err+}+++func (r *s3UploadProgressedReader) Seek(offset int64, whence int) (int64, error) {+ return r.fp.Seek(offset, whence)}diff --git a/weed/storage/disk_location.go b/weed/storage/disk_location.goindex c7faa57a65..66d3b86c27 100644--- a/weed/storage/disk_location.go+++ b/weed/storage/disk_location.go@@ -33,8 +33,8 @@ func NewDiskLocation(dir string, maxVolumeCount int) *DiskLocation {func (l *DiskLocation) volumeIdFromPath(dir os.FileInfo) (needle.VolumeId, string, error) {name := dir.Name()- if !dir.IsDir() && strings.HasSuffix(name, ".dat") {- base := name[:len(name)-len(".dat")]+ if !dir.IsDir() && strings.HasSuffix(name, ".idx") {+ base := name[:len(name)-len(".idx")]collection, volumeId, err := parseCollectionVolumeId(base)return volumeId, collection, err}@@ -53,7 +53,7 @@ func parseCollectionVolumeId(base string) (collection string, vid needle.VolumeIfunc (l *DiskLocation) loadExistingVolume(fileInfo os.FileInfo, needleMapKind NeedleMapType) {name := fileInfo.Name()- if !fileInfo.IsDir() && strings.HasSuffix(name, ".dat") {+ if !fileInfo.IsDir() && strings.HasSuffix(name, ".idx") {vid, collection, err := l.volumeIdFromPath(fileInfo)if err == nil {l.RLock()diff --git a/weed/storage/volume.go b/weed/storage/volume.goindex 00d76a4b3f..ee05126e1d 100644--- a/weed/storage/volume.go+++ b/weed/storage/volume.go@@ -4,6 +4,7 @@ import ("fmt""github.com/chrislusf/seaweedfs/weed/pb/master_pb"+ "github.com/chrislusf/seaweedfs/weed/pb/volume_server_pb""github.com/chrislusf/seaweedfs/weed/stats""github.com/chrislusf/seaweedfs/weed/storage/backend""github.com/chrislusf/seaweedfs/weed/storage/needle"@@ -37,6 +38,8 @@ type Volume struct {lastCompactRevision uint16isCompacting bool++ volumeTierInfo *volume_server_pb.VolumeTierInfo}func NewVolume(dirname string, collection string, id needle.VolumeId, needleMapKind NeedleMapType, replicaPlacement *ReplicaPlacement, ttl *needle.TTL, preallocate int64, memoryMapMaxSizeMb uint32) (v *Volume, e error) {diff --git a/weed/storage/volume_loading.go b/weed/storage/volume_loading.goindex 6f1d8fe402..e09f848ab6 100644--- a/weed/storage/volume_loading.go+++ b/weed/storage/volume_loading.go@@ -26,8 +26,11 @@ func (v *Volume) load(alsoLoadIndex bool, createDatIfMissing bool, needleMapKindfileName := v.FileName()alreadyHasSuperBlock := false- // open dat file- if exists, canRead, canWrite, modifiedTime, fileSize := checkFile(fileName + ".dat"); exists {+ if v.maybeLoadVolumeTierInfo() {+ // open remote file+ alreadyHasSuperBlock = true+ } else if exists, canRead, canWrite, modifiedTime, fileSize := checkFile(fileName + ".dat"); exists {+ // open dat fileif !canRead {return fmt.Errorf("cannot read Volume Data file %s.dat", fileName)}diff --git a/weed/storage/volume_tier.go b/weed/storage/volume_tier.gonew file mode 100644index 0000000000..d469d7483a--- /dev/null+++ b/weed/storage/volume_tier.go@@ -0,0 +1,104 @@+package storage++import (+ "bytes"+ "fmt"+ "io/ioutil"++ _ "github.com/chrislusf/seaweedfs/weed/storage/backend/s3_backend"++ "github.com/chrislusf/seaweedfs/weed/glog"+ "github.com/chrislusf/seaweedfs/weed/pb/volume_server_pb"+ "github.com/chrislusf/seaweedfs/weed/storage/backend"+ "github.com/golang/protobuf/jsonpb"+)++func (v *Volume) GetVolumeTierInfo() *volume_server_pb.VolumeTierInfo {+ return v.volumeTierInfo+}++func (v *Volume) maybeLoadVolumeTierInfo() bool {++ v.volumeTierInfo = &volume_server_pb.VolumeTierInfo{}++ tierFileName := v.FileName() + ".tier"++ if exists, canRead, _, _, _ := checkFile(tierFileName); !exists || !canRead {+ if !exists {+ return false+ }+ if !canRead {+ glog.Warningf("can not read %s", tierFileName)+ }+ return false+ }++ glog.V(0).Infof("maybeLoadVolumeTierInfo loading volume %d check file", v.Id)++ tierData, readErr := ioutil.ReadFile(tierFileName)+ if readErr != nil {+ glog.Warningf("fail to read %s : %v", tierFileName, readErr)+ return false+ }++ glog.V(0).Infof("maybeLoadVolumeTierInfo loading volume %d ReadFile", v.Id)++ if err := jsonpb.Unmarshal(bytes.NewReader(tierData), v.volumeTierInfo); err != nil {+ glog.Warningf("unmarshal error: %v", err)+ return false+ }++ glog.V(0).Infof("maybeLoadVolumeTierInfo loading volume %d Unmarshal tierInfo %v", v.Id, v.volumeTierInfo)++ if len(v.volumeTierInfo.GetFiles()) == 0 {+ return false+ }++ glog.V(0).Infof("volume %d is tiered to %s as %s and read only", v.Id,+ v.volumeTierInfo.Files[0].BackendName(), v.volumeTierInfo.Files[0].Key)++ v.readOnly = true++ glog.V(0).Infof("loading volume %d from remote %v", v.Id, v.volumeTierInfo.Files)+ v.LoadRemoteFile()++ return true+}++func (v *Volume) LoadRemoteFile() error {+ tierFile := v.volumeTierInfo.GetFiles()[0]+ backendStorage := backend.BackendStorages[tierFile.BackendName()]++ if v.DataBackend != nil {+ v.DataBackend.Close()+ }++ v.DataBackend = backendStorage.NewStorageFile(tierFile.Key, v.volumeTierInfo)+ return nil+}++func (v *Volume) SaveVolumeTierInfo() error {++ tierFileName := v.FileName() + ".tier"++ if exists, _, canWrite, _, _ := checkFile(tierFileName); exists && !canWrite {+ return fmt.Errorf("%s not writable", tierFileName)+ }++ m := jsonpb.Marshaler{+ EmitDefaults: true,+ Indent: " ",+ }++ text, marshalErr := m.MarshalToString(v.GetVolumeTierInfo())+ if marshalErr != nil {+ return fmt.Errorf("marshal volume %d tier info: %v", v.Id, marshalErr)+ }++ writeErr := ioutil.WriteFile(tierFileName, []byte(text), 0755)+ if writeErr != nil {+ return fmt.Errorf("fail to write %s : %v", tierFileName, writeErr)+ }++ return nil+}