random fetch location

Doug Barton dougb at FreeBSD.org
Mon Oct 5 02:54:47 UTC 2009


Guoqin Ren wrote:
> Hi,
> 
> Maybe it's a naive question.  When I install a package from ports, it
> often needs to fetch some files. But sometimes it takes a long time
> before finding an available server to fetch. I also notice that  it will
> try the locations/urls one by one, however the order doesn't change
> (correct me if I'm wrong).  So the very first server on the list will
> get a lot of traffic since everyone will fetch the files from it.  Is
> there any way to let it randomly pick a url from the list to evenly
> distribute the traffic among all the servers?

Two solutions:

1. Add 'RANDOMIZE_MASTER_SITES=        true' to /etc/make.conf
2. Check out ports-mgmt/fastest_sites


hth,

Doug

-- 

    This .signature sanitized for your protection



More information about the freebsd-ports mailing list