@cryptotaxi247 / infra / commits / 7ff169e5

* Disable persistent HTTP connections between Apache mod_proxy and the Hydra backend. This seems to prevent random corrupt output (i.e., pages consisting only of "0").

* Disable persistent HTTP connections between Apache mod_proxy and the Hydra backend. This seems to prevent random corrupt output (i.e., pages consisting only of "0"). It seems that sometimes mod_proxy decides not to forward the request to the backend. For instance, $ curl --head http://hydra.nixos.org/foo.svg normally prints (among other headers) HTTP/1.1 404 Not Found Content-Type: text/html; charset=utf-8 (because /foo.svg doesn't exist), but sometimes it will say HTTP/1.1 200 OK Content-Length: 1 Content-Type: image/svg+xml After such a HEAD request, a subsequent GET request is likely to print "0". It's worth mentioning that Starman's documentation for its ‘--disable-keepalive’ option says: an useful workaround if you run Starman behind a broken frontend proxy that tries to pool connections more than a number of backend workers (i.e. Apache mpm_prefork + mod_proxy). whatever that means. svn path=/configurations/trunk/tud/; revision=34214

Eelco Dolstra committed May 22, 2012 at 21:00 UTC 7ff169e576ddb2a40fdb9dae2625aac5646eadeb
1 file changed +3 -3
cartman.nix
+3 -3
@@ -232,7 +232,7 @@ rec {
232 #"15 0 * * * root (TZ=CET date; ${pkgs.rsync}/bin/rsync -razv --numeric-ids --delete /data/postgresql /data/webserver/tarballs unixhome.st.ewi.tudelft.nl::bfarm/) >> /var/log/backup.log 2>&1"
233 "0 3 * * * root nix-store --gc --max-freed \"$((50 * 1024**3 - 1024 * $(df /nix/store | tail -n 1 | awk '{ print $4 }')))\" > /var/log/gc.log 2>&1"
234 "* * * * * root ${pkgs.python}/bin/python ${ZabbixApacheUpdater} -z 192.168.1.5 -c cartman"
235 - "40 * * * * ${duplicityBackup} &>> /var/log/backup-duplicity.log"
235 + "40 * * * * root ${duplicityBackup} &>> /var/log/backup-duplicity.log"
236
237 # Force the sixxs tunnel to stay alive by periodically
238 # pinging the other side. This is necessary to remain
@@ -470,7 +470,7 @@ rec {
470
471 ProxyRequests Off
472 ProxyPreserveHost On
473 - ProxyPass / http://lucifer:3000/ retry=5
473 + ProxyPass / http://lucifer:3000/ retry=5 disablereuse=on
474 ProxyPassReverse / http://lucifer:3000/
475
476 <Location />
@@ -494,7 +494,7 @@ rec {
494
495 ProxyRequests Off
496 ProxyPreserveHost On
497 - ProxyPass / http://wendy:4000/ retry=5
497 + ProxyPass / http://wendy:4000/ retry=5 disablereuse=on
498 ProxyPassReverse / http://wendy:4000/
499 '';
500 }