-
Notifications
You must be signed in to change notification settings - Fork 251
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
fix(monitoring): improve accuracy of replica lag #2744
Conversation
Build Error! No Linked Issue found. Please link an issue or mention it in the body using #<issue_id> |
❗ By default, the pull request is configured to backport to all release branches.
|
Build Error! No Linked Issue found. Please link an issue or mention it in the body using #<issue_id> |
Fix the `pg_replication` metric to use the `pg_last_wal_receive_lsn()` and `pg_last_wal_replay_lsn()` functions to better estimate the lag of a replica, and avoid the increase of the lag on inactive systems. Closes #1814 Signed-off-by: Gabriele Bartolini <gabriele.bartolini@enterprisedb.com>
Signed-off-by: Gabriele Bartolini <gabriele.bartolini@enterprisedb.com>
b269d73
to
afe1adc
Compare
Build Error! No Linked Issue found. Please link an issue or mention it in the body using #<issue_id> |
/ok-to-merge |
Build Error! No Linked Issue found. Please link an issue or mention it in the body using #<issue_id> |
Fix the `pg_replication` metric to use the `pg_last_wal_receive_lsn()` and `pg_last_wal_replay_lsn()` functions to better estimate the lag of a replica, and avoid the increase of the lag on inactive systems. Closes #1814 Signed-off-by: Gabriele Bartolini <gabriele.bartolini@enterprisedb.com> (cherry picked from commit 081f7e3)
Fix the `pg_replication` metric to use the `pg_last_wal_receive_lsn()` and `pg_last_wal_replay_lsn()` functions to better estimate the lag of a replica, and avoid the increase of the lag on inactive systems. Closes #1814 Signed-off-by: Gabriele Bartolini <gabriele.bartolini@enterprisedb.com>
Fix the
pg_replication
metric to use thepg_last_wal_receive_lsn()
andpg_last_wal_replay_lsn()
functions to better estimate the lag of a replica, and avoid the increase of the lag on inactive systems.Closes #1814