Browse Source

Merge pull request #9498 from p8/rails/puma-6.5

[rails] Update puma to 6.5 and auto config workers
Mike Smith 7 months ago
parent
commit
81ff64fbfb

+ 0 - 3
frameworks/Ruby/rails/config/puma.rb

@@ -30,9 +30,6 @@ worker_timeout 3600 if ENV.fetch("RAILS_ENV", "development") == "development"
 # Specifies the `port` that Puma will listen on to receive requests; default is 3000.
 port ENV.fetch("PORT", 3000)
 
-tuned_num_workers, tuned_num_threads = auto_tune
-workers tuned_num_workers
-
 # Allow puma to be restarted by `bin/rails restart` command.
 plugin :tmp_restart
 

+ 1 - 0
frameworks/Ruby/rails/rails-mysql.dockerfile

@@ -20,6 +20,7 @@ RUN bundle install --jobs=8
 
 COPY . /rails/
 
+ENV WEB_CONCURRENCY=auto
 ENV RAILS_ENV=production_mysql
 ENV PORT=8080
 ENV REDIS_URL=redis://localhost:6379/0

+ 1 - 0
frameworks/Ruby/rails/rails.dockerfile

@@ -20,6 +20,7 @@ RUN bundle install --jobs=8
 
 COPY . /rails/
 
+ENV WEB_CONCURRENCY=auto
 ENV RAILS_ENV=production_postgresql
 ENV PORT=8080
 ENV REDIS_URL=redis://localhost:6379/0