[zypp-devel] find/use fastest mirror?
using, zypper dup with, e.g., a repo @, http://download.opensuse.org/repositories/KDE:/KDE4:/Factory:/Desktop/openSU... i understand the redirectors 'pick' a mirror for me. occassionally, a really slow mirror is picked, e.g., Retrieving: http://download.opensuse.org/repositories/KDE:/KDE4:/Factory:/Desktop/openSU... [done (3.6 K/s)] poking along @ just a few K/s ... is is possible to find/specify "fastest mirror" in zypper? i'm looking for functionality similar to that in yum, http://wiki.centos.org/PackageManagement/Yum/FastestMirror thanks. -- To unsubscribe, e-mail: zypp-devel+unsubscribe@opensuse.org For additional commands, e-mail: zypp-devel+help@opensuse.org
PGNet wrote:
using,
zypper dup
with, e.g., a repo @,
http://download.opensuse.org/repositories/KDE:/KDE4:/Factory:/Desktop/openSU...
i understand the redirectors 'pick' a mirror for me.
occassionally, a really slow mirror is picked, e.g.,
Retrieving: http://download.opensuse.org/repositories/KDE:/KDE4:/Factory:/Desktop/openSU... [done (3.6 K/s)]
poking along @ just a few K/s ...
is is possible to find/specify "fastest mirror" in zypper? i'm looking for functionality similar to that in yum,
http://wiki.centos.org/PackageManagement/Yum/FastestMirror
thanks.
In 11.1 the mirror is chosen by the redirector, which tries to give the fastest one but this is not always true. openSUSE Factory(what will be 11.2) uses metalinks, and also supports mirror profiling, that is, it can record the perfomance of mirrors for your specific case and feed that information on the next download, complementing the information the download redirector gives to you. Also 11.2 (Factory) has robust mirror failover. -- Duncan Mac-Vicar P. - Engineering Manager, YaST SUSE LINUX Products GmbH, GF: Markus Rex, HRB 16746 (AG Nuernberg) -- To unsubscribe, e-mail: zypp-devel+unsubscribe@opensuse.org For additional commands, e-mail: zypp-devel+help@opensuse.org
hi
On Mon, Mar 30, 2009 at 3:15 AM, Duncan Mac-Vicar Prett
In 11.1 the mirror is chosen by the redirector, which tries to give the fastest one but this is not always true.
ok, that's what i'm seeing.
openSUSE Factory(what will be 11.2) uses metalinks, and also supports mirror profiling, that is, it can record the perfomance of mirrors for your specific case and feed that information on the next download, complementing the information the download redirector gives to you.
Also 11.2 (Factory) has robust mirror failover.
i knew abt the metalinks & failover, but not the profiling. that'll help. will that failover trigger only on no_connect, or also on user-definable (e.g. min DL speed) performance threshhold? &, can 11.2/Factory's zypp/aria2c/etc be _safely_ installed on 11.1, or are dependencies an issue? -- To unsubscribe, e-mail: zypp-devel+unsubscribe@opensuse.org For additional commands, e-mail: zypp-devel+help@opensuse.org
PGNet wrote:
will that failover trigger only on no_connect, or also on user-definable (e.g. min DL speed) performance threshhold?
Please read: http://duncan.mac-vicar.com/blog/archives/507 http://duncan.mac-vicar.com/blog/archives/517
&, can 11.2/Factory's zypp/aria2c/etc be _safely_ installed on 11.1, or are dependencies an issue?
No, the ZYpp soname changed so it would break your YaST. However, 11.1 has aria2 support. buggy, disabled by default and experimental, but it has. The main difference, is that in Factory, libzypp read its options and passes the right settings to aria via the command line, while in 11.0 you may still have a chance setting them manually. You may want to try the following experiment. - update aria2c on 11.1 to the latest in network:utilities - set env var ZYPP_ARIA2C=1 to enable aria on 11.1 - edit (root) ~/.aria2/aria2.conf and set - You need to set the following cmd line options in the config file: --server-stat-if=FILE --server-stat-of=FILE and -uri-selector=SELECTOR I guess it would be something like: # input stats server-stat-if=/var/cache/zypp/aria.stats # output stats, same file server-stat-of=/var/cache/zypp/aria.stats uri-selector=adaptative This _may_ work for speed issues. Not likely for failover, IIRC 11.1 aria2c backend had a bug that interprets mirror switches as failures, and that one is only fixed in Factory, I am curious about the experiment above. -- Duncan Mac-Vicar P. - Engineering Manager, YaST SUSE LINUX Products GmbH, GF: Markus Rex, HRB 16746 (AG Nuernberg) -- To unsubscribe, e-mail: zypp-devel+unsubscribe@opensuse.org For additional commands, e-mail: zypp-devel+help@opensuse.org
hi,
On Mon, Mar 30, 2009 at 8:26 AM, Duncan Mac-Vicar Prett
Please read: http://duncan.mac-vicar.com/blog/archives/507 http://duncan.mac-vicar.com/blog/archives/517
aha. thanks.
You may want to try the following experiment. ... This _may_ work for speed issues. Not likely for failover, IIRC 11.1 aria2c backend had a bug that interprets mirror switches as failures, and that one is only fixed in Factory, I am curious about the experiment above.
installed & setup. zypper still seems to work :-) now to watch & see mirror selection for updates with many mirrors (half the time it seems the only available mirror is ftp5.gwdg.de, anyway ... which has become slooooow ...) if there's some specific test that you'd like, pls let me know -- otherwise i'll simply report back as i stumble on results. thanks. -- To unsubscribe, e-mail: zypp-devel+unsubscribe@opensuse.org For additional commands, e-mail: zypp-devel+help@opensuse.org
correction. zypper works to 'rm' ... but, testing on a un-updated DomU, zypper se | grep -i aria2 | grep ^i (empty) setenv ZYPP_ARIA2C 0 zypper dup Building repository 'Apache' cache [done] Building repository 'ApacheMods' cache [done] ... Reading installed packages... Computing distribution upgrade... The following packages are going to be upgraded: bind-libs bind-utils ghostscript-fonts-other ghostscript-fonts-std ghostscript-library ghostscript-omni kernel-source kernel-xen kernel-xen-base kernel-xen-extra kpartx lcms libgimpprint liblcms1 Mesa multipath-tools opensuse-manual_en php5 php5-bcmath php5-bz2 php5-calendar php5-ctype php5-curl php5-dba php5-devel php5-dom php5-fastcgi php5-gd php5-gettext php5-gmp php5-hash php5-iconv php5-json php5-mbstring php5-mcrypt php5-mysql php5-ncurses php5-pdo php5-pear php5-pspell php5-readline php5-shmop php5-soap php5-sockets php5-sqlite php5-suhosin php5-tidy php5-tokenizer php5-xmlreader php5-xmlrpc php5-xmlwriter php5-xsl php5-zip php5-zlib psmisc release-notes-openSUSE sysvinit timezone The following NEW package is going to be installed: opensuse-manual_en-pdf The following packages are going to change vendor: kernel-source kernel-xen kernel-xen-base kernel-xen-extra Overall download size: 135.3 M. After the operation, additional 2.6 M will be used. Continue? [YES/no]: no zypper in aria2 rpm -qa | grep -i aria aria2-1.2.0-2.1 setenv ZYPP_ARIA2C 1 zypper dup Building repository 'Apache' cache [done] Building repository 'ApacheMods' cache [done] ... Loading repository data... Retrieving repository 'Apache' data... Retrieving repository 'ApacheMods' data... ... Reading installed packages... Computing distribution upgrade... Nothing to do. <-------- ??? zypper in opensuse-manual_en-pdf ... Reading installed packages... 'opensuse-manual_en-pdf' not found. Resolving package dependencies... Nothing to do. <-------- ??? -- To unsubscribe, e-mail: zypp-devel+unsubscribe@opensuse.org For additional commands, e-mail: zypp-devel+help@opensuse.org
participants (2)
-
Duncan Mac-Vicar Prett
-
PGNet