-
Notifications
You must be signed in to change notification settings - Fork 136
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Refs #33974 - Update the db_pool value
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
1 parent
f0f6d8a
commit 6bc05bb
Showing
2 changed files
with
6 additions
and
0 deletions.
There are no files selected for viewing
3 changes: 3 additions & 0 deletions
3
config/foreman.migrations/20240505103832_change_db_pool_size.rb
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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
3
config/katello.migrations/240506081834-change-db-pool-size.rb
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |