]> git.openstreetmap.org Git - chef.git/blobdiff - cookbooks/squid/templates/default/squid.conf.erb
nominatim: add automatic migration on updates
[chef.git] / cookbooks / squid / templates / default / squid.conf.erb
index ad1732bb7fb22cda2b308b56c31919aa7f9bf552..61008078a70535764f4182fc363e90afdf3f0bf9 100644 (file)
@@ -10,7 +10,7 @@ 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
+shutdown_lifetime 2 seconds
 
 error_log_languages off
 <% end -%>
@@ -136,6 +136,8 @@ access_log daemon:<%= node[:squid][:access_log] %>
 cache_log /var/log/squid/cache.log
 cache_store_log none
 
+buffered_logs on
+
 client_db off
 strip_query_terms off
 <% if node[:squid][:version] > 2 -%>