]> git.openstreetmap.org Git - chef.git/blob - roles/tile.rb
Make imagery sites redirect to https
[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_request_workers => 1200,
19       :threads_per_child => 20,
20       :min_spare_threads => 300,
21       :max_spare_threads => 1200,
22       :max_connections_per_child => 0,
23       :async_request_worker_factor => 4
24     }
25   },
26   :munin => {
27     :plugins => {
28       :renderd_processed => {
29         :graph_order => "reqPrio req reqLow dirty reqBulk dropped",
30         :reqPrio => { :draw => "AREA" },
31         :req => { :draw => "STACK" }
32       }
33     }
34   },
35   :postgresql => {
36     :settings => {
37       :defaults => {
38         :temp_buffers => "32MB",
39         :work_mem => "128MB",
40         :wal_buffers => "1024kB",
41         :wal_writer_delay => "500ms",
42         :commit_delay => "10000",
43         :checkpoint_segments => "60",
44         :max_wal_size => "2880MB",
45         :random_page_cost => "1.1",
46         :track_activity_query_size => "16384"
47       }
48     }
49   },
50   :sysctl => {
51     :sockets => {
52       :comment => "Increase size of connection queue",
53       :parameters => {
54         "net.core.somaxconn" => 10000
55       }
56     },
57     :kernel_scheduler_tune => {
58       :comment => "Tune kernel scheduler preempt",
59       :parameters => {
60         "kernel.sched_min_granularity_ns" => 10000000,
61         "kernel.sched_wakeup_granularity_ns" => 15000000
62       }
63     }
64   },
65   :tile => {
66     :data => {
67       :world_boundaries => {
68         :url => "http://planet.openstreetmap.org/historical-shapefiles/world_boundaries-spherical.tgz"
69       },
70       :simplified_land_polygons => {
71         :url => "http://data.openstreetmapdata.com/simplified-land-polygons-complete-3857.zip",
72         :refresh => true
73       },
74       :admin_boundaries => {
75         :url => "http://www.naturalearthdata.com/http//www.naturalearthdata.com/download/110m/cultural/ne_110m_admin_0_boundary_lines_land.zip",
76         :directory => "ne_110m_admin_0_boundary_lines_land"
77       },
78       :land_polygons => {
79         :url => "http://data.openstreetmapdata.com/land-polygons-split-3857.zip",
80         :refresh => true
81       },
82       :antarctica_icesheet_polygons => {
83         :url => "http://data.openstreetmapdata.com/antarctica-icesheet-polygons-3857.zip",
84         :refresh => true
85       },
86       :antarctica_icesheet_outlines => {
87         :url => "http://data.openstreetmapdata.com/antarctica-icesheet-outlines-3857.zip",
88         :refresh => true
89       }
90     },
91     :styles => {
92       :default => {
93         :repository => "git://github.com/gravitystorm/openstreetmap-carto.git",
94         :revision => "v4.6.0",
95         :max_zoom => 19
96       }
97     }
98   }
99 )
100
101 run_list(
102   "recipe[tile]"
103 )