From 54cf07afe529295ab452bed8e641ec2c4b94f422 Mon Sep 17 00:00:00 2001 From: Petrik Date: Fri, 28 Aug 2026 13:57:59 +0200 Subject: [PATCH] [roda] Disable puma-io-threads Using puma-io-threads seems to reduce performance for baseline. --- frameworks/roda/Dockerfile | 2 +- frameworks/roda/config.ru | 17 ----------------- 2 files changed, 1 insertion(+), 18 deletions(-) diff --git a/frameworks/roda/Dockerfile b/frameworks/roda/Dockerfile index 0f3dd5dd2..5f0836573 100644 --- a/frameworks/roda/Dockerfile +++ b/frameworks/roda/Dockerfile @@ -12,7 +12,7 @@ ENV RUBY_MN_THREADS=1 ENV RACK_ENV=production ENV WEB_CONCURRENCY=auto ENV MAX_THREADS=4 -ENV MAX_IO_THREADS=10 +ENV MAX_IO_THREADS=4 WORKDIR /app diff --git a/frameworks/roda/config.ru b/frameworks/roda/config.ru index 37e474036..e970954d2 100644 --- a/frameworks/roda/config.ru +++ b/frameworks/roda/config.ru @@ -1,21 +1,4 @@ require_relative 'app' -# Threads marked as IO bound are allowed to go over Puma's max thread limit. -class MarkAsIOBoundThreads - IOBoundPaths = %w[/baseline11 /baseline2 /async-db].map { [_1, nil] }.to_h.freeze - - def initialize(app) - @app = app - end - - def call(env) - if IOBoundPaths.has_key? env['PATH_INFO'] - env["puma.mark_as_io_bound"].call - end - @app.call(env) - end -end - -use MarkAsIOBoundThreads use Rack::Deflater # enable gzip run App