We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 3541503 commit 60a0b02Copy full SHA for 60a0b02
3 files changed
frameworks/roda/Dockerfile
@@ -12,6 +12,7 @@ ENV RUBY_MN_THREADS=1
12
ENV RACK_ENV=production
13
ENV WEB_CONCURRENCY=auto
14
ENV MAX_THREADS=4
15
+ENV MAX_IO_THREADS=10
16
17
WORKDIR /app
18
frameworks/roda/app.rb
@@ -69,6 +69,7 @@ class App < Roda
69
end
70
71
r.is 'upload' do
72
+ request.env["puma.mark_as_io_bound"].call
73
size = 0
74
buf = request.body
75
while (chunk = buf.read(65536))
frameworks/roda/puma.rb
@@ -1,4 +1,5 @@
1
threads ENV.fetch('MAX_THREADS', 4).to_i
2
+max_io_threads ENV.fetch("MAX_IO_THREADS", 10).to_i
3
4
tls_cert_path = ENV.fetch('TLS_CERT', '/certs/server.crt')
5
tls_key_path = ENV.fetch('TLS_KEY', '/certs/server.key')
0 commit comments