guix-commits
[Top][All Lists]
Advanced

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

01/01: nginx: hydra.gnu.org: Install global proxy timeouts.


From: Ludovic Courtès
Subject: 01/01: nginx: hydra.gnu.org: Install global proxy timeouts.
Date: Thu, 17 Mar 2016 15:59:23 +0000

civodul pushed a commit to branch master
in repository maintenance.

commit 443fb6e8d5964076107a0353625dd2a74cef0278
Author: Ludovic Courtès <address@hidden>
Date:   Thu Mar 17 16:58:17 2016 +0100

    nginx: hydra.gnu.org: Install global proxy timeouts.
---
 hydra/nginx/hydra.gnu.org.conf |    9 +++++++++
 1 files changed, 9 insertions(+), 0 deletions(-)

diff --git a/hydra/nginx/hydra.gnu.org.conf b/hydra/nginx/hydra.gnu.org.conf
index 5dc42a2..fc0111d 100644
--- a/hydra/nginx/hydra.gnu.org.conf
+++ b/hydra/nginx/hydra.gnu.org.conf
@@ -59,6 +59,15 @@ http {
                     keys_zone=static:1m   # nar cache meta data: ~8K keys
                     max_size=200m;        # total cache data size max
 
+    # If Hydra cannot honor these delays, then something is wrong and
+    # we'd better drop the connection and return 504.
+    proxy_connect_timeout 7s;
+    proxy_read_timeout 10s;
+    proxy_send_timeout 10s;
+
+    # Cache timeouts for a little while to avoid increasing pressure.
+    proxy_cache_valid 504 20s;
+
     server {
        listen       80;
        server_name  hydra.gnu.org;



reply via email to

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