Expand WAL growth troubleshooting guide with detailed diagnostics#3807
Open
KyleAMathews wants to merge 1 commit intomainfrom
Open
Expand WAL growth troubleshooting guide with detailed diagnostics#3807KyleAMathews wants to merge 1 commit intomainfrom
KyleAMathews wants to merge 1 commit intomainfrom
Conversation
…ostgreSQL settings Add comprehensive guidance for diagnosing and resolving replication slot WAL accumulation issues: - Diagnostic SQL query to check slot health - Explanation of wal_status values (reserved, extended, unreserved, lost) - Common causes: disconnected Electric, slot not advancing, high write volume - Step-by-step verification that changes are flowing through - Recommended PostgreSQL settings (max_slot_wal_keep_size) - Monitoring guidance using Electric's Prometheus metrics - Quick diagnostic checklist https://claude.ai/code/session_01H49sfABH4wS2g45H5nQ89C
✅ Deploy Preview for electric-next ready!
To edit notification comments on pull requests, go to your Netlify project configuration. |
alco
approved these changes
Feb 2, 2026
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.
Summary
Significantly expanded the "WAL growth" troubleshooting section with comprehensive guidance on diagnosing and resolving replication slot issues. The original brief explanation has been replaced with detailed diagnostic procedures, monitoring strategies, and PostgreSQL configuration recommendations.
Key Changes
Added replication slot status query with explanation of key columns (
active,wal_status,retained_wal,confirmed_flush_lsn)Documented
wal_statusvalues with a reference table explainingreserved,extended,unreserved, andloststates and their implicationsExpanded troubleshooting sections covering three common scenarios:
max_slot_wal_keep_sizeconfiguration)Added PostgreSQL configuration recommendations table with
max_slot_wal_keep_sizeandwal_keep_sizesettings and their purposesIncluded monitoring guidance referencing Prometheus metrics for replication slot health (
slot_retained_wal_size,slot_confirmed_flush_lsn_lag)Added quick diagnostic checklist for users to systematically verify slot health
Notable Details
max_slot_wal_keep_size(invalidation and recreation)https://claude.ai/code/session_01H49sfABH4wS2g45H5nQ89C