Skip to content

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.

use 10 or numCPU workers if env is not found

guol-fnst300b383cdf7a
diff --git a/weed/storage/disk_location.go b/weed/storage/disk_location.go
index 69d2492595..8af8ea6633 100644
--- a/weed/storage/disk_location.go
+++ b/weed/storage/disk_location.go
@@ -217,6 +217,10 @@ func (l *DiskLocation) loadExistingVolumes(needleMapKind NeedleMapKind) {
glog.Warningf("failed to set worker number from GOMAXPROCS , set to default:10")
}
workerNum = num
+ } else {
+ if workerNum <= 10 {
+ workerNum = 10
+ }
}
l.concurrentLoadingVolumes(needleMapKind, workerNum)
glog.V(0).Infof("Store started on dir: %s with %d volumes max %d", l.Directory, len(l.volumes), l.MaxVolumeCount)