terraform-google-cloud-sql-pgbouncer icon indicating copy to clipboard operation
terraform-google-cloud-sql-pgbouncer copied to clipboard

Periodic Memory-related crashes

Open wisefool769 opened this issue 1 year ago • 0 comments

I'm using this package to deploy pgbouncer to GCE. It mostly works well, but I'm observing periodic out of memory issues on the VM, which I suspect is due to a memory leak from pgbouncer (though I am not sure). Everything will work outwardly work fine, until at some point connections fail and you can't SSH onto the VM. My terraform configuration is quite vanilla, and I haven't seen anything informative in the logs. The only clue is the Disk Read IOPS steadily climbing, which seems to indicate intensive usage of swap because out of RAM.

  1. Has anyone seen anything like this before?
  2. Are there any suggested liveness or health checks that are easy to leverage when using this Terraform deployment?

Thank you!

wisefool769 avatar Jan 23 '24 23:01 wisefool769