Reaching max connections on MySQL #15
Labels
No Label
bug
documentation
duplicate
enhancement
good first issue
help wanted
invalid
question
wontfix
No Milestone
No project
No Assignees
1 Participants
Notifications
Due Date
No due date set.
Dependencies
No dependencies set.
Reference: Limework/skript-db#15
Loading…
Reference in New Issue
Block a user
No description provided.
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
My skript is reaching max connections on our MySQL instance. How does one manually manage connections to the DB?
clear
ing the object does not seem to solve the issue.Looks like the plugin is hardcoded to use 10 connections exactly in the connection pool? If I am correct, could this be a config option?
it is not hardcoded, it automatically increases connections on demand
connections automatically get closed when they're no longer used
Is there anyway to set the maxLifetime to a different duration? We're running into issues with connections living far, far too long, as the Hikari default appears to be 30 mins, while MySQL appears to be 10 mins. We're attempting to increase it on the MySQL side of things for now, but we'd like to be able to change this in a config somewhere, if possible.
maxLifetime is your sql server's option I believe, not skript-db
Having thought more about this, it may be a good idea to make it configurable on skript-db side, however I do not have environment in which this could be tested as in my environment I do not get this issue.
should be fixed in skript-db 1.3.9 (Release soon)
added max-connection-lifetime to config, default 30min
587f303ba5