Replica delay


Job details

Name: Replica delay
Platform: Mysql
Category: Cluster and Replication
Description: NDB data node status
Long description:
Version: 1.5
Default schedule: 30s
Requires engine install: No
Compatibility tag: .[type=‘instance’ & databasetype=‘mysql’]/instance[is_mysql_branch=‘1′]

Parameters

Name Default value Description
warning_threshold 120 Maximum number of seconds between the replication SQL (applier) thread and the replication I/O (receiver) thread before a warning is triggered.
alarm_threshold 600 Maximum number of seconds between the replication SQL (applier) thread and the replication I/O (receiver) thread before an alarm is triggered.
return_status_when_Replica_IO_not_running 2 Return status value (ALARM – 2, WARNING – 1, or OK – 0) when replication I/O (receiver) thread is not started or/and it has not connected successfully to the source.
return_status_when_Replica_SQL_not_running 1 Return status value (ALARM – 2, WARNING – 1, or OK – 0) when replication I/O (applier) thread is not started.

Job Summary

SHOW SLAVE STATUS;

Job Details and Logic

Output and Reporting

Status Code Description
0 OK – Replication delay within acceptable parameters and threads running normally.
1 WARNING – Replication delay exceeds the warning threshold or the Replication SQL thread is not running.
2 ALARM – Replication delay exceeds the alarm threshold or the Replication I/O thread is not started or not connected successfully.

Automation and Execution

Visualization