Page MenuHomePhabricator

Define "idle" connections that are safe to close (no transactions, no held locks)
ClosedPublic

Authored by epriestley on Nov 20 2018, 6:47 PM.
Tags
None
Referenced Files
Unknown Object (File)
Oct 21 2024, 1:55 AM
Unknown Object (File)
Oct 9 2024, 10:40 AM
Unknown Object (File)
Sep 27 2024, 10:56 AM
Unknown Object (File)
Sep 11 2024, 11:11 PM
Unknown Object (File)
Sep 6 2024, 4:23 AM
Unknown Object (File)
Sep 5 2024, 1:04 AM
Unknown Object (File)
Sep 3 2024, 6:36 PM
Unknown Object (File)
Sep 2 2024, 9:52 PM
Subscribers
None

Details

Summary

Ref T13216. See PHI916. When workers are spending 20 minutes in ssh ... ./run-huge-build.sh, we'd like to drop database connections to reduce the cost of having a large fleet of build agents.

To prepare for this, define what it means for a connection to be "idle": no held locks and no open transactions. These connections are safe to close without loss of state.

Test Plan

See next revision for use.

Diff Detail

Repository
rPHU libphutil
Lint
Lint Not Applicable
Unit
Tests Not Applicable