Skip to content

Conversation

jlpedrosa
Copy link

Hi

Under peaks, the connection pool expands up to max size, but if the load decreases but there´s still some activity, then the pool will never shrink, as all the connections are being "touched" due to the Queue implementation. So in order the pool to shrink it needs to go to no usage at all.

This patch detects the maximum pool utilization between clean ups, and shrinks it to that value or the min size if it that would be higher.

Jose Luis Pedrosa

…between clean ups, and reduce the available connections to that value or min size, whatever is bigger.
@mysql-oca-bot
Copy link

Hi, thank you for your contribution. Please confirm this code is submitted under the terms of the OCA (Oracle's Contribution Agreement) you have previously signed by cutting and pasting the following text as a comment:
"I confirm the code being submitted is offered under the terms of the OCA, and that I am authorized to contribute it."
Thanks

@jlpedrosa
Copy link
Author

I confirm the code being submitted is offered under the terms of the OCA, and that I am authorized to contribute it

@mysql-oca-bot
Copy link

Hi, thank you for your contribution. Your code has been assigned to an internal queue. Please follow
bug http://bugs.mysql.com/bug.php?id=87888 for updates.
Thanks

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