From bcd32245e8362441e008d0987c32debd84c872d0 Mon Sep 17 00:00:00 2001 From: Petrik Date: Sat, 30 Dec 2023 17:42:44 +0100 Subject: [PATCH] [ruby/rails] Enable Rubys MN threads With the M:N thread scheduler thread creation and management cost are reduced. --- frameworks/Ruby/rails/rails-mysql.dockerfile | 2 ++ frameworks/Ruby/rails/rails.dockerfile | 2 ++ 2 files changed, 4 insertions(+) diff --git a/frameworks/Ruby/rails/rails-mysql.dockerfile b/frameworks/Ruby/rails/rails-mysql.dockerfile index 7129e9bd6d6..962a1b605b4 100644 --- a/frameworks/Ruby/rails/rails-mysql.dockerfile +++ b/frameworks/Ruby/rails/rails-mysql.dockerfile @@ -14,6 +14,8 @@ RUN bundle install --jobs=8 COPY . /rails/ ENV RUBY_YJIT_ENABLE=1 +ENV RUBY_MN_THREADS=1 + ENV RAILS_ENV=production_mysql ENV PORT=8080 ENV REDIS_URL=redis://localhost:6379/0 diff --git a/frameworks/Ruby/rails/rails.dockerfile b/frameworks/Ruby/rails/rails.dockerfile index d49a378e9bf..d964542f174 100644 --- a/frameworks/Ruby/rails/rails.dockerfile +++ b/frameworks/Ruby/rails/rails.dockerfile @@ -14,6 +14,8 @@ RUN bundle install --jobs=8 COPY . /rails/ ENV RUBY_YJIT_ENABLE=1 +ENV RUBY_MN_THREADS=1 + ENV RAILS_ENV=production_postgresql ENV PORT=8080 ENV REDIS_URL=redis://localhost:6379/0