]> git.openstreetmap.org Git - chef.git/commitdiff
squid: use a short shutdown_lifetime
authorGrant Slater <git@firefishy.com>
Tue, 3 Dec 2019 23:28:21 +0000 (23:28 +0000)
committerGrant Slater <git@firefishy.com>
Tue, 3 Dec 2019 23:28:21 +0000 (23:28 +0000)
cookbooks/squid/templates/default/squid.conf.erb

index 1ebddf0f6269f8fcbf730463aee22a5f82d71517..ede39efab42787720acd48d03c18886c8dfae4e3 100644 (file)
@@ -9,6 +9,9 @@ cache_mem  <%= node[:squid][:cache_mem] %>
 workers <%= [ node[:cpu][:total] - 2, 1 ].max.ceil %>
 cpu_affinity_map process_numbers=<%= (1..[ node[:cpu][:total] - 2, 1 ].max.ceil).to_a.join(',') %> cores=<%=(1..[ node[:cpu][:total] - 2, 1 ].max.ceil).to_a.join(',') %>
 
+# Set short clean shutdown interval
+shutdown_lifetime 10 seconds
+
 error_log_languages off
 <% end -%>