[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
01/01: nginx: mirror: Cache narinfos for a shorter period of time.
From: |
Ludovic Courtès |
Subject: |
01/01: nginx: mirror: Cache narinfos for a shorter period of time. |
Date: |
Tue, 9 May 2017 04:28:14 -0400 (EDT) |
civodul pushed a commit to branch master
in repository maintenance.
commit 422a350d6b3e3b5b9f73a417aecf7be41510842c
Author: Ludovic Courtès <address@hidden>
Date: Tue May 9 10:26:22 2017 +0200
nginx: mirror: Cache narinfos for a shorter period of time.
* hydra/nginx/mirror.conf: Set 'inactive' for the 'narinfo' cache to 10d.
* hydra/nginx/mirror-locations.conf (\.narinfo): Cache valid for 10d.
Cache misses for 10m.
---
hydra/nginx/mirror-locations.conf | 4 ++--
hydra/nginx/mirror.conf | 2 +-
2 files changed, 3 insertions(+), 3 deletions(-)
diff --git a/hydra/nginx/mirror-locations.conf
b/hydra/nginx/mirror-locations.conf
index 27d8132..1a55038 100644
--- a/hydra/nginx/mirror-locations.conf
+++ b/hydra/nginx/mirror-locations.conf
@@ -75,9 +75,9 @@ location ~ \.narinfo$ {
# where we have the narinfo but don't have the corresponding nar
# and cannot have it.
proxy_cache narinfo;
- proxy_cache_valid 200 30d; # cache hits for 1 month
+ proxy_cache_valid 200 10d; # cache hits for 10 days
proxy_cache_valid 504 5m; # timeout, when hydra.gnu.org is overloaded
- proxy_cache_valid any 20m; # cache misses/others for 20m
+ proxy_cache_valid any 10m; # cache misses/others for 10m
# Use the above TTLs, not those advertised by hydra.gnu.org.
proxy_ignore_headers Expires Cache-Control;
diff --git a/hydra/nginx/mirror.conf b/hydra/nginx/mirror.conf
index d169617..222e2c1 100644
--- a/hydra/nginx/mirror.conf
+++ b/hydra/nginx/mirror.conf
@@ -45,7 +45,7 @@ http {
# cache for narinfo files
proxy_cache_path /var/cache/nginx/narinfo
levels=2
- inactive=90d # inactive keys removed after 90d
+ inactive=10d # inactive keys removed after 10d
keys_zone=narinfo:8m # narinfo meta data: ~64K keys
max_size=4g; # total cache data size max