X-Git-Url: https://git.openstreetmap.org./chef.git/blobdiff_plain/d7fdbac2c8939e77252fe33f1c3b4aff47b0e2e7..3b563e12600d3519011cde414ee0465698a7814f:/roles/nominatim.rb?ds=inline diff --git a/roles/nominatim.rb b/roles/nominatim.rb index a6d772e43..e9c6040c9 100644 --- a/roles/nominatim.rb +++ b/roles/nominatim.rb @@ -1,30 +1,19 @@ name "nominatim" -description "Role applied to all nominatim servers" +description "Role applied to all nominatim servers." default_attributes( :accounts => { :users => { :lonvia => { :status => :administrator }, - :twain => { :status => :administrator }, :nominatim => { :status => :role, - :members => [:lonvia, :tomh, :twain] + :members => [:lonvia, :tomh] } } }, - :apache => { - :mpm => "event", - :timeout => 60, - :keepalive => false, - :event => { - :server_limit => 32, - :max_clients => 1600, - :threads_per_child => 50 - } - }, - :chef => { - :client => { - :version => "12.1.2-1" + :networking => { + :firewall => { + :http_rate_limit => "s:2/sec:15" } }, :postgresql => { @@ -32,9 +21,11 @@ default_attributes( :defaults => { :max_connections => "450", :synchronous_commit => "off", - :checkpoint_segments => "50", + :checkpoint_segments => "32", :checkpoint_timeout => "10min", :checkpoint_completion_target => "0.9", + :jit => "off", + :shared_buffers => "2GB", :autovacuum_max_workers => "1" } } @@ -69,16 +60,12 @@ default_attributes( :network_conntrack_max => { :comment => "Increase max number of connections tracked", :parameters => { - "net.netfilter.nf_conntrack_max" => "131072" + "net.netfilter.nf_conntrack_max" => "196608" } } - }, - :nominatim => { - :enabled => true, - :repository => "git://git.openstreetmap.org/nominatim.git" } ) run_list( - "recipe[nominatim]" + "recipe[nominatim::default]" )