-
Notifications
You must be signed in to change notification settings - Fork 288
feat(_put_file): dynamically adjust chunksize based on file size #990
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
3682966 to
d73bf2b
Compare
|
I am glad you are working on this. You may also be interested in fsspec/adlfs#508 , which implemented a coroutine pool rather than batching, a feature we could implement across fsspec ( @anjaliratnam-msft ). |
80ee9b3 to
ec57f88
Compare
`_put_file` will automatically increase the `chunksize` when uploading a large file to remain within 10,000 chunks limit.
83cbb47 to
429802e
Compare
|
I am happy to merge if you are. I believe this must be untestable in moto, right? (edit: unless we patch the limits) |
Given that this logic only applies once the file size reaches >488 GiB, it isn’t testable with moto. I'd prefer not to patch the limits. I have refactored the chunksize calculation and added a unit test. |
|
@martindurant, would it be possible to cut a new release? |
|
I'll do one in the next two days. |
_put_filewill automatically increase thechunksizewhen uploading a large file to remain within 10,000 chunks limit ifchunksizeis not set or isNone.Fixes #971.