guix-commits
[Top][All Lists]
Advanced

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

01/01: hydra: nginx: Keep connections alive for 600 requests.


From: Ludovic Courtès
Subject: 01/01: hydra: nginx: Keep connections alive for 600 requests.
Date: Fri, 21 Jul 2017 06:05:35 -0400 (EDT)

civodul pushed a commit to branch master
in repository maintenance.

commit 829712a61bf4a87a8086e73fd76f09dfdd717da3
Author: Ludovic Courtès <address@hidden>
Date:   Fri Jul 21 12:00:29 2017 +0200

    hydra: nginx: Keep connections alive for 600 requests.
    
    * hydra/nginx/bayfront-locations.conf (\.narinfo): Add
    "keepalive_requests" directive.
    * hydra/nginx/hydra.gnu.org-locations.conf (\.narinfo): Likewise.
    * hydra/nginx/mirror-locations.conf (\.narinfo): Likewise.
---
 hydra/nginx/bayfront-locations.conf      | 3 +++
 hydra/nginx/hydra.gnu.org-locations.conf | 3 +++
 hydra/nginx/mirror-locations.conf        | 3 +++
 3 files changed, 9 insertions(+)

diff --git a/hydra/nginx/bayfront-locations.conf 
b/hydra/nginx/bayfront-locations.conf
index 0fb3b60..935abbc 100644
--- a/hydra/nginx/bayfront-locations.conf
+++ b/hydra/nginx/bayfront-locations.conf
@@ -62,6 +62,9 @@ location ~ \.narinfo$ {
     # For HTTP pipelining.  This has a dramatic impact on performance.
     client_body_buffer_size 128k;
 
+    # Narinfos requests are short, serve many of them on a connection.
+    keepalive_requests 600;
+
     # Do not tolerate slowness of hydra.gnu.org when fetching
     # narinfos: better return 504 quickly than wait forever.
     proxy_connect_timeout 2s;
diff --git a/hydra/nginx/hydra.gnu.org-locations.conf 
b/hydra/nginx/hydra.gnu.org-locations.conf
index 32f0c9b..c704598 100644
--- a/hydra/nginx/hydra.gnu.org-locations.conf
+++ b/hydra/nginx/hydra.gnu.org-locations.conf
@@ -124,6 +124,9 @@ location ~ \.narinfo$ {
     # For HTTP pipelining.  This has a dramatic impact on performance.
     client_body_buffer_size 128k;
 
+    # Narinfos requests are short, serve many of them on a connection.
+    keepalive_requests 600;
+
     # Do not tolerate slowness of hydra.gnu.org when fetching
     # narinfos: better return 504 quickly than wait forever.  However,
     # since hydra.gnu.org is often overloaded, keep the timeouts not
diff --git a/hydra/nginx/mirror-locations.conf 
b/hydra/nginx/mirror-locations.conf
index 1a55038..9278331 100644
--- a/hydra/nginx/mirror-locations.conf
+++ b/hydra/nginx/mirror-locations.conf
@@ -63,6 +63,9 @@ location ~ \.narinfo$ {
     # For HTTP pipelining.  This has a dramatic impact on performance.
     client_body_buffer_size 128k;
 
+    # Narinfos requests are short, serve many of them on a connection.
+    keepalive_requests 600;
+
     # Do not tolerate slowness of hydra.gnu.org when fetching
     # narinfos: better return 504 quickly than wait forever.
     proxy_connect_timeout 2s;



reply via email to

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