From owner-freebsd-hubs@FreeBSD.ORG Wed Sep 12 14:43:10 2012 Return-Path: Delivered-To: freebsd-hubs@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 6D28F106566B; Wed, 12 Sep 2012 14:43:10 +0000 (UTC) (envelope-from jonny@jonny.eng.br) Received: from coe.ufrj.br (roma.coe.ufrj.br [IPv6:2001:470:8ce3:1::65]) by mx1.freebsd.org (Postfix) with ESMTP id 18A678FC08; Wed, 12 Sep 2012 14:43:10 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by coe.ufrj.br (Postfix) with ESMTP id DC7491480E6F; Wed, 12 Sep 2012 11:43:05 -0300 (BRT) X-Virus-Scanned: amavisd-new at coe.ufrj.br Received: from coe.ufrj.br ([146.164.53.65]) by localhost (roma.coe.ufrj.br [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id wiNgOFjFP5JE; Wed, 12 Sep 2012 11:43:00 -0300 (BRT) Received: from [IPv6:2804:294:4080:3:e464:e83a:604:d800] (unknown [IPv6:2804:294:4080:3:e464:e83a:604:d800]) (using TLSv1 with cipher DHE-RSA-CAMELLIA256-SHA (256/256 bits)) (No client certificate requested) by coe.ufrj.br (Postfix) with ESMTPSA id B1CCC1480A41; Wed, 12 Sep 2012 11:42:58 -0300 (BRT) Message-ID: <50509F69.2010603@jonny.eng.br> Date: Wed, 12 Sep 2012 11:42:49 -0300 From: =?ISO-8859-1?Q?Jo=E3o_Carlos_Mendes_Lu=EDs?= User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:15.0) Gecko/20120828 Thunderbird/15.0 MIME-Version: 1.0 To: Mathieu Arnold References: <021473D8D9E6A7A785543024@ogg.in.absolight.net> In-Reply-To: <021473D8D9E6A7A785543024@ogg.in.absolight.net> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Cc: freebsd-hubs@freebsd.org Subject: Re: freebsd-update "mirror" howto X-BeenThere: freebsd-hubs@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "FreeBSD Distributions Hubs: mail sup ftp" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 12 Sep 2012 14:43:10 -0000 On 09/12/2012 08:42 AM, Mathieu Arnold wrote: > It's not really a hubs thing, but anyway, I thought I'd share my few bits... > > For a long time, I pondered about upgrading my 300+ freebsd servers, and a > few months back freebsd-update seemed like the way to go... > > Now, I did not want all those servers to hit the main freebsd-update > servers, so I setup a nice local "mirror" using varnish. > > Varnish's configuration is there https://gist.github.com/2637602 and it > would be even better if varnish could use SRV records to define it's > backends by itself, but for now, there are a couple of shell that I have to > run whenever I feel like it to update the list. Recent versions of varnish can use DNS servers for backends. Even if you cannot use SRV records, you can always setup a separate DNS server with the "backend" addresses. Some setups use a hack with load balancers where you can use the SAME IP address for the varnish and the "backend" server, making caching almost transparent.