From c1067ac336f97552e0a8565b8ac03ea62d10e1d6 Mon Sep 17 00:00:00 2001 From: Tom Hughes Date: Sat, 16 Jul 2022 12:00:43 +0100 Subject: [PATCH] Allow the trace importer to run on all frontends Now that the trace files are in the cloud there's no need to limit imports to the primary cluster. --- cookbooks/web/recipes/frontend.rb | 16 +++++----------- 1 file changed, 5 insertions(+), 11 deletions(-) diff --git a/cookbooks/web/recipes/frontend.rb b/cookbooks/web/recipes/frontend.rb index ecfaea7ef..e18974af8 100644 --- a/cookbooks/web/recipes/frontend.rb +++ b/cookbooks/web/recipes/frontend.rb @@ -77,15 +77,9 @@ service "rails-jobs@storage" do subscribes :restart, "systemd_service[rails-jobs]" end -if node[:web][:primary_cluster] - service "rails-jobs@traces" do - action [:enable, :start] - supports :restart => true - subscribes :restart, "rails_port[www.openstreetmap.org]" - subscribes :restart, "systemd_service[rails-jobs]" - end -else - service "rails-jobs@traces" do - action [:disable, :stop] - end +service "rails-jobs@traces" do + action [:enable, :start] + supports :restart => true + subscribes :restart, "rails_port[www.openstreetmap.org]" + subscribes :restart, "systemd_service[rails-jobs]" end -- 2.39.5