Skip to content

Connection pool management #1002

@danielballan

Description

@danielballan

In the wild, we have seen transient errors due to a stale connection in the SQLAlchemy PostgreSQL connection pool. I think we should be using pessimistic connection pooling. The causes SQLAlchemy, when checking a connection out of the pool, to verify that it is active before using it.

I looked into this back when drafting AuthN years ago, and at least tried making it configurable. I now think we should just turn this on (pre_ping=True), unconfigurably.

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions