From owner-freebsd-ports@FreeBSD.ORG Mon Oct 5 02:54:47 2009 Return-Path: Delivered-To: freebsd-ports@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id A2913106568F for ; Mon, 5 Oct 2009 02:54:47 +0000 (UTC) (envelope-from dougb@FreeBSD.org) Received: from mail2.fluidhosting.com (mx21.fluidhosting.com [204.14.89.4]) by mx1.freebsd.org (Postfix) with ESMTP id 38DA78FC16 for ; Mon, 5 Oct 2009 02:54:47 +0000 (UTC) Received: (qmail 21770 invoked by uid 399); 5 Oct 2009 02:54:46 -0000 Received: from localhost (HELO foreign.dougb.net) (dougb@dougbarton.us@127.0.0.1) by localhost with ESMTPAM; 5 Oct 2009 02:54:46 -0000 X-Originating-IP: 127.0.0.1 X-Sender: dougb@dougbarton.us Message-ID: <4AC95FF5.7030608@FreeBSD.org> Date: Sun, 04 Oct 2009 19:54:45 -0700 From: Doug Barton Organization: http://www.FreeBSD.org/ User-Agent: Thunderbird 2.0.0.23 (X11/20090822) MIME-Version: 1.0 To: Guoqin Ren References: <4AC94C27.6040305@gmail.com> In-Reply-To: <4AC94C27.6040305@gmail.com> X-Enigmail-Version: 0.96.0 OpenPGP: id=D5B2F0FB Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Cc: freebsd-ports@freebsd.org Subject: Re: random fetch location X-BeenThere: freebsd-ports@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Porting software to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 05 Oct 2009 02:54:47 -0000 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