[Pulp-list] Limiting the bandwidth for a repository sync

John Matthews jmatthew at redhat.com
Fri Apr 1 14:25:30 UTC 2011


We have added the ability to limit the bandwidth consumed by a repository sync.
This can be specified at a global level through pulp.conf, or adjusted on a per sync basis through the CLI/WebService calls.

Below is a summary, more information is available at: https://fedorahosted.org/pulp/wiki/RepoSync/LimitBandwidth 

`/etc/pulp/pulp.conf`:
[yum]
threads: 15
.....
# Uncomment below to set a bandwidth limit in KB/sec for downloading
# 0 represents unlimited
# limit_in_KB: 500 


CLI:
  `--limit` and `--threads` have been added to the CLI for `repo sync`.
  $ sudo pulp-admin repo sync --id sync_test --limit 20 --threads 1 -F


WS:
 'limit' and 'threads' are 2 optional parameters added to  `/repositories/<repository id>/sync/`

The value specified for `limit` is on a per thread basis.




More information about the Pulp-list mailing list