X-Git-Url: https://git.openstreetmap.org./chef.git/blobdiff_plain/456dad622b22a008710ae410ec0a27550292dc57..05b9549b591a7cb439cd0e08613f79cbf54a770f:/roles/tilecache.rb diff --git a/roles/tilecache.rb b/roles/tilecache.rb index ee5777735..8353a2120 100644 --- a/roles/tilecache.rb +++ b/roles/tilecache.rb @@ -16,7 +16,13 @@ default_attributes( :tcp_fastopen_key => "tile" }, :nginx => { - :access_log => false + :access_log => false, + :cache => { + :proxy => { + :enable => true, + :keys_zone => "proxy_cache_zone:64M", + } + } }, :sysctl => { :sockets => { @@ -40,7 +46,13 @@ default_attributes( :network_local_port_range => { :comment => "Increase available local port range", :parameters => { - "net.ipv4.ip_local_port_range" => "1024 65000" + "net.ipv4.ip_local_port_range" => "1024\t65535" + } + }, + :network_tcp_timewait_reuse => { + :comment => "Allow tcp timewait reuse", + :parameters => { + "net.ipv4.tcp_tw_reuse" => 1 } }, :kernel_tfo_listen_enable => {