소스 검색

[rails] Use 5 threads for puma (#10122)

This should score better for the fortunes test.
Petrik de Heus 3 달 전
부모
커밋
a3906c0a4c
2개의 변경된 파일2개의 추가작업 그리고 0개의 파일을 삭제
  1. 1 0
      frameworks/Ruby/rails/rails-mysql.dockerfile
  2. 1 0
      frameworks/Ruby/rails/rails.dockerfile

+ 1 - 0
frameworks/Ruby/rails/rails-mysql.dockerfile

@@ -21,6 +21,7 @@ RUN bundle install --jobs=8
 COPY . /rails/
 
 ENV WEB_CONCURRENCY=auto
+ENV RAILS_MAX_THREADS=5
 ENV RAILS_ENV=production_mysql
 ENV PORT=8080
 ENV REDIS_URL=redis://localhost:6379/0

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

@@ -21,6 +21,7 @@ RUN bundle install --jobs=8
 COPY . /rails/
 
 ENV WEB_CONCURRENCY=auto
+ENV RAILS_MAX_THREADS=5
 ENV RAILS_ENV=production_postgresql
 ENV PORT=8080
 ENV REDIS_URL=redis://localhost:6379/0