tobogganSe connecter

packages

The Louise packages, each released on its own

Clone avec HTTPS, un jeton personnel en mot de passe, ou avec SSH, une clé ajoutée dans vos paramètres.

postgres: the pool's knobs (min_idle, idle timeout, max lifetime, idle check) — issue #145

The pool bullet's remaining items: PoolSettings (size, min_idle,
idle_timeout, max_lifetime, check_after, tick; pg.pool_settings +
pg.start_pool_with, pool.start keeps the defaults). The pool wakes every
tick while quiet and maintains itself: pings past their two ticks are
closed and their borrowers requeued; idle connections past max_lifetime
are closed (always) and past idle_timeout (down to the min_idle floor,
then replenished). A connection idle past check_after is pinged before
handout — a bare Sync, the protocol's cheapest round trip, which also
proves no transaction is open (ReadyForQuery must say idle); a stale
connection fails the ping, stops, and the borrower gets a fresh one
instead of a failed first query. A connection returned past max_lifetime
is recycled, not reused. Durations are tick-granular and approximate, and
no clock effect enters the API rows. Live-tested against postgres:18:
reaping to the floor, recycling on return, and a server-side-killed
connection replaced via pg_stat_activity/pg_terminate_backend. ADR 0052
records the package's architecture for the #44 review (the issue's last
gate).

olivier · il y a 1 mois · e0b11c08b39d922e24d55b17cd3b9938d60abf9d

Parents 8be69a1

4 fichiers modifiés, 640 ajouts, 70 suppressions