Skip to content
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

Merged
merged 1 commit into from
May 22, 2024

Conversation

ShimShtein
Copy link
Member

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

@ehelms
Copy link
Member

ehelms commented May 5, 2024

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

@ShimShtein
Copy link
Member Author

@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.

@ShimShtein
Copy link
Member Author

Updated the minimum to 5

@evgeni
Copy link
Member

evgeni commented May 8, 2024

[test foreman-installer]

Copy link
Member

@ekohl ekohl left a 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.

@ShimShtein ShimShtein force-pushed the add_db_pool_migration branch 2 times, most recently from 44e3086 to d1f2c4b Compare May 16, 2024 09:50
@ehelms ehelms changed the title Update the db_pool value Refs #33974 - Update the db_pool value May 20, 2024
@ehelms
Copy link
Member

ehelms commented May 20, 2024

Tests are currently failing as we have dependency mismatch while installer modules are being released.

@ekohl
Copy link
Member

ekohl commented May 22, 2024

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
@ShimShtein
Copy link
Member Author

@ekohl Rebased, the tests are green!

@ekohl
Copy link
Member

ekohl commented May 22, 2024

I think @evgeni's concerns are addressed, but leaving it to him to press the green button.

@evgeni evgeni merged commit 6bc05bb into theforeman:develop May 22, 2024
8 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
4 participants