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 90289c1 commit 79d161aCopy full SHA for 79d161a
frameworks/Ruby/rack/hello_world.rb
@@ -45,6 +45,8 @@ class HelloWorld
45
def initialize
46
if defined?(Puma) || defined?(Itsi)
47
max_connections = ENV.fetch('MAX_THREADS')
48
+ elsif defined?(Iodine)
49
+ max_connections = ENV.fetch('THREADS')
50
else
51
max_connections = 512
52
end
frameworks/Ruby/rack/rack-iodine.dockerfile
@@ -17,6 +17,8 @@ RUN bundle install --jobs=8
17
18
COPY . .
19
20
+ENV THREADS=2
21
+
22
EXPOSE 8080
23
-CMD bundle exec iodine -p 8080 -w $(($(nproc)*5/4))
24
+CMD bundle exec iodine -p 8080 -w $(nproc)
0 commit comments