]> git.openstreetmap.org Git - chef.git/blob - roles/tilecache.rb
nominatim: add boost-python for pyosmium
[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   :sysctl => {
16     :network_conntrack_time_wait => {
17       :comment => "Only track completed connections for 30 seconds",
18       :parameters => {
19         "net.netfilter.nf_conntrack_tcp_timeout_time_wait" => "30"
20       }
21     },
22     :network_conntrack_max => {
23       :comment => "Increase max number of connections tracked",
24       :parameters => {
25         "net.netfilter.nf_conntrack_max" => "131072"
26       }
27     },
28     :kernel_tfo_listen_enable => {
29       :comment => "Enable TCP Fast Open for listening sockets",
30       :parameters => {
31         "net.ipv4.tcp_fastopen" => 3
32       }
33     },
34     :squid_swappiness => {
35       :comment => "Prefer not to swapout to free memory",
36       :parameters => {
37         "vm.swappiness" => "30"
38       }
39     }
40   }
41 )
42
43 run_list(
44   "recipe[tilecache]"
45 )