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

Mike McCune mmccune at redhat.com
Mon Apr 4 18:07:21 UTC 2011


On 04/01/2011 07:25 AM, John Matthews wrote:
> 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.
>

very cool, will try this out.

-- 
Mike McCune
mmccune AT redhat.com
Red Hat Engineering       | Portland, OR
Systems Management        | 650.254.4248




More information about the Pulp-list mailing list