Browse Source

[ruby/rack] Enable Rubys M:N thread scheduler for Puma (#8678)

With the M:N thread scheduler thread creation and management cost are reduced.
Petrik de Heus 1 year ago
parent
commit
e1dcb73c82
1 changed files with 1 additions and 0 deletions
  1. 1 0
      frameworks/Ruby/rack/rack.dockerfile

+ 1 - 0
frameworks/Ruby/rack/rack.dockerfile

@@ -1,6 +1,7 @@
 FROM ruby:3.4-rc
 FROM ruby:3.4-rc
 
 
 ENV RUBY_YJIT_ENABLE=1
 ENV RUBY_YJIT_ENABLE=1
+ENV RUBY_MN_THREADS=1
 
 
 # Use Jemalloc
 # Use Jemalloc
 RUN apt-get update && \
 RUN apt-get update && \