From: Tom Hughes Date: Mon, 30 Mar 2015 20:31:15 +0000 (+0100) Subject: Remove rails memory limit support X-Git-Url: https://git.openstreetmap.org./chef.git/commitdiff_plain/e4cd927b82f71acc58af48b9eb5757711c5e683b?hp=f585abb661c1a3e8c8168f95ba94b985bfa6fa86 Remove rails memory limit support --- diff --git a/cookbooks/web/definitions/rails_port.rb b/cookbooks/web/definitions/rails_port.rb index 8076b9bec..cbc967e4d 100644 --- a/cookbooks/web/definitions/rails_port.rb +++ b/cookbooks/web/definitions/rails_port.rb @@ -170,14 +170,6 @@ define :rails_port, :action => [:create, :enable] do line.gsub!(/^( *)#quova_password:.*$/, "\\1quova_password: \"#{params[:quova_password]}\"") end - if params[:soft_memory_limit] - line.gsub!(/^( *)#soft_memory_limit:.*$/, "\\1soft_memory_limit: #{params[:soft_memory_limit]}") - end - - if params[:hard_memory_limit] - line.gsub!(/^( *)#hard_memory_limit:.*$/, "\\1hard_memory_limit: #{params[:hard_memory_limit]}") - end - if params[:gpx_dir] line.gsub!(/^( *)gpx_trace_dir:.*$/, "\\1gpx_trace_dir: \"#{params[:gpx_dir]}/traces\"") line.gsub!(/^( *)gpx_image_dir:.*$/, "\\1gpx_image_dir: \"#{params[:gpx_dir]}/images\"") diff --git a/cookbooks/web/recipes/rails.rb b/cookbooks/web/recipes/rails.rb index 6616c49f0..926ff38ce 100644 --- a/cookbooks/web/recipes/rails.rb +++ b/cookbooks/web/recipes/rails.rb @@ -57,8 +57,6 @@ rails_port "www.openstreetmap.org" do messages_domain "messages.openstreetmap.org" quova_username "ws360602" quova_password web_passwords["quova"] - soft_memory_limit node[:web][:rails_soft_memory_limit] - hard_memory_limit node[:web][:rails_hard_memory_limit] gpx_dir "/store/rails/gpx" attachments_dir "/store/rails/attachments" log_path "#{node[:web][:log_directory]}/rails.log" diff --git a/roles/web-backend.rb b/roles/web-backend.rb index 91cd6faac..d77ea1b95 100644 --- a/roles/web-backend.rb +++ b/roles/web-backend.rb @@ -13,10 +13,6 @@ default_attributes( }, :passenger => { :max_pool_size => 12 - }, - :web => { - :rails_soft_memory_limit => 512, - :rails_hard_memory_limit => 2048 } ) diff --git a/roles/web-frontend.rb b/roles/web-frontend.rb index eab62f715..faa1017de 100644 --- a/roles/web-frontend.rb +++ b/roles/web-frontend.rb @@ -16,10 +16,6 @@ default_attributes( :passenger => { :max_pool_size => 50 }, - :web => { - :rails_soft_memory_limit => 256, - :rails_hard_memory_limit => 1024 - }, :exim => { :local_domains => ["messages.openstreetmap.org"], :trusted_users => ["rails"],