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
improve perf a bit
chrislu31f1f960386e
diff --git a/weed/topology/volume_layout.go b/weed/topology/volume_layout.goindex d04552d359..2296a0f92b 100644--- a/weed/topology/volume_layout.go+++ b/weed/topology/volume_layout.go@@ -370,6 +370,7 @@ func (vl *VolumeLayout) GetActiveVolumeCount(option *VolumeGrowOption) (total, areturn len(vl.writables), len(vl.writables), len(vl.crowded)}total = len(vl.writables)+ threshold := option.Threshold()for _, v := range vl.writables {for _, dn := range vl.vid2location[v].list {if dn.GetDataCenter().Id() == NodeId(option.DataCenter) {@@ -381,7 +382,7 @@ func (vl *VolumeLayout) GetActiveVolumeCount(option *VolumeGrowOption) (total, a}active++info, _ := dn.GetVolumesById(v)- if float64(info.Size) > float64(vl.volumeSizeLimit)*option.Threshold() {+ if float64(info.Size) > float64(vl.volumeSizeLimit)*threshold {crowded++}}