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
volume: add default minFreeSpacePercent
Chris Lu98493e01524f
diff --git a/weed/command/volume.go b/weed/command/volume.goindex a8025b56f2..8eed851b0c 100644--- a/weed/command/volume.go+++ b/weed/command/volume.go@@ -142,6 +142,11 @@ func (v VolumeServerOptions) startVolumeServer(volumeFolders, maxVolumeCounts, vglog.Fatalf("The value specified in -minFreeSpacePercent not a valid value %s", freeString)}}+ if len(v.minFreeSpacePercent) == 1 && len(v.folders) > 1 {+ for i := 0; i < len(v.folders)-1; i++ {+ v.minFreeSpacePercent = append(v.minFreeSpacePercent, v.minFreeSpacePercent[0])+ }+ }if len(v.folders) != len(v.minFreeSpacePercent) {glog.Fatalf("%d directories by -dir, but only %d minFreeSpacePercent is set by -minFreeSpacePercent", len(v.folders), len(v.minFreeSpacePercent))}