Skip to content

Commit e9d5895

Browse files
committed
[rails] Update puma to 6.5 and auto config workers
+--------------+---------+------+------+-----+-----+-------+------------+--------------+ | branch_name|plaintext|update| json| db|query|fortune|cached-query|weighted_score| +--------------+---------+------+------+-----+-----+-------+------------+--------------+ | master| 24599| 10016| 84462|24975|15127| 15241| 16647| 1207| |rails/puma-6.5| 20084| 10768| 74156|27255|17746| 18156| 17960| 1320| +--------------+---------+------+------+-----+-----+-------+------------+--------------+
1 parent 2ed435c commit e9d5895

File tree

3 files changed

+2
-3
lines changed

3 files changed

+2
-3
lines changed

frameworks/Ruby/rails/config/puma.rb

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -30,9 +30,6 @@
3030
# Specifies the `port` that Puma will listen on to receive requests; default is 3000.
3131
port ENV.fetch("PORT", 3000)
3232

33-
tuned_num_workers, tuned_num_threads = auto_tune
34-
workers tuned_num_workers
35-
3633
# Allow puma to be restarted by `bin/rails restart` command.
3734
plugin :tmp_restart
3835

frameworks/Ruby/rails/rails-mysql.dockerfile

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@ RUN bundle install --jobs=8
2020

2121
COPY . /rails/
2222

23+
ENV WEB_CONCURRENCY=auto
2324
ENV RAILS_ENV=production_mysql
2425
ENV PORT=8080
2526
ENV REDIS_URL=redis://localhost:6379/0

frameworks/Ruby/rails/rails.dockerfile

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@ RUN bundle install --jobs=8
2020

2121
COPY . /rails/
2222

23+
ENV WEB_CONCURRENCY=auto
2324
ENV RAILS_ENV=production_postgresql
2425
ENV PORT=8080
2526
ENV REDIS_URL=redis://localhost:6379/0

0 commit comments

Comments
 (0)