diff options
author | Michael Renner | 2014-06-11 15:10:33 +0000 |
---|---|---|
committer | Michael Renner | 2014-06-11 15:10:33 +0000 |
commit | 2aa4a119cc52b33d2ae226640a617c4ddb582c9e (patch) | |
tree | f7433c2c7fad780d8fa82ca40bdb2547d39ebcfa /check_postgres.pl | |
parent | ae7732e4bef81cca7ec2c8d9548ab6e8b072778e (diff) |
fix & extend hot_standby_delay documentation
This should also account for all places where the refactoring of
the numbered dbparameters (host2, port2, etc.) was referenced in the
documentation. Drop the TODO entry.
Diffstat (limited to 'check_postgres.pl')
-rwxr-xr-x | check_postgres.pl | 17 |
1 files changed, 8 insertions, 9 deletions
diff --git a/check_postgres.pl b/check_postgres.pl index d3c55815e..0314c5599 100755 --- a/check_postgres.pl +++ b/check_postgres.pl @@ -8812,15 +8812,14 @@ and the name of the database on the fourth line. =head2 B<hot_standby_delay> (C<symlink: check_hot_standby_delay>) Checks the streaming replication lag by computing the delta -between the xlog position of a master server and the one of the slaves connected to it. The slave_ -server must be in hot_standby (e.g. read only) mode, therefore the minimum version to use this_ -action is Postgres 9.0. The I<--warning> and I<--critical> options are the delta between xlog -location. These values should match the volume of transactions needed to have the streaming -replication disconnect from the master because of too much lag. - -You must provide information on how to reach the second database by a connection -parameter ending in the number 2, such as "--dbport2=5543". If if it not given, -the action fails. +between the current xlog position of a master server and the replay location of a slave connected +to it. The slave server must be in hot_standby (e.g. read only) mode, therefore the minimum version to use +this action is Postgres 9.0. The I<--warning> and I<--critical> options are the delta between the xlog +locations. Since these values are byte offsets in the WAL they should match the expected transaction volume +of your application to prevent false postives or negatives. + +The first "--dbname", "--host", and "--port", etc. options are considered the +master; the second belongs to the slave. =head2 B<index_size> |