From f65bd375ad834787db2daa9d3f780152a913eb54 Mon Sep 17 00:00:00 2001 From: Grant Slater Date: Sun, 2 Feb 2020 23:18:35 +0000 Subject: [PATCH] tilecache: increases cache size (where available) --- cookbooks/nginx/attributes/default.rb | 4 ++-- roles/jakelong.rb | 1 + roles/kalessin.rb | 1 + roles/norbert.rb | 1 + roles/simurgh.rb | 1 + roles/tilecache.rb | 2 +- 6 files changed, 7 insertions(+), 3 deletions(-) diff --git a/cookbooks/nginx/attributes/default.rb b/cookbooks/nginx/attributes/default.rb index c6e77de0a..e37b42999 100644 --- a/cookbooks/nginx/attributes/default.rb +++ b/cookbooks/nginx/attributes/default.rb @@ -11,6 +11,6 @@ default[:nginx][:cache][:fastcgi][:max_size] = "8192M" # Tuning for nginx proxy cache zone default[:nginx][:cache][:proxy][:enable] = false default[:nginx][:cache][:proxy][:directory] = "/var/cache/nginx/proxy-cache" -default[:nginx][:cache][:proxy][:keys_zone] = "proxy_cache_zone:48M" +default[:nginx][:cache][:proxy][:keys_zone] = "proxy_cache_zone:128M" default[:nginx][:cache][:proxy][:inactive] = "45d" -default[:nginx][:cache][:proxy][:max_size] = "8192M" +default[:nginx][:cache][:proxy][:max_size] = "16384M" diff --git a/roles/jakelong.rb b/roles/jakelong.rb index 5fc22b2b0..cd8bcb17b 100644 --- a/roles/jakelong.rb +++ b/roles/jakelong.rb @@ -38,6 +38,7 @@ default_attributes( :nginx => { :cache => { :proxy => { + :keys_zone => "proxy_cache_zone:64M", :max_size => "2048M" } } diff --git a/roles/kalessin.rb b/roles/kalessin.rb index 9176d2a2f..f8e17d7e6 100644 --- a/roles/kalessin.rb +++ b/roles/kalessin.rb @@ -38,6 +38,7 @@ default_attributes( :nginx => { :cache => { :proxy => { + :keys_zone => "proxy_cache_zone:64M", :max_size => "2048M" } } diff --git a/roles/norbert.rb b/roles/norbert.rb index 1332034d7..15433754e 100644 --- a/roles/norbert.rb +++ b/roles/norbert.rb @@ -38,6 +38,7 @@ default_attributes( :nginx => { :cache => { :proxy => { + :keys_zone => "proxy_cache_zone:64M", :max_size => "2048M" } } diff --git a/roles/simurgh.rb b/roles/simurgh.rb index 3923f4fcb..d1a0289da 100644 --- a/roles/simurgh.rb +++ b/roles/simurgh.rb @@ -30,6 +30,7 @@ default_attributes( :nginx => { :cache => { :proxy => { + :keys_zone => "proxy_cache_zone:64M", :max_size => "2048M" } } diff --git a/roles/tilecache.rb b/roles/tilecache.rb index 8353a2120..d60617107 100644 --- a/roles/tilecache.rb +++ b/roles/tilecache.rb @@ -20,7 +20,7 @@ default_attributes( :cache => { :proxy => { :enable => true, - :keys_zone => "proxy_cache_zone:64M", + :keys_zone => "proxy_cache_zone:128M" } } }, -- 2.43.2