From: Tom Hughes Date: Sat, 8 Jun 2019 14:14:21 +0000 (+0100) Subject: Switch fume to use squid 3 with a hierarchical cache X-Git-Url: https://git.openstreetmap.org/chef.git/commitdiff_plain/dbe1aca3cf5946f5bf3d2a6e3677fc3c14f5ca89 Switch fume to use squid 3 with a hierarchical cache --- 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",