From owner-freebsd-ports@FreeBSD.ORG Tue Nov 11 16:19:05 2008 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 A3D421065670 for ; Tue, 11 Nov 2008 16:19:05 +0000 (UTC) (envelope-from rea-fbsd@codelabs.ru) Received: from 0.mx.codelabs.ru (0.mx.codelabs.ru [144.206.177.45]) by mx1.freebsd.org (Postfix) with ESMTP id 5ACD88FC18 for ; Tue, 11 Nov 2008 16:19:05 +0000 (UTC) (envelope-from rea-fbsd@codelabs.ru) DomainKey-Signature: a=rsa-sha1; q=dns; c=simple; s=one; d=codelabs.ru; h=Received:Date:From:To:Cc:Subject:Message-ID:References:MIME-Version:Content-Type:Content-Disposition:In-Reply-To:Sender; b=B2VGzGGh/aaQmwbMsmrhhA1L37FP9aL27qRHEJ+VJhv9yVb0jS9LbL24cSKmaw32ITKwb080Cg0SZ+hOaGqykfa466rF8VKVyZ4OAMgqtulSCYDmcyuErK65dvKbxvq9mGxA7Tv6gX2UCornfUYcr9ntDtKsUzMr9cbnp20nydA=; Received: from void.codelabs.ru (void.codelabs.ru [144.206.177.25]) by 0.mx.codelabs.ru with esmtpsa (TLSv1:AES256-SHA:256) id 1KzvxI-000Nl7-7S; Tue, 11 Nov 2008 19:19:04 +0300 Date: Tue, 11 Nov 2008 19:19:03 +0300 From: Eygene Ryabinkin To: Alexey Shuvaev Message-ID: References: <20081110155616.DA66A1AF424@void.codelabs.ru> <20081111032350.0b22a853@gumby.homeunix.com> <20081111153554.GA4294@wep4035.physik.uni-wuerzburg.de> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="Ep5m4srWGXPl6O+g" Content-Disposition: inline In-Reply-To: <20081111153554.GA4294@wep4035.physik.uni-wuerzburg.de> Sender: rea-fbsd@codelabs.ru Cc: freebsd-ports@freebsd.org Subject: Re: ports/128754: [port infrastructure] implement master sites randomization 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: Tue, 11 Nov 2008 16:19:05 -0000 --Ep5m4srWGXPl6O+g Content-Type: text/plain; charset=koi8-r Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Tue, Nov 11, 2008 at 04:35:54PM +0100, Alexey Shuvaev wrote: > On Tue, Nov 11, 2008 at 03:23:50AM +0000, RW wrote: > > On Mon, 10 Nov 2008 18:56:16 +0300 (MSK) > > I think it would be sensible to seed srand from a hash of something > > reproducible to make better use of caches - maybe DISTNAME+DISTVERSION. > > > Maybe I don't understand something, but is RANDOMIZE_MASTER_SITES > (see bsd.port.mk for details) not enough? It affects though all > sites, not only SF. It is enough, but it requires /usr/games/random to be present. Not all servers have 'games' distribution installed, but I want them to randomize master sites. For the feeding the hashes: RW, do you mean HTTP caches? In principle, this is a neat idea: it will achieve load-balancing between the sites. But as it will use the same master sites order for the given port, this will be failing when the first download site is almost down: the download will take very long. But probably stable order of the sites can be made settable via the variable, e.g. RANDOMIZE_MASTER_SITE_REPRODUCIBLY. Will it be fine? Please, note that this can be achievable only for the awk script: random(6) can not be currently directed to do this. --=20 Eygene _ ___ _.--. # \`.|\..----...-'` `-._.-'_.-'` # Remember that it is hard / ' ` , __.--' # to read the on-line manual =20 )/' _/ \ `-_, / # while single-stepping the kernel. `-'" `"\_ ,_.-;_.-\_ ', fsc/as # _.-'_./ {_.' ; / # -- FreeBSD Developers handbook=20 {_.-``-' {_/ # --Ep5m4srWGXPl6O+g Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.9 (FreeBSD) iEYEARECAAYFAkkZsHcACgkQthUKNsbL7YgECgCeIaEVLq8s9HM0Dv0mIeQ8hHsd XTkAoIQhp6Z5A09cmki+QoG07QhwBAHo =PI6i -----END PGP SIGNATURE----- --Ep5m4srWGXPl6O+g--