We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
问题描述/What happened: glance存储设定为MinIO,发现镜像上传至MinIO存储十分缓慢,查看源码: source/cloudpods/vendor/yunion.io/x/cloudmux/pkg/cloudprovider/objectstore.go UploadObject方法:
UploadObject
for i := 0; i < int(partCount); i += 1 { if i == int(partCount)-1 { partSize = sizeBytes - partSize*(partCount-1) } if debug { log.Debugf("UploadPart %d %d", i+1, partSize) } etag, err := bucket.UploadPart(ctx, key, uploadId, i+1, io.LimitReader(input, partSize), partSize, offset, sizeBytes) if err != nil { err2 := bucket.AbortMultipartUpload(ctx, key, uploadId) if err2 != nil { log.Errorf("bucket.AbortMultipartUpload error %s", err2) } return errors.Wrap(err, "bucket.UploadPart") } offset += partSize etags[i] = etag }
这里是分片上传是串行执行的吗? 是否有方法可以分片并发上传?
环境/Environment: 3.10.14
cat /etc/os-release
uname -a
dmidecode | egrep -i 'manufacturer|product' |sort -u
kubectl exec -n onecloud $(kubectl get pods -n onecloud | grep climc | awk '{print $1}') -- climc version-list
The text was updated successfully, but these errors were encountered:
@ioito 这里是否能加个并发度的参数
Sorry, something went wrong.
ioito
No branches or pull requests
问题描述/What happened:
glance存储设定为MinIO,发现镜像上传至MinIO存储十分缓慢,查看源码:
source/cloudpods/vendor/yunion.io/x/cloudmux/pkg/cloudprovider/objectstore.go
UploadObject
方法:这里是分片上传是串行执行的吗? 是否有方法可以分片并发上传?
环境/Environment:
3.10.14
cat /etc/os-release
):uname -a
):dmidecode | egrep -i 'manufacturer|product' |sort -u
)kubectl exec -n onecloud $(kubectl get pods -n onecloud | grep climc | awk '{print $1}') -- climc version-list
):The text was updated successfully, but these errors were encountered: