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 max volume count auto setting
chrislu4ec6eab004ff
diff --git a/weed/storage/store.go b/weed/storage/store.goindex 2d9ecbe322..64d4248299 100644--- a/weed/storage/store.go+++ b/weed/storage/store.go@@ -620,7 +620,8 @@ func (s *Store) MaybeAdjustVolumeMax() (hasChanges bool) {unusedSpace := diskLocation.UnUsedSpace(volumeSizeLimit)unclaimedSpaces := int64(diskStatus.Free) - int64(unusedSpace)volCount := diskLocation.VolumesLen()- maxVolumeCount := int32(volCount)+ ecShardCount := diskLocation.EcShardCount()+ maxVolumeCount := int32(volCount) + int32((ecShardCount+erasure_coding.DataShardsCount)/erasure_coding.DataShardsCount)if unclaimedSpaces > int64(volumeSizeLimit) {maxVolumeCount += int32(uint64(unclaimedSpaces)/volumeSizeLimit) - 1}