Skip to content

Commit 3739bf1

Browse files
authored
[ruby/puma] Set MIN_THREADS as well for Puma (#10513)
Setting the MIN_THREADS makes the benchmarks more deterministic when testing single tests that might not activate all threads.
1 parent 3081e85 commit 3739bf1

File tree

11 files changed

+11
-0
lines changed

11 files changed

+11
-0
lines changed

frameworks/Ruby/grape/grape.dockerfile

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@ RUN bundle config set with 'puma'
1515
RUN bundle install --jobs=8 --gemfile=/grape/Gemfile
1616

1717
ENV WEB_CONCURRENCY=auto
18+
ENV MIN_THREADS=5
1819
ENV MAX_THREADS=5
1920

2021
EXPOSE 8080

frameworks/Ruby/rack-sequel/rack-sequel-postgres.dockerfile

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@ RUN bundle install --jobs=4 --gemfile=/rack-sequel/Gemfile
1717

1818
ENV DBTYPE=postgresql
1919

20+
ENV MIN_THREADS=8
2021
ENV MAX_THREADS=8
2122

2223
EXPOSE 8080

frameworks/Ruby/rack-sequel/rack-sequel.dockerfile

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@ RUN bundle install --jobs=4 --gemfile=/rack-sequel/Gemfile
1717

1818
ENV DBTYPE=mysql
1919

20+
ENV MIN_THREADS=8
2021
ENV MAX_THREADS=8
2122

2223
EXPOSE 8080

frameworks/Ruby/rack/rack-zjit.dockerfile

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@ RUN bundle install --jobs=8
1818

1919
COPY . .
2020

21+
ENV MIN_THREADS=5
2122
ENV MAX_THREADS=5
2223

2324
EXPOSE 8080

frameworks/Ruby/rack/rack.dockerfile

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@ RUN bundle install --jobs=8
1818

1919
COPY . .
2020

21+
ENV MIN_THREADS=5
2122
ENV MAX_THREADS=5
2223

2324
EXPOSE 8080

frameworks/Ruby/roda-sequel/roda-sequel-postgres.dockerfile

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@ RUN bundle install --jobs=8
1818
ENV RACK_ENV=production
1919
ENV DBTYPE=postgresql
2020

21+
ENV MIN_THREADS=5
2122
ENV MAX_THREADS=5
2223

2324
EXPOSE 8080

frameworks/Ruby/roda-sequel/roda-sequel.dockerfile

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@ RUN bundle install --jobs=8
1818
ENV RACK_ENV=production
1919
ENV DBTYPE=mysql
2020

21+
ENV MIN_THREADS=5
2122
ENV MAX_THREADS=5
2223

2324
EXPOSE 8080

frameworks/Ruby/sinatra-sequel/sinatra-sequel-postgres.dockerfile

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@ RUN bundle install --jobs=4 --gemfile=/sinatra-sequel/Gemfile
1616
ENV APP_ENV=production
1717
ENV DBTYPE=postgresql
1818

19+
ENV MIN_THREADS=5
1920
ENV MAX_THREADS=5
2021

2122
EXPOSE 8080

frameworks/Ruby/sinatra-sequel/sinatra-sequel.dockerfile

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@ RUN bundle install --jobs=4 --gemfile=/sinatra-sequel/Gemfile
1616
ENV APP_ENV=production
1717
ENV DBTYPE=mysql
1818

19+
ENV MIN_THREADS=5
1920
ENV MAX_THREADS=5
2021

2122
EXPOSE 8080

frameworks/Ruby/sinatra/sinatra-postgres.dockerfile

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@ RUN bundle install --jobs=4 --gemfile=/sinatra/Gemfile
1616
ENV APP_ENV=production
1717
ENV DBTYPE=postgresql
1818

19+
ENV MIN_THREADS=5
1920
ENV MAX_THREADS=5
2021

2122
EXPOSE 8080

0 commit comments

Comments
 (0)