mirror of
https://github.com/seaweedfs/seaweedfs.git
synced 2025-10-21 23:38:51 +08:00
tiered storage: can copy to s3, read from s3
master not aware tiered volume yet, file assigning is not working yet
This commit is contained in:
@@ -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 servers
|
||||
|
Reference in New Issue
Block a user