Date: Tue, 25 Jan 2000 04:29:54 -0600 From: Richard Wackerbarth <rkw@dataplex.net> To: "Rodney W. Grimes" <freebsd@gndrsh.dnsmgr.net> Cc: hasty@rah.star-gate.com (Amancio Hasty), obrien@FreeBSD.ORG, jdp@polstra.com (John Polstra), current@FreeBSD.ORG Subject: Re: Please help spread the CVSup mirror load more evenly Message-ID: <00012504433301.00830@nomad> In-Reply-To: <200001241838.KAA68737@gndrsh.dnsmgr.net> References: <200001241838.KAA68737@gndrsh.dnsmgr.net>
index | next in thread | previous in thread | raw e-mail
[-- Attachment #1 --]
On Mon, 24 Jan 2000, Rodney W. Grimes wrote:
> This does not need to really be a wrapper around cvs, folks should run
> a tool 1 time to pick the best guess as to what server they should be
> using, stick that value in thier cvsup file and be done with it. If
> jdp calls for a ``this server is being overloaded please move'' folks
> should rerun the selection tool and pick new servers. This latter
> event happens 2 or 3 times a year, it is a waste to run this every time
> you start up cvsup and can cause the grief if you change cvsup servers
> in <1 hour due to the update policy of the mirrors.
I agree that you need to do it with a "run once (in a blue moon?)" script that
helps you select an appropriate host site. But for now, we can leave that to
"manually select a good site"
Here is a patch that I suggested to John the last time this came up.
Rather than patching the supfiles, I "patch" my local `make` configuration.
Just having this in the code might help steer users to a different site.
If we can get most users off of "cvsup.FreeBSD.ORG", we could change that DNS
CNAME to point the underutilized site of the week.
[-- Attachment #2 --]
--- src/Makefile.inc1~ Tue Jan 25 04:12:36 2000
+++ src/Makefile.inc1 Tue Jan 25 04:21:00 2000
@@ -407,17 +407,20 @@
@echo "--------------------------------------------------------------"
@echo ">>> Running ${SUP}"
@echo "--------------------------------------------------------------"
+.if defined(FreeBSD_SUPSITE)
+SITEFLAGS= -h ${FreeBSD_SUPSITE}
+.endif
.if defined(SUPFILE)
- @${SUP} ${SUPFLAGS} ${SUPFILE}
+ @${SUP} ${SUPFLAGS} ${SITEFLAGS} ${SUPFILE}
.endif
.if defined(SUPFILE1)
- @${SUP} ${SUPFLAGS} ${SUPFILE1}
+ @${SUP} ${SUPFLAGS} ${SITEFLAGS} ${SUPFILE1}
.endif
.if defined(SUPFILE2)
- @${SUP} ${SUPFLAGS} ${SUPFILE2}
+ @${SUP} ${SUPFLAGS} ${SITEFLAGS} ${SUPFILE2}
.endif
.if defined(PORTSSUPFILE)
- @${SUP} ${SUPFLAGS} ${PORTSSUPFILE}
+ @${SUP} ${SUPFLAGS} ${SITEFLAGS} ${PORTSSUPFILE}
.endif
.endif
.if defined(CVS_UPDATE)
--- src/etc/defaults/make.conf~ Tue Jan 25 04:14:36 2000
+++ src/etc/defaults/make.conf Tue Jan 25 04:16:42 2000
@@ -197,6 +197,7 @@
#
#SUP= /usr/local/bin/cvsup
#SUPFLAGS= -g -L 2
+#FreeBSD_SUPSITE= cvsup8.FreeBSD.ORG
#SUPFILE= /usr/share/examples/cvsup/standard-supfile
#SUPFILE1= /usr/share/examples/cvsup/secure-supfile
#PORTSSUPFILE= /usr/share/examples/cvsup/ports-supfile
help
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?00012504433301.00830>
