Skip to content

Conversation

nicolasvan
Copy link
Member

Use the postgresml bb8 fork while waiting on djc/bb8#164 to ship.

This may fix potential deadlocks in pgcat when returning a server connection to the bb8 inner pool upon transaction completion.

We've seen a single pgcat pod keeping server connections active for longer than expected across multiple pools. At the same time, the upstream postgres servers didn't show matching active connections suggesting that this pgcat pod was failing to return server connections to their pools when transitioning them from active to idle. Hence leading to the increased client wait time across our shards we experienced as fewer server connections were available.

while waiting on djc/bb8#164 to ship
@nicolasvan nicolasvan requested a review from magec October 5, 2023 15:08
Copy link
Collaborator

@magec magec left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It looks promising, the issue might be in bb8 for sure, as the entire pool management is done there.

@nicolasvan nicolasvan merged commit b2f1357 into release Oct 5, 2023
@nicolasvan nicolasvan deleted the bb8-fixes branch October 5, 2023 15:25
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.

2 participants