Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

hiera-mysql occasionally doesn't close MySQL connections #8

Open
djjudas21 opened this issue May 6, 2014 · 0 comments
Open

hiera-mysql occasionally doesn't close MySQL connections #8

djjudas21 opened this issue May 6, 2014 · 0 comments

Comments

@djjudas21
Copy link

I've been using hiera-mysql in production for a couple of weeks now and on the whole it's been a very good experience, thanks for sharing.

On a handful of occasions, hiera-mysql doesn't properly close MySQL database connections and keeps opening new ones, often having over 100 connections in use. Eventually the MySQL database runs out of available connections and other services that use that database server break.

I've had a look in the puppet master log and there's nothing relevant in there. Any hints on how to go about troubleshooting this?

In the meantime, I've set MySQL's wait_timeout to a lower value, so if this happens again then hopefully the idle connections will be killed by MySQL before too long.

Alternatively, do you have any plans to implement a persistent database connection for hiera-mysql? Would be nice and fast if it opens one connection when the puppetmaster starts, and then throws all queries down the same connections.

Thanks,
Jonathan

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants