Skip to content

Commit

Permalink
Change maxPartsSize to 40000 and chunk to 16M
Browse files Browse the repository at this point in the history
  • Loading branch information
viveksinghggits committed Mar 5, 2021
1 parent 972d678 commit 4cd4760
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion s3/container.go
Original file line number Diff line number Diff line change
Expand Up @@ -136,7 +136,8 @@ func (c *container) Put(name string, r io.Reader, size int64, metadata map[strin
// based on the total size, because by default only 10,000 parts are allowed
// TotalPartsExceeded: exceeded total allowed configured MaxUploadParts (10000)
_, err = uploader.Upload(upParams, func(u *s3manager.Uploader) {
u.PartSize = 64 * 1024 * 1024 // 64MB part size
u.PartSize = 16 * 1024 * 1024 // 64MB part size
u.MaxUploadParts = 40000
})

if err != nil {
Expand Down

0 comments on commit 4cd4760

Please sign in to comment.