From c444a9142cb850d9e737f56ef41217113edcb4c1 Mon Sep 17 00:00:00 2001 From: "Jon R. Humphrey" Date: Wed, 13 Mar 2024 15:56:53 +0000 Subject: [PATCH 1/4] fix: mirror multiple puma thread configuration --- config/puma.rb | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/config/puma.rb b/config/puma.rb index 0fe97e99..a6af78b9 100644 --- a/config/puma.rb +++ b/config/puma.rb @@ -6,8 +6,9 @@ # the maximum value specified for Puma. Default is set to 5 threads for minimum # and maximum, this matches the default thread size of Active Record. # -threads_count = ENV.fetch('RAILS_MAX_THREADS', 5).to_i -threads threads_count, threads_count +max_threads_count = ENV.fetch('RAILS_MAX_THREADS', 5) +min_threads_count = ENV.fetch('RAILS_MIN_THREADS', max_threads_count) +threads min_threads_count, max_threads_count # Specifies the `port` that Puma will listen on to receive requests, default is 3000. # From 4da2b6a6c7ed4cbaa9d92649c479d6455b0899c2 Mon Sep 17 00:00:00 2001 From: "Jon R. Humphrey" Date: Wed, 13 Mar 2024 15:57:03 +0000 Subject: [PATCH 2/4] docs: updated CHANGELOG --- CHANGELOG.md | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index 42f64318..5e04fa70 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -2,6 +2,10 @@ ## unreleased +- (Jon) Updated puma.rb configuration to accept both `RAILS_MIN_THREADS` and + `RAILS_MAX_THREADS` environment variables to allow a more flexible configuration + for the application to run in different environments. + [GH-143](https://github.com/epimorphics/hmlr-linked-data/issues/143) - (Jon) Updated the UKHPI contact form links to point to the new contact form page; both the English and Welsh versions [GH-135](https://github.com/epimorphics/hmlr-linked-data/issues/135) From 56120bda4f6403bf1784e7be686b47266fd52ee0 Mon Sep 17 00:00:00 2001 From: "Jon R. Humphrey" Date: Fri, 15 Mar 2024 13:06:37 +0000 Subject: [PATCH 3/4] docs: Updated CHANGELOG Applied new version section and moved all unreleased topic there under --- CHANGELOG.md | 2 ++ 1 file changed, 2 insertions(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index 5e04fa70..30742fe6 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -2,6 +2,8 @@ ## unreleased +## 1.7.3 - 2024-03-15 + - (Jon) Updated puma.rb configuration to accept both `RAILS_MIN_THREADS` and `RAILS_MAX_THREADS` environment variables to allow a more flexible configuration for the application to run in different environments. From 5c1bcdf7a2cd745b96b604f90572e75635c83969 Mon Sep 17 00:00:00 2001 From: "Jon R. Humphrey" Date: Fri, 15 Mar 2024 13:07:03 +0000 Subject: [PATCH 4/4] build: updated PATCH version cadence v1.7.2 => 1.7.3 --- app/lib/version.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/lib/version.rb b/app/lib/version.rb index 980aa860..9efc59bc 100644 --- a/app/lib/version.rb +++ b/app/lib/version.rb @@ -3,7 +3,7 @@ module Version MAJOR = 1 MINOR = 7 - PATCH = 2 + PATCH = 3 SUFFIX = nil VERSION = "#{MAJOR}.#{MINOR}.#{PATCH}#{SUFFIX && ".#{SUFFIX}"}" end