arrow icon indicating copy to clipboard operation
arrow copied to clipboard

[Python/C++] Make upload size per part configurable when uploading to S3

Open phofl opened this issue 2 years ago • 4 comments

Describe the enhancement requested

Currently, the size of every part in a multipart upload is hard-coded here: https://github.com/apache/arrow/blob/d2970e1d047f1bd31c31995c35450a7e5bfce3c0/cpp/src/arrow/filesystem/s3fs.cc#L1394-L1400

We've run into issues where the request rate to s3 is too high when uploading form a bigger cluster and S3 errors.

OSError("When completing multiple part upload for key '***' in bucket '***': AWS Error SLOW_DOWN during CompleteMultipartUpload operation: Please reduce your request rate.")

We've tried alleviating this with different s3 bucket prefixes, but this didn't solve the problem completely.

Would you be open to expose an option that makes the part size configurable so that we can configure the chunk size?

Component(s)

C++, Python

phofl avatar Mar 08 '24 10:03 phofl

Hi @phofl,

Thanks for bringing up this topic. This limitation of the fixed size parts also prevents uploading objects larger than 100GB which I think is quite low compared to the maximum object size(5 TB) supported by AWS S3. I would be very interested for a solution to this issue.

My preferred solution would be having the part size configurable per output stream. I guess that could still work for Cloudflare R2.

Behcet

behcetm avatar Mar 14 '24 08:03 behcetm

There is also another issue created for this https://github.com/apache/arrow/issues/41506

behcetm avatar Apr 28 '25 09:04 behcetm

This issue has been marked as stale because it has had no activity in the past 365 days. Please remove the stale label or comment below, or this issue will be closed in 14 days. If this improvement is still desired but has no current owner, please add the 'Status: needs champion' label.

github-actions[bot] avatar May 03 '26 11:05 github-actions[bot]

I think this is still a valid issue limiting the maximum object size. Maybe it can be merged with https://github.com/apache/arrow/issues/41506?

behcetm avatar May 04 '26 12:05 behcetm