Am 03.10.2012 16:23, schrieb Zdenek Pavlas:
On Wed Sep 26 08:02:05, Reindl Harald wrote:
> yes, and that is why statistics of mirrors are meaningsless
> because of this fact my idea to give us a config-option
> "dear yum, if the selected mirror provides lower than
> 500 KB/sek try another one because my line can 12 MB/sec"
FWIW, we've increased the low speed limit in urlgrabber from
1 to 1000 B/sec. This should fix the most pathological cases.
When speed falls below this limit for 30s, download is aborted
as if it timed out, and next mirror is used. Each timeout also
halves the mirror's estimated speed so it will very likely be
avoided next time.
sounds good thank you
The timeout value (30s by default) could be adjusted in yum.conf.
Low speed limit is hardcoded, but there's a simple patch to add
it to yum.conf.. could be merged if necessary.
i think it would make sense to make it configureable
this way someone is able to use his maximum bandwidth on large upgrades
and mirrors which as example have a free bandwidth of > 8 MB/Sec are
not overloaded and those users wouldn't it make worser on slower ones