]> git.openstreetmap.org Git - chef.git/blob - roles/tilecache.rb
imagery: try harder to find a working fastcgi socket
[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     :kernel_tfo_listen_enable => {
32       :comment => "Enable TCP Fast Open for listening sockets",
33       :parameters => {
34         "net.ipv4.tcp_fastopen" => 3
35       }
36     },
37     :squid_swappiness => {
38       :comment => "Prefer not to swapout to free memory",
39       :parameters => {
40         "vm.swappiness" => "30"
41       }
42     }
43   }
44 )
45
46 run_list(
47   "recipe[tilecache]"
48 )