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

TB-124 Add pgpool connection manager #243

Merged
merged 28 commits into from
Jul 28, 2023

Conversation

arran-standish
Copy link
Collaborator

@arran-standish arran-standish commented Jul 7, 2023

In order to better manage the underlying connections that hapi-fhir makes to postgres, I introduced Pgpool as an intermediate between hapi-fhir and postgres to better manage connections.

The reason being that while under load I found that hapi-fhir's service begins to degrade and throws errors of being unable to obtain a connection to postgres after a 30s timeout. Also on postgres side I found that it reached its max capacity of client connections. Finally, it seems like hapi-fhir will open a connection to postgres but it will idle indefinitely despite making more requests to postgres for new connections.

@arran-standish arran-standish marked this pull request as ready for review July 11, 2023 10:23
@arran-standish arran-standish marked this pull request as draft July 11, 2023 11:31
@arran-standish arran-standish marked this pull request as ready for review July 11, 2023 11:54
@arran-standish arran-standish marked this pull request as draft July 26, 2023 06:59
@arran-standish arran-standish marked this pull request as ready for review July 26, 2023 07:00
@arran-standish arran-standish marked this pull request as draft July 27, 2023 06:33
@arran-standish arran-standish marked this pull request as ready for review July 27, 2023 06:33
@bradsawadye bradsawadye marked this pull request as draft July 27, 2023 12:15
@bradsawadye bradsawadye marked this pull request as ready for review July 27, 2023 12:15
@arran-standish arran-standish merged commit d1ff951 into main Jul 28, 2023
8 checks passed
@arran-standish arran-standish deleted the TB-124-add-pgpool-connection-manager branch July 28, 2023 06:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants