Browse Source

[rails] Set connection pool to 5 (#8562)

The connection pool size should be set to the number of threads per
worker. This was previously correct.

This partially reverts commit 43761fca4aa920e78b5ea6a13c690da1d2b75565.
Petrik de Heus 1 year ago
parent
commit
ba03ee555f
1 changed files with 1 additions and 1 deletions
  1. 1 1
      frameworks/Ruby/rails/config/database.yml

+ 1 - 1
frameworks/Ruby/rails/config/database.yml

@@ -5,7 +5,7 @@ default: &default
   password: benchmarkdbpass
   password: benchmarkdbpass
   host: tfb-database
   host: tfb-database
   timeout: 5000
   timeout: 5000
-  pool: <%= require_relative 'auto_tune'; auto_tune.reduce(:*) %>
+  pool: <%= ENV.fetch("RAILS_MAX_THREADS") { 5 } %>
 
 
 development:
 development:
   <<: *default
   <<: *default