aptly-dev / aptly

aptly - Debian repository management tool
https://www.aptly.info/
MIT License
2.54k stars 369 forks source link

aptly ignores -download-limit and downloadConcurrency, downloads at full speed #1250

Open Kepler-Br opened 4 months ago

Kepler-Br commented 4 months ago

Detailed Description

I'm using 1.5.0 version and this command: aptly -ignore-signatures -config ./aptly.conf mirror update -download-limit=10 bookworm-non-free I've tried to set downloadSpeedLimit in the config but nothing works

Downloading http://ftp.ru.debian.org/debian/pool/non-free/t/testu01/libtestu01-0-dev_1.2.3+ds1-2_armel.deb...
^CAborting... press ^C once again to abort immediately
Error downloading http://ftp.ru.debian.org/debian/pool/non-free/t/testu01/libtestu01-0-dev_1.2.3+ds1-2_armel.deb: http://ftp.ru.debian.org/debian/pool/non-free/t/testu01/libtestu01-0-dev_1.2.3+ds1-2_armel.deb: context canceled retrying...
 79.93 MiB / 11.48 GiB [>----------------------------------------------------------]   0.68% 32.53 MiB/s 5m54s

The config is pretty much the default one except for downloadSpeedLimit:

{
  "rootDir": "/host/aptly",
  "downloadConcurrency": 1,
  "downloadSpeedLimit": 10,
  "downloadRetries": 0,
  "downloader": "default",
  "databaseOpenAttempts": -1,
  "architectures": [],
  "dependencyFollowSuggests": false,
  "dependencyFollowRecommends": false,
  "dependencyFollowAllVariants": false,
  "dependencyFollowSource": false,
  "dependencyVerboseResolve": false,
  "gpgDisableSign": false,
  "gpgDisableVerify": false,
  "gpgProvider": "gpg",
  "downloadSourcePackages": false,
  "skipLegacyPool": true,
  "ppaDistributorID": "ubuntu",
  "ppaCodename": "",
  "skipContentsPublishing": false,
  "skipBz2Publishing": false,
  "FileSystemPublishEndpoints": {},
  "S3PublishEndpoints": {},
  "SwiftPublishEndpoints": {},
  "AzurePublishEndpoints": {},
  "AsyncAPI": false,
  "enableMetricsEndpoint": false
}

Context

It's critical for me to not bombard other servers with my full bandwidth

Your Environment

Ubuntu 22.04 or Ubuntu 22.04 but in docker