From dbe1aca3cf5946f5bf3d2a6e3677fc3c14f5ca89 Mon Sep 17 00:00:00 2001 From: Tom Hughes Date: Sat, 8 Jun 2019 15:14:21 +0100 Subject: [PATCH] Switch fume to use squid 3 with a hierarchical cache --- roles/fume.rb | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/roles/fume.rb b/roles/fume.rb index a023e8a04..4af18a3bf 100644 --- a/roles/fume.rb +++ b/roles/fume.rb @@ -15,8 +15,14 @@ default_attributes( } }, :squid => { + :version => 3, :cache_mem => "4096 MB", - :cache_dir => "coss /store/squid/coss-01 128000 block-size=8192 max-size=262144 membufs=80" + :cache_dir => [ + "rock /store/squid/rock-4096 50000 swap-timeout=300 max-swap-rate=50 slot-size=4096 max-size=3996", + "rock /store/squid/rock-8192 15000 swap-timeout=300 max-swap-rate=50 slot-size=8192 max-size=8092", + "rock /store/squid/rock-16384 25000 swap-timeout=300 max-swap-rate=50 slot-size=16384 max-size=16284", + "rock /store/squid/rock-32768 35000 swap-timeout=300 max-swap-rate=50 slot-size=32768 max-size=262144" + ] }, :tilecache => { :tile_parent => "pilsen.render.openstreetmap.org", -- 2.43.2