You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Jan 12, 2021. It is now read-only.
Not really, but a workaround was to increase the max number of connections on the DB side. I was using AWS RDS and even for small DBs it is possible to increase it from the (low) default to a level where this no longer was a problem.
Setting the max_conn_lifetime_sec to 10 seemed to work for me as a workaround. It feels like the provider isn't re-using existing connections on subsequent requests
Sign up for freeto subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Using mysql provider 1.9.0 and max_open_conns set to 2 I still see a massive amount of mysql connections being used.
Terraform Configuration Files
Expected Behavior
No more than 2 open connections from the mysql provider plugin at any time.
Actual Behavior
21 observed connections in parallel, then terraform halts due to too many mysql connections.
Steps to Reproduce
I reproduce this even with parallelism is set to 1.
terraform apply -parallelism=1
References
The text was updated successfully, but these errors were encountered: