Closed wanghanyuxi closed 2 years ago
May be it is helpful to allow user to change 'maxParallelWorkers' with env. The mechanism of dynamic increase of workers may not be suitable for low-speed and unstable network environment.
@wanghanyuxi mc
retries such errors can you provide --debug
information?
May be it is helpful to allow user to change 'maxParallelWorkers' with env.
You can set GOMAXPROCS=8
c:
mc:
14e
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>RequestTimeout
mc:
stackTrace:
(3) cp-main.go:579 cmd.doCopySession(..) Tags: [/data/logs/test5]
(2) common-methods.go:592 cmd.uploadSourceToTargetURL(..) Tags: [/data/logs/test5]
(1) common-methods.go:329 cmd.putTargetStream(..) Tags: [ks3, http://xxx.com/test/test5]
(0) client-s3.go:1062 cmd.(*S3Client).Put(..)
Release-Tag:RELEASE.2021-11-05T10-05-06Z | Commit:9f6b50014291 | Host:ubuntu | OS:linux | Arch:amd64 | Lang:go1.17.2 | Mem:3.0 GB/3.3 GB | Heap:3.0 GB/3.2 GB
mc:
Hi,
Too many '408' leads to failure of 'mc cp'. With config of 'export MC_UPLOAD_MULTIPART_THREADS=1, export GOMAXPROCS=1', the number of 'worker' in mc can be controlled within 10 on my machine. The number of cpu cores of my machine is 8. But With limited bandwidth(2~3MB/s), the number of concurrency 10 may still lead to ‘408’. So, support lower number of startup threads (now is 8, the number of cpu cores) will be better to this case. This case will happen when using 'mc cp' to copy large amount of data with limited bandwidth.
Thank you very much.
This case will happen when using 'mc cp' to copy large amount of data with limited bandwidth.
This is not an issue of that - it's your server that is not handling the load - and it seems to have really low timeouts perhaps for calls.
mc: Response Time: 1m25.995259s
It has an exact 86secs of timeout.
Hello, I am trying to use 'mc cp' to copy files from local to server. Local bandwidth is 2MB/s, but concurrency of mc can reach to 40+. Slow single connection leads to server failure with status 408. Still not getting better even change the concurrency to 1 for mutiPartPut with 'export MC_UPLOAD_MULTIPART_THREADS=1'.
Expected behavior
copy success with status 200 of server
Actual behavior
some request return 408.
Steps to reproduce the behavior
1、Local bandwidth is slow and unstable. 2、using ‘mc cp’ to copy local files to server.
mc --version
mc version RELEASE.2021-11-05T10-05-06Z
System information