<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns="http://www.w3.org/TR/REC-html40">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=us-ascii">
<meta name="Generator" content="Microsoft Word 15 (filtered medium)">
<style><!--
/* Font Definitions */
@font-face
{font-family:"Cambria Math";
panose-1:2 4 5 3 5 4 6 3 2 4;}
@font-face
{font-family:Calibri;
panose-1:2 15 5 2 2 2 4 3 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
{margin:0cm;
margin-bottom:.0001pt;
font-size:11.0pt;
font-family:"Calibri",sans-serif;
mso-fareast-language:EN-US;}
a:link, span.MsoHyperlink
{mso-style-priority:99;
color:#0563C1;
text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
{mso-style-priority:99;
color:#954F72;
text-decoration:underline;}
span.EmailStyle17
{mso-style-type:personal-compose;
font-family:"Calibri",sans-serif;
color:windowtext;}
.MsoChpDefault
{mso-style-type:export-only;
font-family:"Calibri",sans-serif;
mso-fareast-language:EN-US;}
@page WordSection1
{size:612.0pt 792.0pt;
margin:72.0pt 72.0pt 72.0pt 72.0pt;}
div.WordSection1
{page:WordSection1;}
--></style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]-->
</head>
<body lang="EN-AU" link="#0563C1" vlink="#954F72">
<div class="WordSection1">
<p class="MsoNormal">Evening all.<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">I was doing some poking around with some centos servers this evening and I wanted to try and understand what type of smarts are behind mirrorlist.centos.org.<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">I know this has been covered before (somewhat). I know there is no way (at present) to “lock” a server on our network down to only using a specific mirror (short of hard coding the mirror URL into the yum repo file). I am aware of such
capabilities when using mirrormanager, but we aren’t there yet.<o:p></o:p></p>
<p class="MsoNormal">As a result, when using the default method of fastestmirrors, I will generally be sent to a mirror that is close to me.<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">However, I also know there is some level of geo-smarts involved. Usually there is a good chance I will be sent to a mirror within the same country as my server, but not always. When querying mirrorlist, 10 results are returned as expected
However out of those 10 results I find that:<o:p></o:p></p>
<p class="MsoNormal">7 of the mirrors are in the same country as my server (Australia)<o:p></o:p></p>
<p class="MsoNormal">The remaining three are in three separate countries (USA, Canada, Ireland).<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">If I wait a short while and query mirrorlist again, I get different results:<o:p></o:p></p>
<p class="MsoNormal">8 of the mirrors are in the same country as my server (Australia). Interestingly out of these 8 mirrors, one is shown twice (first for HTTP then again for FTP)<br>
The remaining two mirrors are in Canada and Japan<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">It appears to alternate between 7 and 8 local mirrors, at least from all the testing I have done. With 2-3 mirrors in random countries.<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">Here is what I found interesting. When performing the same tests from servers in other countries (UK and USA), every time I queried mirrorlist, all 10 mirrors returned were local to the server (ie USA server was always provided 10 mirrors
located in USA, and UK server was always provided 10 mirrors in UK)<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">Soooooo what I was wondering is how the initial list is determined? Obviously there is some level of geo-smarts involved here as most of the mirrors returned at in the same country. But why are a few outside for Australia? My guess is that
something may have been implemented a long time ago before Australia had 10 mirrors in total?<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">Anyhow, enjoy your evening folks. <o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">Cheers,<o:p></o:p></p>
<p class="MsoNormal">Seamus<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
</div>
</body>
</html>