Skip to content

s3 cp with max_concurrent_requests #5941

Closed
@henriqueribeiro

Description

@henriqueribeiro

Confirm by changing [ ] to [x] below:

Issue is about usage on:

  • Service API : I want to do X using Y service, what should I do?
  • CLI : passing arguments or cli configurations.
  • Other/Not sure.

Platform/OS/Hardware/Device
What are you running the cli on?

aws --version
aws-cli/2.1.0 Python/3.7.3 Linux/5.8.0-43-generic exe/x86_64.ubuntu.20

Describe the question
I want to reduce the number of threads used to copy a file from S3. I have been playing with max_concurrent_requests and it's not making sense to me. I'm trying to copy a single file (~41GB) to my local machines and if I set max_concurrent_requests to 1, I still get 5 threads copying the file. If I change it to 2, I get 6 threads. What is the rationale behind this?

Also, looking into the documentation:

The aws s3 transfer commands are multithreaded. At any given time, multiple requests to Amazon S3 are in flight. For example, if you are uploading a directory via aws s3 cp localdir s3://bucket/ --recursive, the AWS CLI could be uploading the local files localdir/file1, localdir/file2, and localdir/file3 in parallel. The max_concurrent_requests specifies the maximum number of transfer commands that are allowed at any given time.

Does this configuration limit only the number of files concurrently copied and not the number of threads used for a single multipart file?

Logs/output
Get full traceback and error logs by adding --debug to the command.

Metadata

Metadata

Assignees

Labels

closed-for-stalenessguidanceQuestion that needs advice or information.investigatingThis issue is being investigated and/or work is in progress to resolve the issue.response-requestedWaiting on additional info and feedback. Will move to "closing-soon" in 7 days.

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions