<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=us-ascii">
</head>
<body dir="auto">
Thanks for the tip about repo length! I had not considered providing the packages from a second repo, only repointing the base repo.
<div><br>
<div id="AppleMailSignature" dir="ltr"><span style="font-size: 13pt;">DR</span>
<div><br>
</div>
<div><span style="background-color: rgba(255, 255, 255, 0);">-- <br>
David Richardson <<a dir="ltr" href="mailto:david.richardson@utah.edu" x-apple-data-detectors="true" x-apple-data-detectors-type="link" x-apple-data-detectors-result="2">david.richardson@utah.edu</a>></span></div>
<div><span style="background-color: rgba(255, 255, 255, 0); font-size: 13pt;">Center for High Performance Computing</span></div>
<div><span style="background-color: rgba(255, 255, 255, 0); font-size: 13pt;">University of Utah</span></div>
</div>
<div dir="ltr"><br>
On Nov 12, 2018, at 2:47 PM, Anssi Johansson <<a href="mailto:avij@centosproject.org">avij@centosproject.org</a>> wrote:<br>
<br>
</div>
<blockquote type="cite">
<div dir="ltr"><span>The chances for your mirror to be included in the 10 randomly picked mirrors is around 10/11 (91%) which does not sound that bad to me. The fastestmirror yum plugin should then theoretically be able to pick your mirror from that list of
 10 mirrors, but if it fails, you will end up using some other mirror from Illinois. The fastestmirror plugin is suitable for determining if a mirror is in the same country or not, but its precision might not be sufficient for determining the absolutely fastest
 mirror if the candidate mirrors are very close to you. Note that the fastestmirror plugin does not measure bandwidth, but DNS resolution time and the time it takes to establish a TCP connection to each mirror. There can be small fluctuations in these measurements.</span><br>
<span></span><br>
<span>One way to guarantee your mirror's inclusion in the top 10 (at least at this moment) would be to make your mirror available over IPv6, and make the
<a href="http://mirrorlist.centos.org">mirrorlist.centos.org</a> request from an IPv6-enabled host.
<a href="http://mirrorlist.centos.org">mirrorlist.centos.org</a> returns only IPv6-capable mirrors if accessed via IPv6. There are currently five IPv6-enabled mirrors in Illinois.</span><br>
<span></span><br>
<span>Some people have suggested "overriding" <a href="http://mirrorlist.centos.org">
mirrorlist.centos.org</a>, but I'm not a fan of that approach. That would break if
<a href="http://mirrorlist.centos.org">mirrorlist.centos.org</a> switched to using https, or if
<a href="http://centos.org">centos.org</a> started using DNSSEC. My own approach for my own unpublished private mirror is to drop a .repo file like this in /etc/yum.repos.d:</span><br>
<span></span><br>
<span>---</span><br>
<span>[b]</span><br>
<span>name=CentOS-$releasever - Base</span><br>
<span>baseurl=<a href="http://mirror.example.com/centos/$releasever/os/$basearch/">http://mirror.example.com/centos/$releasever/os/$basearch/</a></span><br>
<span>gpgcheck=1</span><br>
<span>gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-7</span><br>
<span></span><br>
<span>[u]</span><br>
<span>name=CentOS-$releasever - Updates</span><br>
<span>baseurl=<a href="http://mirror.example.com/centos/$releasever/updates/$basearch/">http://mirror.example.com/centos/$releasever/updates/$basearch/</a></span><br>
<span>gpgcheck=1</span><br>
<span>gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-7</span><br>
<span></span><br>
<span>[e]</span><br>
<span>name=CentOS-$releasever - Extras</span><br>
<span>baseurl=<a href="http://mirror.example.com/centos/$releasever/extras/$basearch/">http://mirror.example.com/centos/$releasever/extras/$basearch/</a></span><br>
<span>gpgcheck=1</span><br>
<span>gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-7</span><br>
<span>---</span><br>
<span></span><br>
<span>The trick here is that the default CentOS repositories would also remain active. When yum sees that the update is available from both the "updates" repository and the "u" repository, yum will download the package from the repo whose name is the shortest.
 This way it is not particularly harmful if the local mirror is not up-to-date for some reason, the other packages that are not on the local mirror will get downloaded from other mirrors instead. Obviously this does not meet the "default yum settings" criteria,
 but this should still be easy enough to accomplish using some sort of configuration management tool.</span><br>
