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
fix: consider EC shard count in volume.balance capacity calculation (#7034)
FQHSLycopenee1f8da0db3d7
diff --git a/weed/shell/command_volume_balance.go b/weed/shell/command_volume_balance.goindex ac7dab3d9f..b3c76a1729 100644--- a/weed/shell/command_volume_balance.go+++ b/weed/shell/command_volume_balance.go@@ -225,7 +225,11 @@ func capacityByMaxVolumeCount(diskType types.DiskType) CapacityFunc {if !found {return 0}- return float64(diskInfo.MaxVolumeCount)+ var ecShardCount int+ for _, ecShardInfo := range diskInfo.EcShardInfos {+ ecShardCount += erasure_coding.ShardBits(ecShardInfo.EcIndexBits).ShardIdCount()+ }+ return float64(diskInfo.MaxVolumeCount) - float64(ecShardCount)/erasure_coding.DataShardsCount}}