Skip to content
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

check_hot_standby_delay: compare database system identifier #189

Open
jw1u1 opened this issue Jan 21, 2022 · 0 comments
Open

check_hot_standby_delay: compare database system identifier #189

jw1u1 opened this issue Jan 21, 2022 · 0 comments

Comments

@jw1u1
Copy link
Contributor

jw1u1 commented Jan 21, 2022

The system identifiers of master and standby should be compared to ensure that replication and monitoring are working properly.
Alternatively, don't set a negative delta to zero but warn about it:

# Make sure it's always positive or zero
$rec_delta = 0 if defined $rec_delta and $rec_delta < 0;
$rep_delta = 0 if defined $rep_delta and $rep_delta < 0;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant