Skip to content

Commit

Permalink
Update puma to 6.5 and auto config workers
Browse files Browse the repository at this point in the history
+--------------+---------+------+------+-----+-----+-------+------------+--------------+
|   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|
+--------------+---------+------+------+-----+-----+-------+------------+--------------+
  • Loading branch information
p8 committed Jan 5, 2025
1 parent 2ed435c commit f6af03c
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 3 deletions.
3 changes: 0 additions & 3 deletions frameworks/Ruby/rails/config/puma.rb
Original file line number Diff line number Diff line change
Expand Up @@ -30,9 +30,6 @@
# 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

Expand Down
1 change: 1 addition & 0 deletions frameworks/Ruby/rails/rails-mysql.dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
1 change: 1 addition & 0 deletions frameworks/Ruby/rails/rails.dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit f6af03c

Please sign in to comment.