We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9c1868e commit 419e625Copy full SHA for 419e625
frameworks/Ruby/grape/config/puma.rb
@@ -1,11 +1,9 @@
1
require_relative 'auto_tune'
2
3
# FWBM only... use the puma_auto_tune gem in production!
4
-num_workers, num_threads = auto_tune
+_, num_threads = auto_tune
5
6
-workers num_workers
7
-
8
-threads 3, 3
+threads num_threads
9
10
# Use the `preload_app!` method when specifying a `workers` number.
11
# This directive tells Puma to first boot the application and load code
frameworks/Ruby/grape/grape.dockerfile
@@ -13,6 +13,7 @@ WORKDIR /grape
13
14
RUN bundle install --jobs=4 --gemfile=/grape/Gemfile
15
16
+ENV WEB_CONCURRENCY=auto
17
EXPOSE 8080
18
19
CMD bundle exec puma -C config/puma.rb -b tcp://0.0.0.0:8080 -e production
0 commit comments