Closed macobo closed 3 years ago
Seems like we're running Aurora Postgresql directly on RDS, with no pgbouncer.
Here you can see our connection usage over last week:
While there are connection limits on it, it seems we've set it to autoscale. Here's the "number of instances" count over the last week:
Looking at other metrics, seems like we're doing very little traffic through it. Seems like we might need to tweak this instance setup?
cc @fuziontech - mind documenting the existing setup and handing off the "fix" to tiina or me?
Fixed! We added a PGBouncer service between Aurora and Graphile https://github.com/PostHog/private-infra/tree/main/aws/infra/services/pgq-pgbouncer
Sentry error: https://sentry.io/organizations/posthog/issues/2225546229/?project=5592816&query=is%3Aunassigned+is%3Aunresolved
This might be because either:
Worth looking into: