Comments (3)
Yes. What part of the documentation is unclear?
// ConcurrentStreamParts will create NumThreads buffers of PartSize bytes,
// fill them serially and upload them in parallel.
from minio-go.
Thanks for your reply. we use it as comments, code as below, and i passed the file size to the function PutObject, but the function “putObjectMultipartStreamParallel” did not use this size and instead used '-1'. I am not sure if it cause the large memory usage. and how to use it.
putopt := minio.PutObjectOptions{
ConcurrentStreamParts: true,
NumThreads: uint(base.S3MinioDownloadConcurrency),
}
// add mime type
mime := CheckMimeType(filename)
if mime != "" {
putopt.ContentType = mime
}
info, err := client.PutObject(context.Background(), bucket, path, reader, size, putopt)
from minio-go.
why the function “https://github.com/minio/minio-go/blob/6c2c69f9e8f50b2f65a337ec5e98044e9d558e79/api-put-object-streaming.go#L478” use '-1' as file size not real file size? @klauspost
from minio-go.
Related Issues (20)
- Parallel upload in PutObject is only selected for os.File, not for other io.ReaderAt instances. Possibly bug? HOT 4
- Add Amazon EKS Pod Identity support HOT 3
- Resize image with minio client HOT 1
- RemoveObject() does not work as i expect! HOT 4
- Service account GCP HOT 1
- Retrieve object metadata on GCS HOT 2
- How to Validate Checksums using MD5 in MinIO with Go SDK for multi-part upload
- Retry attempt http PUTs for 'mc cp' fail with early EOF HOT 2
- PutObject with expires invalid HOT 1
- Does the Minio SDK use multiple connections to saturate the bandwidth? HOT 1
- Sec vul CVE-2022-28948 from pkg/credentials > ini.v1 > stretchr/testify > yaml.v3 HOT 1
- about Access Policy questiong
- Suggestion : We should default to not using s3 dual stack urls and setting the flag as false by default, considering the inability to use vpc private link in this case HOT 2
- how to set or get metadata? HOT 2
- GCP endpoint validation error HOT 1
- Vulnerabilities due to old go version HOT 5
- How to modify metadata when uploading files in the following way HOT 1
- Localhost driver? HOT 1
- OpenTelemetry Tracing HOT 4
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from minio-go.