From 8256c134c17c06e5dd00ef18defde5bd8aac38b8 Mon Sep 17 00:00:00 2001 From: Tom Hughes Date: Tue, 22 Dec 2015 14:54:58 +0000 Subject: [PATCH 1/1] Apply nominatim-standalone role to dulcy --- roles/dulcy.rb | 34 +++++++++++++++++++++++++++++++++- roles/nominatim-standalone.rb | 6 ++++-- 2 files changed, 37 insertions(+), 3 deletions(-) diff --git a/roles/dulcy.rb b/roles/dulcy.rb index aa31fc60b..df40a0e33 100644 --- a/roles/dulcy.rb +++ b/roles/dulcy.rb @@ -26,9 +26,41 @@ default_attributes( :hwaddress => "0c:c4:7a:66:96:d3" } } + }, + :postgresql => { + :settings => { + :defaults => { + :shared_buffers => "10GB", + :work_mem => "160MB", + :maintenance_work_mem => "10GB", + :random_page_cost => "1.5", + :effective_cache_size => "60GB" + } + } + }, + :nominatim => { + :flatnode_file => "/ssd/nominatim/nodes.store", + :database => { + :cluster => "9.4/main", + :dbname => "nominatim", + :postgis => "2.1" + }, + :fpm_pools => { + :www => { + :port => "8000", + :pm => "dynamic", + :max_children => "60" + }, + :bulk => { + :port => "8001", + :pm => "static", + :max_children => "10" + } + } } ) run_list( - "role[ic]" + "role[ic]", + "role[nominatim-standalone]" ) diff --git a/roles/nominatim-standalone.rb b/roles/nominatim-standalone.rb index 230225fdb..98bdee2c7 100644 --- a/roles/nominatim-standalone.rb +++ b/roles/nominatim-standalone.rb @@ -2,13 +2,15 @@ name "nominatim-standalone" description "Role applied to all stand-alone nominatim servers" default_attributes( + :apt => { + :sources => ["postgresql"] + }, :postgresql => { - :versions => ["9.3"] + :versions => ["9.4"] }, :nominatim => { :enable_backup => false } - ) run_list( -- 2.43.2