Skip to content

add: set keepalives options in listener connection string#4673

Draft
mkleczek wants to merge 4 commits intoPostgREST:mainfrom
mkleczek:listener-keepalives
Draft

add: set keepalives options in listener connection string#4673
mkleczek wants to merge 4 commits intoPostgREST:mainfrom
mkleczek:listener-keepalives

Conversation

@mkleczek
Copy link
Collaborator

@mkleczek mkleczek commented Feb 26, 2026

DISCLAIMER:
This commit was authored entirely by a human without the assistance of LLMs.

This change adds keepalive options to listener connections string. The value of keepalives_idle is adjusted using a simple algorithm based on idle time tracking.

Keeping it as draft until it is clear how to test it.

@steve-chavez
Copy link
Member

Related to #4670

@mkleczek mkleczek force-pushed the listener-keepalives branch 3 times, most recently from 0218c65 to 7ddf69d Compare March 4, 2026 14:03
@mkleczek mkleczek force-pushed the listener-keepalives branch 4 times, most recently from 8df321e to bc6cec5 Compare March 13, 2026 06:49
DISCLAIMER:
This commit was authored entirely by a human without the assistance of LLMs.

Some helpers are provided for introspecting metrics already (used in JWT cache tests). This change provides facilities to additionally validate emited Observation events.
A new Spec module is also implemented, adding basic tests of schema cache reloading - their main goal is to excercise the new infrastructure.
This commit introduces toxiproxy in withTools adding the following helpers:
* withToxiproxyServer
* withToxiproxyProxy
* withToxiproxyLatency
* withToxiproxyPgProxy
@mkleczek mkleczek force-pushed the listener-keepalives branch 3 times, most recently from bcc9c15 to 6073f0b Compare March 13, 2026 20:59
This change adds keepalive options to listener connections string. The value of keepalives_idle is adjusted using a simple algorithm based on idle time tracking.
@mkleczek mkleczek force-pushed the listener-keepalives branch from 6073f0b to 0daf2b5 Compare March 13, 2026 21:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

2 participants