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

Add MaxConnLifetime config setting to pool in v3 #849

Open
wants to merge 1 commit into
base: v3
Choose a base branch
from

Conversation

tugberkugurlu
Copy link

In our usage, we want to enforce our connections to be recycled so that the application can pick up the newly added replicas in ur aurora cluster.

In light of the issue we are experiencing with #845,
and the fact that we want to have the ability to recycle our connections,
this patch proposes to add the MaxConnLifetime config value and its behaviour to v3 releases.

The work done in this PR is trying to mimic what has done for v4 track, but w/o the idle connection check since that has turned out be an harder port than the simple implementation of just checking the conn lifetime after its usage during Release phase: c604afb

The the other difference is that this one doesn't have a default maxConnLifetime value defined,
which means that the current v3 usage out there shouldn't be impacted by this change.

in light of the issue we are experiencing with jackc#845,
and the fact that we want to have the ability to recycle our connections,
this patch adds the MaxConnLifetime config value and its behaviour to v3 releases.

The work done in this PR is trying to mimic what has done for v4 track: jackc@c604afb

The only difference is that this one doesn't have a default maxConnLifetime value defined,
which means that the current v3 usage out there shouldn't be impacted by this change.
@tugberkugurlu
Copy link
Author

@jackc 👋 is there a way to kick off the CI server to run the tests for tugberkugurlu:tu/add-maxconnlifetime branch?

@tugberkugurlu tugberkugurlu changed the title Add MaxConnLifetime config setting to pool Add MaxConnLifetime config setting to pool in v3 Oct 14, 2020
@jackc
Copy link
Owner

jackc commented Oct 17, 2020

I restarted the CI but it timed out. I ran the tests locally and something seems to hang there as well.

I don't see the reason why but it appears that it is hanging in TestPoolWithAcquireTimeoutSet.

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