Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 04 Oct 2009 19:54:45 -0700
From:      Doug Barton <dougb@FreeBSD.org>
To:        Guoqin Ren <renguoqin@gmail.com>
Cc:        freebsd-ports@freebsd.org
Subject:   Re: random fetch location
Message-ID:  <4AC95FF5.7030608@FreeBSD.org>
In-Reply-To: <4AC94C27.6040305@gmail.com>
References:  <4AC94C27.6040305@gmail.com>

next in thread | previous in thread | raw e-mail | index | archive | help
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




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?4AC95FF5.7030608>