guix-commits
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

01/01: nginx: hydra.gnu.org: Cache 504s a little longer to reduce pressu


From: Ludovic Courtès
Subject: 01/01: nginx: hydra.gnu.org: Cache 504s a little longer to reduce pressure.
Date: Thu, 24 Mar 2016 10:54:04 +0000

civodul pushed a commit to branch master
in repository maintenance.

commit 9e2b7e0f4b3f7639a08ae76d9f921957257c8d8d
Author: Ludovic Courtès <address@hidden>
Date:   Thu Mar 24 11:52:30 2016 +0100

    nginx: hydra.gnu.org: Cache 504s a little longer to reduce pressure.
---
 hydra/nginx/hydra.gnu.org-locations.conf |    1 +
 hydra/nginx/hydra.gnu.org.conf           |    2 +-
 2 files changed, 2 insertions(+), 1 deletions(-)

diff --git a/hydra/nginx/hydra.gnu.org-locations.conf 
b/hydra/nginx/hydra.gnu.org-locations.conf
index c850b74..d943b03 100644
--- a/hydra/nginx/hydra.gnu.org-locations.conf
+++ b/hydra/nginx/hydra.gnu.org-locations.conf
@@ -27,6 +27,7 @@ location /nar/ {
     # archives.
     proxy_cache nar;
     proxy_cache_valid 200 8d;   # cache hits for 8 days.
+    proxy_cache_valid 504 3m;   # timeout, when the machine is overloaded
     proxy_cache_valid any 1m;   # cache misses/others for 1 min.
 
     proxy_ignore_client_abort on;
diff --git a/hydra/nginx/hydra.gnu.org.conf b/hydra/nginx/hydra.gnu.org.conf
index f496edd..f103ce8 100644
--- a/hydra/nginx/hydra.gnu.org.conf
+++ b/hydra/nginx/hydra.gnu.org.conf
@@ -71,7 +71,7 @@ http {
     proxy_send_timeout 10s;
 
     # Cache timeouts for a little while to avoid increasing pressure.
-    proxy_cache_valid 504 20s;
+    proxy_cache_valid 504 30s;
 
     server {
        listen       80;



reply via email to

[Prev in Thread] Current Thread [Next in Thread]