Skip to content

Commit a807ce8

Browse files
authored
[ruby/padrino] Don't hardcode number of workers to 8 for Puma (#9681)
Use autotune instead as the server can handle a lot more than 8 threads.
1 parent 2661d4b commit a807ce8

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

frameworks/Ruby/padrino/config/auto_tune.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
MIN_WORKERS = 2
1010
MAX_WORKERS_PER_VCPU = 1.25 # virtual/logical
1111
MIN_THREADS_PER_WORKER = 1
12-
MAX_THREADS = Integer(ENV['MAX_CONCURRENCY'] || 8)
12+
MAX_THREADS = Integer(ENV['MAX_CONCURRENCY'] || 256)
1313

1414
def meminfo(arg)
1515
File.open('/proc/meminfo') do |f|

frameworks/Ruby/padrino/padrino.dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,4 +16,4 @@ EXPOSE 8080
1616

1717
ENV RUBY_YJIT_ENABLE=1
1818

19-
CMD bundle exec puma -C config/puma.rb -w 8 --preload
19+
CMD bundle exec puma -C config/puma.rb

0 commit comments

Comments
 (0)