Skip to content

Test wal sender feedback - #180

Draft
leonardoce wants to merge 2 commits into
cloudnative-pg:mainfrom
leonardoce:rpozero
Draft

Test wal sender feedback#180
leonardoce wants to merge 2 commits into
cloudnative-pg:mainfrom
leonardoce:rpozero

Conversation

@leonardoce

Copy link
Copy Markdown
Contributor

No description provided.

@leonardoce
leonardoce force-pushed the rpozero branch 3 times, most recently from 4581c01 to c3c7852 Compare August 26, 2026 15:44
…t buffering

Change the Put RPC from client-streaming to bidi-streaming so the Klio
server acknowledges each WAL block as it is written, instead of only
returning a single result when the stream closes. The gRPC client and
walserver upload handler are updated accordingly, and the WAL receiver
now runs two goroutines: one pumping PostgreSQL WAL data to the server,
the other reading per-block feedback and turning it into standby status
updates for PostgreSQL.

This makes the in-memory WAL buffer, its periodic flush timer and the
related config (buffer_size, flush_timeout_ms,
standby_message_timeout_seconds, SetDefaults) unnecessary, since blocks
are now sent to the server as they arrive and confirmed via the
server's own feedback rather than a client-side timer.

Signed-off-by: Leonardo Cecchi <leonardo.cecchi@enterprisedb.com>
@fcanovai
fcanovai force-pushed the rpozero branch 2 times, most recently from 43dccb1 to a855882 Compare August 27, 2026 15:57
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.

1 participant