From: Tom Hughes Date: Sun, 12 Mar 2017 11:56:05 +0000 (+0000) Subject: Bring web site back online using karm X-Git-Url: https://git.openstreetmap.org/chef.git/commitdiff_plain/215373326fae6ef0fa85eeeb40f5d17943e3d533?hp=a5afb29c460ffe42f50daa8481a4a4fdeb778026 Bring web site back online using karm --- diff --git a/cookbooks/web/templates/default/apache.frontend.erb b/cookbooks/web/templates/default/apache.frontend.erb index 165b4adfc..39117f4dc 100644 --- a/cookbooks/web/templates/default/apache.frontend.erb +++ b/cookbooks/web/templates/default/apache.frontend.erb @@ -192,7 +192,7 @@ ProxyPass /api/0.6/amf/read balancer://backend/api/0.6/amf/read ProxyPass /api/0.6/swf/trackpoints balancer://backend/api/0.6/swf/trackpoints ProxyPassMatch ^(/api/0\.6/changeset/[0-9]+)$ balancer://backend$1 - ProxyPassMatch ^(/api/0\.6/changeset/[0-9]+/upload)$ balancer://bytemark$1 + ProxyPassMatch ^(/api/0\.6/changeset/[0-9]+/upload)$ balancer://ic$1 ProxyPassMatch ^(/api/0\.6/changeset/[0-9]+/download)$ balancer://backend$1 ProxyPassMatch ^(/api/0\.6/(node|way|relation)/[0-9]+)$ balancer://backend$1 ProxyPassMatch ^(/api/0\.6/(node|way|relation)/[0-9]+/(full|history|search|ways))$ balancer://backend$1 @@ -233,11 +233,11 @@ # - # Define a load balancer for the Bytemark backends + # Define a load balancer for the IC backends # - + ProxySet lbmethod=bybusyness -<% ["rails4.bm", "rails5.bm"].each do |backend| -%> +<% ["rails1.bm", "rails2.bm", "rails3.bm"].each do |backend| -%> <% if port == 443 -%> BalancerMember https://<%= backend %> disablereuse=on <% else -%> diff --git a/roles/bytemark.rb b/roles/bytemark.rb index 6d539ff5f..ff4e45ace 100644 --- a/roles/bytemark.rb +++ b/roles/bytemark.rb @@ -28,8 +28,7 @@ default_attributes( }, :web => { :backends => %w(rails4 rails5), - :fileserver => "grisu", - :readonly_database_host => "katla.bm.openstreetmap.org" + :fileserver => "grisu" } ) diff --git a/roles/web-db.rb b/roles/web-db.rb index 7ae1af973..c70aaad73 100644 --- a/roles/web-db.rb +++ b/roles/web-db.rb @@ -3,6 +3,6 @@ description "Role applied to all servers needing to find the main database" default_attributes( :web => { - :database_host => "katla.bm.openstreetmap.org" + :database_host => "karm.ic.openstreetmap.org" } ) diff --git a/roles/web.rb b/roles/web.rb index c09998637..dce003b3d 100644 --- a/roles/web.rb +++ b/roles/web.rb @@ -14,7 +14,7 @@ default_attributes( :pool_idle_time => 0 }, :web => { - :status => "database_offline", + :status => "online", :memcached_servers => %w(rails1.ic rails2.ic rails3.ic) } )