X-Git-Url: https://git.openstreetmap.org./chef.git/blobdiff_plain/b59e330e5f5c5057ecb27088a0d0c7c4f5c0ec22..230dce809a029bf156e18b84693de422e16fee80:/roles/planet.rb?ds=sidebyside diff --git a/roles/planet.rb b/roles/planet.rb index ad9a7301f..50ebd4064 100644 --- a/roles/planet.rb +++ b/roles/planet.rb @@ -2,15 +2,36 @@ name "planet" description "Role applied to all planet servers" default_attributes( - :accounts => { - :users => { - :bretth => { :status => :user }, - :planet => { - :status => :administrator, - :members => [ :bretth ] - } + :apache => { + :mpm => "event", + :keepalive => true, + :event => { + :server_limit => 20, + :max_request_workers => 1000, + :threads_per_child => 50, + :min_spare_threads => 75, + :max_spare_threads => 525, + :listen_cores_buckets_ratio => 4 + } + }, + :networking => { + :firewall => { + :http_connection_limit => 10 } }, + :prometheus => { + :files => %w[ + /store/planet/notes/planet-notes-latest.osn.bz2 + /store/planet/pbf/planet-latest.osm.pbf + /store/planet/planet/changesets-latest.osm.bz2 + /store/planet/planet/discussions-latest.osm.bz2 + /store/planet/planet/planet-latest.osm.bz2 + /store/planet/replication/changesets/state.yaml + /store/planet/replication/day/state.txt + /store/planet/replication/hour/state.txt + /store/planet/replication/minute/state.txt + ] + }, :rsyncd => { :modules => { :planet => { @@ -22,27 +43,19 @@ default_attributes( :uid => "nobody", :gid => "nogroup", :transfer_logging => false, - :exclude => [ ".*" ], + :exclude => [".*"], :max_connections => 10, :ignore_errors => true, :ignore_nonreadable => true, :timeout => 3600, - :refuse_options => [ "checksum" ] + :refuse_options => ["checksum"] } } - }, - :apache => { - :mpm => "event", - :keepalive => false, - :event => { - :server_limit => 20, - :max_clients => 1000, - :threads_per_child => 50 - } } ) run_list( + "role[web-db]", "recipe[planet]", "recipe[planet::replication]", "recipe[nfs::server]",