Repository navigation
feat(shadow-stream): walsender connection, backfill and queue metrics - #253
Open
iskakaushik wants to merge 1 commit into
Open
iskakaushik wants to merge 1 commit into
iskakaushik wants to merge 1 commit into
Conversation
8 tasks
serprex
previously approved these changes
Nov 4, 2026
harshil-goel
force-pushed
the
kaushik/shadow-stream-metrics
branch
2 times, most recently
from
November 10, 2026 19:30
12caab7 to
540bcea
Compare
harshil-goel
changed the base branch from
main
to
kaushik/source-mode-metrics
November 10, 2026 19:38
harshil-goel
marked this pull request as ready for review
November 10, 2026 19:39
harshil-goel
force-pushed
the
kaushik/shadow-stream-metrics
branch
from
November 10, 2026 20:22
540bcea to
5d72bb6
Compare
harshil-goel
force-pushed
the
kaushik/shadow-stream-metrics
branch
from
November 11, 2026 07:25
5d72bb6 to
cc9e4f7
Compare
serprex
approved these changes
Nov 11, 2026
harshil-goel
force-pushed
the
kaushik/shadow-stream-metrics
branch
from
November 11, 2026 07:48
cc9e4f7 to
6699560
Compare
harshil-goel
force-pushed
the
kaushik/shadow-stream-metrics
branch
from
November 11, 2026 08:58
6699560 to
218bae8
Compare
harshil-goel
force-pushed
the
kaushik/shadow-stream-metrics
branch
from
November 11, 2026 09:31
218bae8 to
d0c7b8d
Compare
harshil-goel
force-pushed
the
kaushik/shadow-stream-metrics
branch
from
November 11, 2026 09:45
d0c7b8d to
f4bdacf
Compare
harshil-goel
force-pushed
the
kaushik/shadow-stream-metrics
branch
from
November 11, 2026 11:38
f4bdacf to
9537f42
Compare
serprex
approved these changes
Nov 11, 2026
harshil-goel
force-pushed
the
kaushik/shadow-stream-metrics
branch
from
November 17, 2026 10:08
9537f42 to
86053fb
Compare
harshil-goel
force-pushed
the
kaushik/shadow-stream-metrics
branch
from
November 18, 2026 05:11
86053fb to
316aee5
Compare
harshil-goel
force-pushed
the
kaushik/shadow-stream-metrics
branch
from
November 18, 2026 08:12
316aee5 to
4b52719
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What
Visibility into walshadow's walsender, the socket the shadow Postgres streams from.
walshadow_shadow_stream_sockets_total{event}accepted,closed_slow_client(dropped at the send queue cap),closed_by_client(clean hangup),closed_error(handshake, I/O, protocol failure or refused START_REPLICATION). Each socket end is counted oncewalshadow_wal_bytes_total{flow="walsender_backfill"}walshadow_buffer_bytes{buffer="walsender_send_queue"}A START_REPLICATION below the retained buffer is refused with the removed-segment SQLSTATE, so the walreceiver takes that range from
restore_command.Breaking
walshadow_shadow_stream_dropped_connections_totalis removed. Usewalshadow_shadow_stream_sockets_total{event="closed_slow_client"}.PromQL
Tests
backfill_is_counted_and_starts_below_the_buffer_are_refusedsend_queue_bytes_is_the_largest_queue,send_queue_bytes_leaves_out_the_reconnect_backfillsocket_events_count_per_kindunix_walsender_drops_a_slow_clientasserts theclosed_slow_clientevent