Author: eelco
Date: Tue May 22 21:00:16 2012
New Revision: 34214
URL: https://nixos.org/websvn/nix/?rev=34214&sc=1

Log:
* 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.

Modified:
   configurations/trunk/tud/cartman.nix

Modified: configurations/trunk/tud/cartman.nix
==============================================================================
--- configurations/trunk/tud/cartman.nix        Tue May 22 19:46:37 2012        
(r34213)
+++ configurations/trunk/tud/cartman.nix        Tue May 22 21:00:16 2012        
(r34214)
@@ -232,7 +232,7 @@
           #"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"
           "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"
           "*  *  * * * root ${pkgs.python}/bin/python ${ZabbixApacheUpdater} 
-z 192.168.1.5 -c cartman"
-          "40 * * * *  ${duplicityBackup} &>> /var/log/backup-duplicity.log"
+          "40 * * * *  root ${duplicityBackup} &>> 
/var/log/backup-duplicity.log"
 
           # Force the sixxs tunnel to stay alive by periodically
           # pinging the other side.  This is necessary to remain
@@ -470,7 +470,7 @@
 
             ProxyRequests     Off
             ProxyPreserveHost On
-            ProxyPass         /       http://lucifer:3000/ retry=5
+            ProxyPass         /       http://lucifer:3000/ retry=5 
disablereuse=on
             ProxyPassReverse  /       http://lucifer:3000/
             
             <Location />
@@ -494,7 +494,7 @@
 
             ProxyRequests     Off
             ProxyPreserveHost On
-            ProxyPass         /       http://wendy:4000/ retry=5
+            ProxyPass         /       http://wendy:4000/ retry=5 
disablereuse=on
             ProxyPassReverse  /       http://wendy:4000/
           '';
         }
_______________________________________________
nix-commits mailing list
[email protected]
http://lists.science.uu.nl/mailman/listinfo/nix-commits

Reply via email to