Open
Conversation
modified: docs/operator.md
modified: docs/standby-backup.md
modified: docs/standby-streaming.md
modified: docs/standby.md
There was a problem hiding this comment.
Pull request overview
This PR adds comprehensive documentation for WAL lag detection functionality in standby clusters. The feature allows operators to configure a maximum acceptable WAL lag threshold (standby.maxAcceptableLag) and receive clear signals when replication falls behind, helping prevent application downtime during disaster recovery scenarios.
Changes:
- Added new section documenting WAL lag detection feature and its behavior across all standby types
- Updated streaming standby tutorial to include the new optional configuration parameter
- Updated repo-based standby tutorial to include the new optional configuration parameter with known limitations
- Added parameter reference documentation for
standby.maxAcceptableLagin the operator configuration guide
Reviewed changes
Copilot reviewed 4 out of 4 changed files in this pull request and generated no comments.
| File | Description |
|---|---|
| docs/standby.md | Added comprehensive section explaining WAL lag detection, its effects (pod marked unready, cluster state changes, condition set), and known limitations for repo-based standby |
| docs/standby-streaming.md | Added maxAcceptableLag parameter to YAML example and bullet-point explanation of its behavior |
| docs/standby-backup.md | Added reference to lag detection feature with cross-links and commented YAML example showing optional parameter usage |
| docs/operator.md | Added complete parameter reference for standby.maxAcceptableLag including description, data type, format, and behavior |
Comments suppressed due to low confidence (3)
docs/standby.md:21
- There are two consecutive spaces between "The" and "StandbyLagging". This should be a single space for consistency.
* The `StandbyLagging` condition is set in the cluster status. You can check the conditions with the `kubectl describe pg <cluster-name> -n <namespace>` command.
docs/standby-backup.md:62
- There are two consecutive spaces between "the" and "difference". This should be a single space for consistency.
The configuration of the disaster recovery site is similar [to that of the Main site](#configure-main-site), with the difference in standby settings.
docs/standby-streaming.md:88
- For consistency with operator.md line 107, consider adding the article "the" before
initializingstate to read: "the cluster goes into theinitializingstate". This matches the phrasing used in the operator.md parameter documentation.
* `standby.maxAcceptableLag` (optional) enables replication lag detection. When the WAL lag exceeds this value, the standby primary pod is marked as unready, the cluster goes into `initializing` state, and a `StandbyLagging` condition is set in the status.
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
egegunes
approved these changes
Feb 20, 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.
modified: docs/operator.md
modified: docs/standby-backup.md
modified: docs/standby-streaming.md
modified: docs/standby.md