[Qa-jenkins-scm] [Git][qa/jenkins.debian.net][master] 2 commits: use cdn-fastly directly when proxying through squid
Holger Levsen
gitlab at salsa.debian.org
Tue Aug 28 16:37:35 BST 2018
Holger Levsen pushed to branch master at Debian QA / jenkins.debian.net
Commits:
28b209e2 by Helmut Grohne at 2018-08-28T15:35:57Z
use cdn-fastly directly when proxying through squid
When you configure deb.d.o with apt, apt performs a SRV lookup and
connects to the right backend. When you use a proxy, the proxy is in
charge for performing those SRV lookups. squid doesn't do that. So it
connects to deb.d.o and receives a 302 redirect to cdn-fastly. Except
when it doesn't and receives a timeout instead. This happened a lot
recently.
The whole business of redirecting each request is neither efficient nor
fault tolerant. So we change the default mirror to the default SRV
target when connecting through a squid. Putting the redirects out of the
loop is both faster and avoids the timeouts.
- - - - -
036d96c4 by Holger Levsen at 2018-08-28T15:37:25Z
reproducible: fixup 28b209e25e and also use cdn-fastly.deb.d.o directly on arm64 and armhf
Signed-off-by: Holger Levsen <holger at layer-acht.org>
- - - - -
1 changed file:
- bin/common-functions.sh
Changes:
=====================================
bin/common-functions.sh
=====================================
@@ -1,7 +1,7 @@
#!/bin/bash
# vim: set noexpandtab:
-# Copyright 2014-2017 Holger Levsen <holger at layer-acht.org>
+# Copyright 2014-2018 Holger Levsen <holger at layer-acht.org>
# © 2018 Mattia Rizzolo <mattia at mapreri.org>
# released under the GPLv=2
@@ -112,11 +112,11 @@ else
if [ -z "$MIRROR" ]; then
case $HOSTNAME in
jenkins|jenkins-test-vm|profitbricks-build*)
- export MIRROR=http://deb.debian.org/debian ;;
+ export MIRROR=http://cdn-fastly.deb.debian.org/debian ;;
bbx15|cb3*|cbxi4*|wbq0|odxu4*|odu3*|odc*|ff*|ff4*|opi2*|jt?1*|p64*)
- export MIRROR=http://deb.debian.org/debian ;;
+ export MIRROR=http://cdn-fastly.deb.debian.org/debian ;;
codethink*)
- export MIRROR=http://deb.debian.org/debian ;;
+ export MIRROR=http://cdn-fastly.deb.debian.org/debian ;;
spectrum)
export MIRROR=none ;;
*)
View it on GitLab: https://salsa.debian.org/qa/jenkins.debian.net/compare/0d754ea1a0f1bec23a1b206b5a42a63aef5a4904...036d96c41c95fa5c2289c62abac30a06f5464b94
--
View it on GitLab: https://salsa.debian.org/qa/jenkins.debian.net/compare/0d754ea1a0f1bec23a1b206b5a42a63aef5a4904...036d96c41c95fa5c2289c62abac30a06f5464b94
You're receiving this email because of your account on salsa.debian.org.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://alioth-lists.debian.net/pipermail/qa-jenkins-scm/attachments/20180828/f3eebe45/attachment-0001.html>
More information about the Qa-jenkins-scm
mailing list