-
Notifications
You must be signed in to change notification settings - Fork 553
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
mc mirror takes long time when target bucket contains a lot of files #4873
Comments
Yes, mc mirror does a full source to target comparison when it's ran. This is due to the --remove flag. However, it might be possible to speed up the mirror given that the --remove flag is not present. I will look into this in the coming weeks, no promises on delivery date though since my schedule is rather full. |
Same here. It takes a lot of time to mirror folder with 20 000+ files ( using aws cli solved the problem ) |
I will be looking into this next week, if there is any additional information you want to share, then now is the time :) |
helloHello, I wrote a script to use “mc mirror --remove --overwrite --limit-download $LIMIT_DOWNLOAD --limit-upload $LIMIT_UPLOAD minio-master minio-slave” to synchronize the data of the master node. Even if the data of the two minio nodes are consistent, if the master node is shut down and restarted due to a fault, I will change the direction of the synchronization and transfer the data to the slave node. Then the master will run “mc mirror --remove --overwrite --limit-download $LIMIT_DOWNLOAD --limit-upload $LIMIT_UPLOAD minio-slave minio-master”for synchronization. However, even if the data of the two minio nodes is consistent, minio-master will perform a full synchronization, which will take up a lot of io and cause the server to crash. My mc version is mc:RELEASE.2024-08-26T10-49-58Z |
Hello, has this problem been solved? |
Hey, I have not had time to look into this yet. Just as I was about to start, something else came up. I will see if someone else can take it off my hands. |
This comment was marked as duplicate.
This comment was marked as duplicate.
There is no reason to add more clutter to the issue. This is a low priority item, and will be done when there is bandwidth for it. |
One thing to add, I’m using
Or maybe, |
Expected behavior
Using
mc mirror
to mirror local folder to a target bucket, it should be exit soon if local folder is empty or few files.Actual behavior
It took a long time to start transfer files if the target bucket contains a lot of objects.
Steps to reproduce the behavior
mc mirror --json ./localfolder target/bucket/path
mc --version
mc --version
)mc version RELEASE.2024-01-05T05-04-32Z (commit-id=59eca9fea8984adec1e8e7a1c95d0ea23107ceff)
System information
CentOS release 6.9 (Final) x64
The text was updated successfully, but these errors were encountered: