Skip to content

Fixes #39090 - configure DB connections and timeout#63

Merged
ianballou merged 1 commit intoKatello:mainfrom
ianballou:39090-configure-max-connections
Feb 23, 2026
Merged

Fixes #39090 - configure DB connections and timeout#63
ianballou merged 1 commit intoKatello:mainfrom
ianballou:39090-configure-max-connections

Conversation

@ianballou
Copy link
Member

Allows users to configure the maximum number of DB connections and the connect timeout.

Since the smart-proxy uses WEBrick instead of Puma, we can't use the same worker-related logic that Foreman has with determining the amount of DB connections to allow. So, I am bumping up the default from 4 to 30 and allowing users to configure it themselves. We will need Installer support for this too. I am also bumping the timeout up to 30 seconds based on some quick research and a user report that this helped with concurrent container pulls.

@ianballou ianballou force-pushed the 39090-configure-max-connections branch from 9a179ec to f73837b Compare February 19, 2026 19:41
Copy link
Member

@sjha4 sjha4 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Wasn't able to reproduce the initial issue with 4 connections but with the change, able to still concurrently pull 20+ images in parallel and confirm that 30 concurrent connections are opened.

Image Image

Ack based on results above. Code looks good to me and AI. 👍🏼

@ianballou ianballou merged commit 2cfbb91 into Katello:main Feb 23, 2026
11 checks passed
@ianballou ianballou deleted the 39090-configure-max-connections branch February 23, 2026 22:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants