X-Git-Url: https://git.openstreetmap.org./chef.git/blobdiff_plain/5b3255591fe355642dcb2278831a394b2755019b..1b721888b69d136e5b39ff7e6ad227d40f60408a:/roles/tilecache.rb diff --git a/roles/tilecache.rb b/roles/tilecache.rb index adce84808..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" => "4096 64000" + "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 => {