Replication delay alert


Job details

Name: Replication delay alert
Platform: Postgres
Category: Cluster
Description: Checks for BDR replication lag
Long description:
Version: 1.01
Default schedule: 15m
Requires engine install: No
Compatibility tag: .[type=‘instance’ & databasetype=‘postgres’]/.[newer_than_ninetwo = ‘1′]

Parameters

Name Default value Description
warning_threshold 300 Replication delay in seconds in order to generate warning
alarm_threshold 600 Replication delay in seconds in order to generate alarm

Job Summary

SELECT EXTRACT(EPOCH FROM (now() - pg_last_xact_replay_timestamp()))::INT AS replication_delay_seconds;

Details and Configuration

Threshold Configuration

Threshold Type Seconds
Warning 300
Alarm 600

Monitoring Logic

Schedule

Compatibility

Reporting

Conclusion

This dbWatch Control Center job is an essential tool for administrators to efficiently monitor and address replication delays in Postgres databases, ensuring data reliability and system performance. Regular and automated checks like this not only help in maintaining the health of the database systems but also preemptively alert the administrators about potential issues that could escalate into critical problems if left unattended.