Skip to content
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

Limiting mc mirror parallel downloads #4084

Closed
kevinlul opened this issue May 10, 2022 · 3 comments
Closed

Limiting mc mirror parallel downloads #4084

kevinlul opened this issue May 10, 2022 · 3 comments

Comments

@kevinlul
Copy link

Expected behavior

Judging from previous issues on this subject, setting GOMAXPROCS=1 should limit the number of parallel downloads mc mirror attempts from the same S3 server.

Actual behavior

mc mirror continues to attempt to download several objects in parallel even with GOMAXPROCS=1 and the number of connections used varies wildly between one and over a dozen. This slows down the download for all the objects it is trying to download when the bottleneck is bandwidth, making it slower than an equivalent rsync, and increases the load on the server unnecessarily.

Steps to reproduce the behavior

  1. Create a MinIO server with a bunch of large objects.
  2. GOMAXPROCS=1 mc mirror --watch --overwrite --remove --quiet NEWSERVER/bucket localdisk
  3. Observe from logs that mc attempts to download several objects at once.

mc --version

mc version RELEASE.2022-05-09T04-08-26Z

System information

CentOS 7

@dormanze
Copy link
Contributor

You can use MC_UPLOAD_MULTIPART_THREADS(default 4) parameter to limit the number of threads , and use MC_UPLOAD_MULTIPART_SIZE(default unlimited) parameter to limit the upload size.
image

@harshavardhana
Copy link
Member

^^ these values are "per" object

@stale
Copy link

stale bot commented Oct 14, 2022

This issue has been automatically marked as stale because it has not had recent activity. It will be closed after 21 days if no further activity occurs. Thank you for your contributions.

@stale stale bot added the stale label Oct 14, 2022
@stale stale bot closed this as completed Nov 13, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants