]> git.openstreetmap.org Git - chef.git/blob - roles/tilecache.rb
Send incoming mail to the new frontends
[chef.git] / roles / tilecache.rb
1 name "tilecache"
2 description "Role applied to all tile cache servers"
3
4 default_attributes(
5   :accounts => {
6     :groups => {
7       :proxy => {
8         :members => [:tomh, :grant, :matt, :jburgess]
9       }
10     }
11   },
12   :apt => {
13     :sources => ["nginx"]
14   },
15   :nginx => {
16     :access_log => false
17   },
18   :sysctl => {
19     :network_conntrack_time_wait => {
20       :comment => "Only track completed connections for 30 seconds",
21       :parameters => {
22         "net.netfilter.nf_conntrack_tcp_timeout_time_wait" => "30"
23       }
24     },
25     :network_conntrack_max => {
26       :comment => "Increase max number of connections tracked",
27       :parameters => {
28         "net.netfilter.nf_conntrack_max" => "262142"
29       }
30     },
31     :network_local_port_range => {
32       :comment => "Increase available local port range",
33       :parameters => {
34         "net.ipv4.ip_local_port_range" => "4096 64000"
35       }
36     },
37     :kernel_tfo_listen_enable => {
38       :comment => "Enable TCP Fast Open for listening sockets",
39       :parameters => {
40         "net.ipv4.tcp_fastopen" => 3
41       }
42     },
43     :squid_swappiness => {
44       :comment => "Prefer not to swapout to free memory",
45       :parameters => {
46         "vm.swappiness" => "30"
47       }
48     }
49   }
50 )
51
52 run_list(
53   "recipe[tilecache]"
54 )