MirrorCache icon indicating copy to clipboard operation
MirrorCache copied to clipboard

do not fill `/?mirrorlist` reply with mirrors outside region

Open dirkmueller opened this issue 7 months ago • 2 comments

The /?mirrorlist feature interacts very badly with the CDN. The issue is that it hands out mirrors that are very far away, which makes zypper use them rather than falling back to the origin host (which would be cdn and hence fast and problemfree).

I suggest to change the logic to not ever include mirrors outside country and region.

dirkmueller avatar Jun 06 '25 08:06 dirkmueller

I've hotpatched dl.o.o with the functionality and will work on a proper deployment in the next version.

It also has reduced count of mirrors in folder mirrorlist down to 8 (from 32).

Meaning that it will not look for mirrors in "the same continent" if the country already has 8 mirrors. But it still may return all mirrors that it found, (i.e. max 15 = 7 from country + 8 for region), because it already spent time for SQL which retrieves them and if the client needs less - they can just cut the list themselves.

Or which number for the limit you think is more appropriate? @dirkmueller

andrii-suse avatar Jun 10 '25 12:06 andrii-suse

Personally I think 15 in max is far too many. remember that zypper would have to try all 15 of them before giving up.

I'm not sure I understand the question. it is returning 8 mirrors from country, or 15 (7 from country and 8 from region) ? what happened to the 8th country mirror then? I think we should do 7+3

dirkmueller avatar Jun 11 '25 11:06 dirkmueller