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.

add sleep between upload retries

Chris Ludd9f3a01049b
diff --git a/weed/operation/upload_content.go b/weed/operation/upload_content.go
index 7e2a6dcd25..b24514cda0 100644
--- a/weed/operation/upload_content.go
+++ b/weed/operation/upload_content.go
@@ -100,6 +100,7 @@ func retriedUploadData(uploadUrl string, filename string, cipher bool, data []by
} else {
glog.Warningf("uploading to %s: %v", uploadUrl, err)
}
+ time.Sleep(time.Millisecond * time.Duration(237 * (i+1)))
}
return
}