I would like to ask that more flexibility be built into automatically choosing sites for downloading. I have just upgraded to CentOS 5.2. When I look for a mirror, I get many choices from Taiwan. Since I am in Hong Kong this makes sense geographically but .... not in terms of bandwidth. Although Taiwan is very close, it is almost the slowest connection I can make. Some .jp sites are good but I find .sg or the US is usually best. This morning I tried to update to the new kernel (92.1.6). My system seemed to die during the download. After some investigation, I found that Yum et al is being defaulted to .tw sites. (base, updates, add ons all go to .tw.) I have now been sitting at base primary.xml.gz for over 15 minutes and am only about 50% done. Is it possible when deciding these default sites to look at actual bandwidth and not just geographical closeness? Mel
>Is it possible when deciding these default sites to look at actual >bandwidth and not just geographical closeness? > >MelMe thinks they call that yum-fastestmirror :) jlc
tech wrote:> I would like to ask that more flexibility be built into automatically > choosing sites for downloading.You can always just disable the yum-fastestmirror plugin if its not working well for you. In /etc/yum/pluginconf.d there should be a file called fastestmirror.conf - look in there, and change enabled=1 to enabled=0. Might be worth running it with verbose=1 for a little while to work out whats going on. Perhaps also reduce the maxhostfileage value to have fastestmirror speed check each mirror more often. There is also always the option of only using mirrors you know work well. To do that, comment out the mirrorlist= lines from /etc/yum.repos.d/CentOS-Base.repo and replace them with baseurl=<url to mirror>. You can have multiple mirrors listed there. man yum.conf for more info on that. -- Karanbir Singh CentOS Project { http://www.centos.org/ } irc: z00dax, #centos at irc.freenode.net
On Thu, Jun 26, 2008 at 11:15 PM, tech <tech at laamail.com> wrote:> I would like to ask that more flexibility be built into automatically > choosing sites for downloading. > > I have just upgraded to CentOS 5.2. When I look for a mirror, I get many > choices from Taiwan. Since I am in Hong Kong this makes sense geographically > but .... not in terms of bandwidth. > > Although Taiwan is very close, it is almost the slowest connection I can > make. Some .jp sites are good but I find .sg or the US is usually best. > > This morning I tried to update to the new kernel (92.1.6). My system seemed > to die during the download. After some investigation, I found that Yum et al > is being defaulted to .tw sites. (base, updates, add ons all go to .tw.) I > have now been sitting at base primary.xml.gz for over 15 minutes and am only > about 50% done. > > Is it possible when deciding these default sites to look at actual > bandwidth and not just geographical closeness?Mel: I had this problem, before fastest mirror. The nearest server to me, geographically, probably would not be the fastest for me. Another example is Sourceforge. They set up downloads from Brazil. I'm in Colombia. I change that to a server in the USA. Thank you for fastest mirror! Get fastest mirror fixed and it will work for you! BTW, when I upgraded 2 Desktops, from 5.1 to 5.2, on our 550k connection, it took just over an hour to get approximately 489 MB of Packages Downloaded. (DL speed from the USA was well above 550k, for both downloads). HK is probably connected directly to the USA, via satellite and/or undersea cable and it should be fast for you, downloading from the USA. Lanny -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.centos.org/pipermail/centos/attachments/20080627/570cbe34/attachment-0001.html>