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:
parent
ebbe4c7f40
commit
829712a61b
3 changed files with 9 additions and 0 deletions
|
@ -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;
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue