1
0
Fork 0
mirror of https://github.com/moby/moby.git synced 2022-11-09 12:21:53 -05:00
moby--moby/distribution/xfer
Yong Tang 7368e41c07 Docker pull/push with max concurrency limits.
This fix tries to address issues raised in #20936 and #22443
where `docker pull` or `docker push` fails because of the
concurrent connection failing.
Currently, the number of maximum concurrent connections is
controlled by `maxDownloadConcurrency` and `maxUploadConcurrency`
which are hardcoded to 3 and 5 respectively. Therefore, in
situations where network connections don't support multiple
downloads/uploads, failures may encounter for `docker push`
or `docker pull`.

This fix tries changes `maxDownloadConcurrency` and
`maxUploadConcurrency` to adjustable by passing
`--max-concurrent-uploads` and `--max-concurrent-downloads` to
`docker daemon` command.

The documentation related to docker daemon has been updated.

Additional test case have been added to cover the changes in this fix.

This fix fixes #20936. This fix fixes #22443.

Signed-off-by: Yong Tang <yong.tang.github@outlook.com>
2016-05-11 19:44:54 -07:00
..
download.go Docker pull/push with max concurrency limits. 2016-05-11 19:44:54 -07:00
download_test.go Merge pull request #21372 from anusha-ragunathan/ctrd-rebase 2016-03-30 23:10:04 -07:00
transfer.go Docker pull/push with max concurrency limits. 2016-05-11 19:44:54 -07:00
transfer_test.go Fix flaky test TestTransfer (take 2) 2016-03-28 18:27:29 -07:00
upload.go Docker pull/push with max concurrency limits. 2016-05-11 19:44:54 -07:00
upload_test.go all: remove some unused funcs and variables 2016-04-06 10:40:01 -07:00