[CentOS] Re: Automatic site selection for dowload
Johnny Hughes
johnny at centos.org
Fri Jun 27 13:43:14 UTC 2008
Les Mikesell wrote:
> Johnny Hughes wrote:
> Is there a way to coax several hosts behind the same caching proxy to
> use the same URL as the 1st choice but still fail over and try others if
> there is a problem? And preferably without having to manually edit
> files on each machine or coordinate choices.
Fatestmirror does not work with a proxy server ... however you can
adjust your yum.conf to use the priority failover method, from 'man
yumconf':
===================================================================
failovermethod
Either ‘roundrobin’ or ‘priority’.
‘roundrobin’ randomly selects a URL out of the list of URLs to
start with and proceeds through each of them as it encounters a failure
contacting the host.
‘priority’ starts from the first baseurl listed and reads through
them sequentially.
failovermethod defaults to ‘roundrobin’ if not specified.
===================================================================
You can use baseurl=<firstchoice> at the top, then other ones after
that. They will be picked in order.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 251 bytes
Desc: OpenPGP digital signature
URL: <http://lists.centos.org/pipermail/centos/attachments/20080627/6809d281/attachment.sig>
More information about the CentOS
mailing list