2
0
Fork 0
mirror of git://git.savannah.gnu.org/guix/maintenance.git synced 2023-12-14 03:33:04 +01:00

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.
This commit is contained in:
Ludovic Courtès 2017-07-21 12:00:29 +02:00
parent ebbe4c7f40
commit 829712a61b
No known key found for this signature in database
GPG key ID: 090B11993D9AEBB5
3 changed files with 9 additions and 0 deletions

View file

@ -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;

View file

@ -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

View file

@ -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;