It is possible to limit bandwidth used by yum while downloading package updates using throttle option. In some environments you may want to limit the bandwidth used by servers to do the package updates. Particularly, if you have thousands of servers doing package updates on regular basis. The post outlines steps to limit bandwidth while applying yum package updates with:

1. Systems regustered with subscription manager.

2. Red Hat Network Satellite

 

For Systems registered with subscription manager

 

If the system is registered with Subscription Manager , add throttle value in /etc/yum.conf file to control the yum bandwidth:

# vi /etc/yum.conf
throttle = 50k

 

This puts a throttle of 50k on the yum updates.

 

For systems registered with satellite server

 

If system is registered on satellite server, then throttle configuration is as following where throttle option need to be specify for each channel with which system is subscribed. Edit /etc/yum/pluginconf.d/rhnplugin.conf file and specify “throttle” option for each channel with which system is subscribe.

# vi /etc/yum/pluginconf.d/rhnplugin.conf
[main]
enabled = 1
gpgcheck = 1

# You can specify options per channel, e.g.:
[rhel-x86_64-server]
throttle = 20k

 

Was dit antwoord nuttig? 0 gebruikers vonden dit artikel nuttig (0 Stemmen)