Skip to content

Commit 28d378e

Browse files
authored
[ruby/sinatra] Use auto-configured workers (#10351)
If WEB_CONCURRENCY=auto we don't need to set the workers in the puma.rb
1 parent ecebbf6 commit 28d378e

File tree

3 files changed

+3
-4
lines changed

3 files changed

+3
-4
lines changed
Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
require_relative 'auto_tune'
22

33
# FWBM only... use the puma_auto_tune gem in production!
4-
num_workers, num_threads = auto_tune
4+
_, num_threads = auto_tune
55

6-
workers num_workers
76
threads num_threads, num_threads

frameworks/Ruby/sinatra/sinatra-postgres.dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,4 +19,4 @@ ENV DBTYPE=postgresql
1919

2020
EXPOSE 8080
2121

22-
CMD bundle exec puma -C config/mri_puma.rb -b tcp://0.0.0.0:8080
22+
CMD bundle exec puma -C config/puma.rb -b tcp://0.0.0.0:8080

frameworks/Ruby/sinatra/sinatra.dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,4 +19,4 @@ ENV DBTYPE=mysql
1919
ENV WEB_CONCURRENCY=auto
2020
EXPOSE 8080
2121

22-
CMD bundle exec puma -C config/mri_puma.rb -b tcp://0.0.0.0:8080
22+
CMD bundle exec puma -C config/puma.rb -b tcp://0.0.0.0:8080

0 commit comments

Comments
 (0)