Skip to content
Open
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Add replication lag configuration example to pgdog.toml
Co-authored-by: christoudias <[email protected]>
  • Loading branch information
Copilot and christoudias committed Jun 27, 2025
commit 823dafb45fa909942e7c0409a5a99f24935ae468
4 changes: 4 additions & 0 deletions pgdog.toml
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,10 @@ read_write_strategy = "aggressive"
prepared_statements_limit = 500
# client_idle_timeout = 5_000

# Replication lag detection settings
# replication_lag_check_interval = 10_000 # Check every 10 seconds (default)
# max_replication_lag_bytes = 1048576 # Ban replicas lagging by more than 1MB (default)

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
# max_replication_lag_bytes = 1048576 # Ban replicas lagging by more than 1MB (default)
# max_replication_lag_bytes = 1048576 # Ban replicas lagging by more than 1MB (default)

this threshold is too low, and it can lead to frequent ban of the replica. I think it should be at least 10MB or even 100MB by default.


#
# Admin database password.
#
Expand Down
Loading