I'm using rclone to copy each 50MB file on 500 VMs to 1 VM, so there're 500 files totally copying to 1 target VM. At the beginning, I met the ssh session problem, so I tuned the ssh parameters of the target VM as below:
MaxSessions 2000
ClientAliveInterval 1
ClientAliveCountMax 5
MaxStartups 1000
But still the files on the target VM are not completed. I got the rclone error message from one source VM.
2020/03/12 17:16:32 DEBUG : rclone: Version "v1.51.0" starting with parameters ["rclone" "copy" "-vv" "/tmp/192-168-1-64_2020-03-12-17-15-01_testfile" "target:/myramdisk/"]
2020/03/12 17:16:32 DEBUG : Using config file from "/root/.config/rclone/rclone.conf"
2020/03/12 17:16:33 DEBUG : sftp://root@192.168.1.170:22//myramdisk/: New connection 192.168.1.64:42586->192.168.1.170:22 to "SSH-2.0-OpenSSH_7.4"
2020/03/12 17:16:34 DEBUG : 192-168-1-64_2020-03-12-17-15-01_testfile: Need to transfer - File not found at Destination
2020/03/12 17:16:47 DEBUG : 192-168-1-64_2020-03-12-17-15-01_testfile: Removed after failed upload: sftp: "Failure" (SSH_FX_FAILURE)
2020/03/12 17:16:47 ERROR : 192-168-1-64_2020-03-12-17-15-01_testfile: Failed to copy: Update ReadFrom failed: sftp: "Failure" (SSH_FX_FAILURE)
2020/03/12 17:16:47 ERROR : Attempt 1/3 failed with 1 errors and: Update ReadFrom failed: sftp: "Failure" (SSH_FX_FAILURE)
2020/03/12 17:16:47 DEBUG : 192-168-1-64_2020-03-12-17-15-01_testfile: Need to transfer - File not found at Destination
2020/03/12 17:16:49 DEBUG : 192-168-1-64_2020-03-12-17-15-01_testfile: Removed after failed upload: sftp: "Failure" (SSH_FX_FAILURE)
2020/03/12 17:16:51 ERROR : 192-168-1-64_2020-03-12-17-15-01_testfile: Failed to copy: Update ReadFrom failed: sftp: "Failure" (SSH_FX_FAILURE)
2020/03/12 17:16:51 ERROR : Attempt 2/3 failed with 1 errors and: Update ReadFrom failed: sftp: "Failure" (SSH_FX_FAILURE)
2020/03/12 17:16:51 DEBUG : 192-168-1-64_2020-03-12-17-15-01_testfile: Need to transfer - File not found at Destination
Below is my rclone config file. Thanks!
[target]
type = sftp
host = 192.168.1.170
user = root
port = 22
pass = ***
use_insecure_cipher = false
md5sum_command = md5sum
sha1sum_command = sha1sum