]> git.openstreetmap.org Git - chef.git/blob - cookbooks/tile/attributes/default.rb
Switch remaining render servers to osm2pgsql replication
[chef.git] / cookbooks / tile / attributes / default.rb
1 default[:tile][:database][:cluster] = "14/main"
2 default[:tile][:database][:postgis] = "3"
3 default[:tile][:database][:node_file] = "/store/database/nodes"
4 default[:tile][:database][:multi_geometry] = true
5 default[:tile][:database][:hstore] = true
6 default[:tile][:database][:style_file] = nil
7 default[:tile][:database][:tag_transform_script] = nil
8
9 default[:tile][:mapnik] = "3.1"
10
11 default[:tile][:replication][:engine] = "osm2pgsql"
12 default[:tile][:replication][:url] = "https://osm-planet-eu-central-1.s3.dualstack.eu-central-1.amazonaws.com/planet/replication/minute"
13
14 default[:tile][:data] = {}
15 default[:tile][:styles] = {}
16
17 default[:postgresql][:versions] |= [node[:tile][:database][:cluster].split("/").first]
18 default[:postgresql][:monitor_database] = "gis"
19
20 default[:accounts][:users][:tile][:status] = :role
21
22 default[:apache][:event][:server_limit] = node.cpu_cores * 5 / 4
23 default[:apache][:event][:max_request_workers] = node.cpu_cores * node[:apache][:event][:threads_per_child]
24 default[:apache][:event][:max_spare_threads] = node.cpu_cores * node[:apache][:event][:threads_per_child]