]> git.openstreetmap.org Git - chef.git/blob - roles/tile.rb
dev: Mitigate env HTTP_PROXY via cgi proxy header
[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   :postgresql => {
26     :settings => {
27       :defaults => {
28         :temp_buffers => "32MB",
29         :work_mem => "128MB",
30         :wal_buffers => "1024kB",
31         :wal_writer_delay => "500ms",
32         :commit_delay => "10000",
33         :checkpoint_segments => "60"
34       }
35     }
36   },
37   :sysctl => {
38     :sockets => {
39       :comment => "Increase size of connection queue",
40       :parameters => {
41         "net.core.somaxconn" => 10000
42       }
43     },
44     :kernel_scheduler_tune => {
45       :comment => "Tune kernel scheduler preempt",
46       :parameters => {
47         "kernel.sched_min_granularity_ns" => 10000000,
48         "kernel.sched_wakeup_granularity_ns" => 15000000
49       }
50     }
51   },
52   :tile => {
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       :land_polygons => {
66         :url => "http://data.openstreetmapdata.com/land-polygons-split-3857.zip",
67         :refresh => true
68       },
69       :antarctica_icesheet_polygons => {
70         :url => "http://data.openstreetmapdata.com/antarctica-icesheet-polygons-3857.zip",
71         :refresh => true
72       },
73       :antarctica_icesheet_outlines => {
74         :url => "http://data.openstreetmapdata.com/antarctica-icesheet-outlines-3857.zip",
75         :refresh => true
76       }
77     },
78     :styles => {
79       :default => {
80         :repository => "git://github.com/gravitystorm/openstreetmap-carto.git",
81         :revision => "v2.41.0",
82         :max_zoom => 19
83       }
84     }
85   }
86 )
87
88 run_list(
89   "recipe[tile]"
90 )