On Tuesday 2023-10-03 17:38, Dirk Müller wrote:
# wget http://cdn.opensuse.org/debug/tumbleweed/repo/oss/x86_64/libvmime-debugsourc... -c Resolving cdn.opensuse.org (cdn.opensuse.org)... 151.101.109.91, 2a04:4e42:1a::347 Connecting to cdn.opensuse.org (cdn.opensuse.org)|151.101.109.91|:80... connected. HTTP request sent, awaiting response... 302 Found Location: http://mirrorcache-jp.opensuse.org/debug/tumbleweed/repo/oss/x86_64/libvmime-debugsource-0.9.2.175-2.5.x86_64.rpm?COUNTRY=jp®ION=as [following] --2023-09-30 17:19:37-- http://mirrorcache-jp.opensuse.org/debug/tumbleweed/repo/oss/x86_64/libvmime-debugsource-0.9.2.175-2.5.x86_64.rpm?COUNTRY=jp®ION=as Resolving mirror-jp.firstyear.id.au (mirror-jp.firstyear.id.au)... 139.162.108.7, 2400:8902::f03c:93ff:fec8:afa1 Connecting to mirror-jp.firstyear.id.au (mirror-jp.firstyear.id.au)|139.162.108.7|:80... ^C 17:20 f3:~ $ ping mirror-jp.firstyear.id.au PING mirror-jp.firstyear.id.au (139.162.108.7) 56(84) bytes of data.
the site is up again, so it might have been a temporary glitch?
Indeed.
Unfortunately the current behavior of the mirrorcache-* instances is that if it thinks there is any mirror anywhere nearby, it redirects you to that one rather than actually using the CDN. We do need to improve this, just don't know how yet.
Failover conceptually requires a second "target" of some sort to function. - In a CDN, the CDN owner does routing tricks to send packets to a second target if the primary is offline. - When multiple IP addresses are published for a DNS name, clients can try secondaries at their own pace. - Or have a mechanism by which a client tries multiple DNS names. But a HTTP redirect can only specify *one* target location, so I would argue that is conceptually a dead end and we just won't find a solution with. So based on the list of available "things that have a secondary", the options I see, would be, respectively: - exclusively use a CDN for download.opensuse.org - or let d.o.o resolve to multiple addresses [requires that mirrors recognize "download.opensuse.org" as a vhost / figurative setup hurdle for mirror owners] - teach zypper to use a mirrorlist à la yum/dnf