[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
01/02: nginx: mirror: Cache things for a week.
From: |
Ludovic Courtès |
Subject: |
01/02: nginx: mirror: Cache things for a week. |
Date: |
Thu, 10 Mar 2016 15:21:06 +0000 |
civodul pushed a commit to branch master
in repository maintenance.
commit 0ea91d9b2b09c21d51c82bcf04108d7aa43a9eeb
Author: Ludovic Courtès <address@hidden>
Date: Thu Mar 10 16:19:00 2016 +0100
nginx: mirror: Cache things for a week.
---
hydra/nginx/mirror.conf | 16 ++++++++--------
1 files changed, 8 insertions(+), 8 deletions(-)
diff --git a/hydra/nginx/mirror.conf b/hydra/nginx/mirror.conf
index af4498e..5fd283b 100644
--- a/hydra/nginx/mirror.conf
+++ b/hydra/nginx/mirror.conf
@@ -36,21 +36,21 @@ http {
# cache for narinfo files
proxy_cache_path /var/cache/nginx/narinfo
levels=2
- inactive=72h # inactive keys removed after 72h
+ inactive=7d # inactive keys removed after 7d
keys_zone=narinfo:8m # narinfo meta data: ~64K keys
max_size=4g; # total cache data size max
# cache for nar files
proxy_cache_path /var/cache/nginx/nar
levels=2
- inactive=96h # inactive keys removed after 96h
+ inactive=7d # inactive keys removed after 7d
keys_zone=nar:8m # nar cache meta data: ~64K keys
max_size=100g; # total cache data size max
# cache for static data
proxy_cache_path /var/cache/nginx/static
levels=1
- inactive=48h # inactive keys removed after 2 days
+ inactive=7d # inactive keys removed after 7 days
keys_zone=static:1m # nar cache meta data: ~8K keys
max_size=2m; # total cache data size max
@@ -69,7 +69,7 @@ http {
# Cache this file since that's always the first thing we ask for.
proxy_cache static;
- proxy_cache_valid 200 100h; # cache hits for a looong time.
+ proxy_cache_valid 200 10d; # cache hits for a looong time.
proxy_cache_valid any 5m; # cache misses/others for 5 min.
proxy_ignore_client_abort on;
@@ -87,8 +87,8 @@ http {
# Enable caching for nar files, to avoid reconstructing and
recompressing
# archives.
proxy_cache nar;
- proxy_cache_valid 200 96h; # cache hits for 4 days.
- proxy_cache_valid any 10m; # cache misses/others for 10 min.
+ proxy_cache_valid 200 8d; # cache hits for 8 days.
+ proxy_cache_valid any 1h; # cache misses/others for 1h.
proxy_ignore_client_abort on;
@@ -113,8 +113,8 @@ http {
# Enable caching for narinfo files, to avoid recomputing nar
signatures.
proxy_cache narinfo;
- proxy_cache_valid 200 72h; # cache hits for 3 days.
- proxy_cache_valid any 10m; # cache misses/others for 10 min.
+ proxy_cache_valid 200 7d; # cache hits for 7 days.
+ proxy_cache_valid any 1h; # cache misses/others for 1h.
proxy_ignore_client_abort on;