-
Notifications
You must be signed in to change notification settings - Fork 136
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Refs #33974 - Update the db_pool value #937
Conversation
This also needs a katello migration -- use https://github.com/theforeman/foreman-installer/blob/develop/bin/create-migration and then copy the logic into the file it creates |
config/foreman.migrations/20240505103832_change_db_pool_size.rb
Outdated
Show resolved
Hide resolved
ea329d1
to
1a3e0cf
Compare
@ehelms added the same migration also to Katello. @evgeni: currently the code makes sure the db_pool size is at least the number we recommend. If the user has the number bigger - we won't change it. This duplicates the logic, but I think it's not that bad, especially since the migration is a one time thing. |
1a3e0cf
to
2870d7d
Compare
Updated the minimum to 5 |
[test foreman-installer] |
2870d7d
to
afd9a84
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please use Refs #33974
in the commit message.
afd9a84
to
f5a94e8
Compare
44e3086
to
d1f2c4b
Compare
Tests are currently failing as we have dependency mismatch while installer modules are being released. |
That should be resolved. Please rebase |
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
d1f2c4b
to
8fb4afd
Compare
@ekohl Rebased, the tests are green! |
I think @evgeni's concerns are addressed, but leaving it to him to press the green button. |
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