From ffe3d09879f7b5d5694ced6dab0743ffd4e02b01 Mon Sep 17 00:00:00 2001 From: Pau Perez Date: Wed, 18 Nov 2020 12:52:30 +0100 Subject: [PATCH 1/2] Add Scout APM gem Scout seems to provide Request Queueing time which is what we need to assess the right settings for Rails autoscaling which we introduced in https://github.com/coopdevs/decidim-coopcat/pull/61. It's not clear to me if the free tier includes this. We'll give a try and see how much we can get from it. --- Gemfile | 1 + Gemfile.lock | 3 +++ 2 files changed, 4 insertions(+) diff --git a/Gemfile b/Gemfile index a31aef818..8e391cc0c 100644 --- a/Gemfile +++ b/Gemfile @@ -42,4 +42,5 @@ group :production do gem 'sentry-raven' gem 'sidekiq' gem 'barnes' + gem 'scout_apm' end diff --git a/Gemfile.lock b/Gemfile.lock index 452c7065b..e2ff0487c 100644 --- a/Gemfile.lock +++ b/Gemfile.lock @@ -747,6 +747,8 @@ GEM nokogiri (>= 1.8.1) nori (~> 2.4) wasabi (~> 3.4) + scout_apm (2.6.10) + parser searchlight (4.1.0) selenium-webdriver (3.142.7) childprocess (>= 0.5, < 4.0) @@ -863,6 +865,7 @@ DEPENDENCIES puma (~> 4.3.3) rack-timeout rails_autoscale_agent + scout_apm sentry-raven sidekiq spring (~> 2.0) From 1f7374198ffb5eccbc4006e26a90d0fb1d6064a1 Mon Sep 17 00:00:00 2001 From: Pau Perez Date: Wed, 18 Nov 2020 12:55:29 +0100 Subject: [PATCH 2/2] Move Rails autoscale gem to production group --- Gemfile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Gemfile b/Gemfile index 8e391cc0c..1ba3a5cee 100644 --- a/Gemfile +++ b/Gemfile @@ -16,7 +16,6 @@ gem "bootsnap", "~> 1.3" gem "puma", "~> 4.3.3" gem "rack-timeout" -gem "rails_autoscale_agent" gem "uglifier", "~> 4.1" gem "faker", "~> 1.9" @@ -43,4 +42,5 @@ group :production do gem 'sidekiq' gem 'barnes' gem 'scout_apm' + gem 'rails_autoscale_agent' end