Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[rails] Update puma to 6.5 and auto config workers #9498

Merged
merged 1 commit into from
Jan 7, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading