Apply Configured MySQL Connection Pool Settings - #39
Merged
x64-dev merged 1 commit intoAug 15, 2026
Conversation
…_conn_reset to MySQL connection pool
This file contains hidden or 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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
oh what a Cerv in the PR's? someone stop this man. full disclosure this PR text are my ramblings turned into a coherent PR by john Co Pilot.
Summary
The database pool settings were read from configuration but never applied to the MySQL connection string.
As a result, production silently used MySql.Data defaults instead of the configured pool size. This could cap the application at approximately 100 connections despite
db_max_poolsizebeing configured as500.Changes
db_min_poolsizetoMinimumPoolSize.db_max_poolsizetoMaximumPoolSize.db_use_poolingtoPooling.db_conn_resettoConnectionReset.appsettings.json. (this seems to be allready set in prod just not in the template i guess)Configuration
Production should include:
{ "Database": { "db_min_poolsize": 10, "db_max_poolsize": 500, "db_use_pooling": true, "db_conn_reset": true } }dotnet build ran without issues and warnings.
This PR is technically related to a general issue in DB pooling and possible exhaustion but focuses on adressing only the con pool config issue.
C# aint my strong sword but this server magic is feel free to critisize and call me names if i fucked up.