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