<span></span><br>
<span></span><br>
<span>Eric K. Miller kirjoitti 10.11.2018 klo 13.36:</span><br>
<blockquote type="cite"><span>Ah - makes sense.  I was hoping that our mirror would be selected for</span><br>
</blockquote>
<blockquote type="cite"><span>our own systems every time, since the latency is quite a bit lower than</span><br>
</blockquote>
<blockquote type="cite"><span>other mirrors (1ms to 2ms, but still...  would be nice to pull from our</span><br>
</blockquote>
<blockquote type="cite"><span>own repositories with default yum settings).  Is there anything we can</span><br>
</blockquote>
<blockquote type="cite"><span>do?</span><br>
</blockquote>
<blockquote type="cite"><span>Thanks for the quick response!</span><br>
</blockquote>
<blockquote type="cite"><span>Eric</span><br>
</blockquote>
<blockquote type="cite">
<blockquote type="cite"><span>-----Original Message-----</span><br>
</blockquote>
</blockquote>
<blockquote type="cite">
<blockquote type="cite"><span>From: CentOS-mirror [<a href="mailto:centos-mirror-bounces@centos.org">mailto:centos-mirror-bounces@centos.org</a>] On</span><br>
</blockquote>
</blockquote>
<blockquote type="cite"><span>Behalf</span><br>
</blockquote>
<blockquote type="cite">
<blockquote type="cite"><span>Of Anssi Johansson</span><br>
</blockquote>
</blockquote>
<blockquote type="cite">
<blockquote type="cite"><span>Sent: Saturday, November 10, 2018 5:33 AM</span><br>
</blockquote>
</blockquote>
<blockquote type="cite">
<blockquote type="cite"><span>To: <a href="mailto:centos-mirror@centos.org">centos-mirror@centos.org</a></span><br>
</blockquote>
</blockquote>
<blockquote type="cite">
<blockquote type="cite"><span>Subject: Re: [CentOS-mirror] CentOS mirror</span><br>
</blockquote>
</blockquote>
<blockquote type="cite">
<blockquote type="cite"><span></span><br>
</blockquote>
</blockquote>
<blockquote type="cite">
<blockquote type="cite"><span>Yes, the list includes only 10 entries. There are 11 mirrors in</span><br>
</blockquote>
</blockquote>
<blockquote type="cite">
<blockquote type="cite"><span>Illinois, so there is a smallish chance that sometimes your mirror</span><br>
</blockquote>
</blockquote>
<blockquote type="cite">
<blockquote type="cite"><span>doesn't get included in the 10 selected mirrors. The mirrors are</span><br>
</blockquote>
</blockquote>
<blockquote type="cite"><span>picked</span><br>
</blockquote>
<blockquote type="cite">
<blockquote type="cite"><span>randomly, and this process is repeated every 10 minutes or so.</span><br>
</blockquote>
</blockquote>
<blockquote type="cite">
<blockquote type="cite"><span></span><br>
</blockquote>
</blockquote>
<blockquote type="cite">
<blockquote type="cite"><span>Your mirror is not being neglected, ihere was just a bit of bad luck</span><br>
</blockquote>
</blockquote>
<blockquote type="cite">
<blockquote type="cite"><span>this time :)</span><br>
</blockquote>
</blockquote>
<blockquote type="cite"><span>_______________________________________________</span><br>
</blockquote>
<blockquote type="cite"><span>CentOS-mirror mailing list</span><br>
</blockquote>
<blockquote type="cite"><span><a href="mailto:CentOS-mirror@centos.org">CentOS-mirror@centos.org</a></span><br>
</blockquote>
<blockquote type="cite"><span><a href="https://lists.centos.org/mailman/listinfo/centos-mirror">https://lists.centos.org/mailman/listinfo/centos-mirror</a></span><br>
</blockquote>
<span></span><br>
<span>_______________________________________________</span><br>
<span>CentOS-mirror mailing list</span><br>
<span><a href="mailto:CentOS-mirror@centos.org">CentOS-mirror@centos.org</a></span><br>
<span><a href="https://lists.centos.org/mailman/listinfo/centos-mirror">https://lists.centos.org/mailman/listinfo/centos-mirror</a></span><br>
</div>
</blockquote>
</div>
</body>
</html>