]> git.openstreetmap.org Git - chef.git/blob - roles/tile.rb
Tune apache for taginfo
[chef.git] / roles / tile.rb
1 name "tile"
2 description "Role applied to all tile servers"
3
4 default_attributes(
5   :accounts => {
6     :users => {
7       :tile => {
8         :status => :role,
9         :members => [ :jburgess, :tomh ]
10       },
11     },
12   },
13   :apache => {
14     :mpm => "event",
15     :timeout => 60,
16     :event => {
17       :server_limit => 60,
18       :max_clients => 1200,
19       :threads_per_child => 20,
20       :min_spare_threads => 30,
21       :max_spare_threads => 180,
22       :max_requests_per_child => 100000
23     }
24   },
25   :apt => {
26     :sources => [ "ubuntugis-stable" ]
27   },
28   :postgresql => {
29     :versions => [ "9.1" ],
30     :settings => {
31       :defaults => {
32         :temp_buffers => "32MB",
33         :work_mem => "128MB",
34         :wal_buffers => "1024kB",
35         :wal_writer_delay => "500ms",
36         :commit_delay => "10000",
37         :checkpoint_segments => "60"
38       }
39     }
40   },
41   :sysctl => {
42     :sockets => {
43       :comment => "Increase size of connection queue",
44       :parameters => {
45         "net.core.somaxconn" => 10000
46       }
47     }
48   },
49   :tile => {
50     :database => {
51       :cluster => "9.1/main"
52     },
53     :data => {
54       :world_boundaries => {
55         :url => "http://planet.openstreetmap.org/historical-shapefiles/world_boundaries-spherical.tgz"
56       },
57       :simplified_land_polygons => {
58         :url => "http://data.openstreetmapdata.com/simplified-land-polygons-complete-3857.zip",
59         :refresh => true
60       },
61       :admin_boundaries => {
62         :url => "http://www.naturalearthdata.com/http//www.naturalearthdata.com/download/110m/cultural/ne_110m_admin_0_boundary_lines_land.zip",
63         :directory => "ne_110m_admin_0_boundary_lines_land"
64       },
65       :populated_places => {
66         :url => "http://www.naturalearthdata.com/http//www.naturalearthdata.com/download/10m/cultural/ne_10m_populated_places.zip",
67         :directory => "ne_10m_populated_places",
68         :original => "ne_10m_populated_places.shp",
69         :processed => "ne_10m_populated_places_fixed.shp"
70       },
71       :land_polygons => {
72         :url => "http://data.openstreetmapdata.com/land-polygons-split-3857.zip",
73         :refresh => true
74       }
75     },
76     :styles => {
77       :default => {
78         :repository => "git://github.com/gravitystorm/openstreetmap-carto.git",
79         :revision => "v2.8.0",
80         :max_zoom => 19
81       }
82     }
83   }
84 )
85
86 run_list(
87   "recipe[tile]"
88 )