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
add node.selectedVolumes
Chris Luba92f2e71481
diff --git a/weed/shell/command_volume_server_evacuate.go b/weed/shell/command_volume_server_evacuate.goindex 80c5b1d6bf..f21d0334c9 100644--- a/weed/shell/command_volume_server_evacuate.go+++ b/weed/shell/command_volume_server_evacuate.go@@ -176,6 +176,11 @@ func moveAwayOneEcVolume(commandEnv *CommandEnv, ecShardInfo *master_pb.VolumeEcfunc moveAwayOneNormalVolume(commandEnv *CommandEnv, volumeReplicas map[uint32][]*VolumeReplica, vol *master_pb.VolumeInformationMessage, thisNode *Node, otherNodes []*Node, applyChange bool) (hasMoved bool, err error) {fn := capacityByFreeVolumeCount(types.ToDiskType(vol.DiskType))+ for _, n := range otherNodes {+ n.selectVolumes(func(v *master_pb.VolumeInformationMessage) bool {+ return v.DiskType == vol.DiskType+ })+ }sort.Slice(otherNodes, func(i, j int) bool {return otherNodes[i].localVolumeRatio(fn) > otherNodes[j].localVolumeRatio(fn)})