Skip to content

Commit

Permalink
Refs #33974 - Update the db_pool value
Browse files Browse the repository at this point in the history
The new value should be at least the number of puma threads + 4.
More details: https://community.theforeman.org/t/rails-connection-pool-size-optimizations/36675
  • Loading branch information
ShimShtein authored and evgeni committed May 22, 2024
1 parent f0f6d8a commit 6bc05bb
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
if answers['foreman'].is_a?(Hash) && answers.dig('foreman', 'db_pool').to_i == 5
answers['foreman'].delete('db_pool')
end
3 changes: 3 additions & 0 deletions config/katello.migrations/240506081834-change-db-pool-size.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
if answers['foreman'].is_a?(Hash) && answers.dig('foreman', 'db_pool').to_i == 5
answers['foreman'].delete('db_pool')
end

0 comments on commit 6bc05bb

Please sign in to comment.