Documentation Home
Oracle Enterprise Manager for MySQL Database User's Guide
Related Documentation Download this Manual
PDF (US Ltr) - 1.1Mb
PDF (A4) - 1.1Mb


6.27 Replication Replica Activity Metrics

Lists the Replication Replica Activity metrics and provides a brief description of each.

Table 6.27 Replication Replica Activity Metrics

NameDescription
Change Source (Delta)The total number of CHANGE SOURCE statements executed.
Exec Source Log PosThe position in the current source binary file up to which the SQL thread has read and executed.
Executed Gtid SetThe set of global transaction IDs for all received transactions subsequently executed on this replica. Empty if GTIDs are not in use.
Heartbeat PeriodThe replication heartbeat interval (in seconds) for the replica.
IO RunningWhether the replica I/O thread is started and has connected successfully to the source.
IO StateThe current informational state for the replica I/O thread.
Last ErrnoThe error number of the last error that caused the SQL thread to stop.
Last ErrorThe error message of the last error that caused the SQL thread to stop.
Last IO ErrnoThe error number of the last error that caused the I/O thread to stop.
Last IO ErrorThe error message of the last error that caused the I/O thread to stop.
Last SQL ErrnoThe error number of the last error that caused the SQL thread to stop.
Last SQL ErrorThe error message of the last error that caused the SQL thread to stop.
Source Log FileThe name of the source binary log file from which the I/O thread is currently reading.
Open Temp TablesThe number of temporary tables that the replica SQL thread currently has open.
Read Source Log PosThe position in the current source binary log file up to which the I/O thread has read.
Received Heartbeats (Delta)The total number of heartbeats received by the replica since the last time that the replica was restarted or reset, or a CHANGE SOURCE TO statement was issued.
Relay Log FileThe name of the relay log file from which the SQL thread is currently reading and executing.
Relay Log PosThe position in the current relay log file up to which the SQL thread has read and executed.
Relay Log SpaceThe total combined size of all existing relay log files.
Relay Source Log FileThe name of the source binary log file containing the most recent event executed by the SQL thread.
Retried Transactions (Delta)The total number of times since startup that the replication replica SQL thread has retried transactions.
Retrieved Gtid SetThe set of global transaction IDs corresponding to all transactions received by this replica. Empty if GTIDs are not in use.
RunningThis is ON if this server is a replication replica that is connected to a replication source, and both the I/O and SQL threads are running; otherwise, it is OFF.
Seconds Behind SourceThe time difference in seconds between the replica SQL thread and the replica I/O thread, based on the timestamps stored in the relay log events. NULL if the replica SQL thread is not running, or if the replica I/O thread is not running or not connected to the source.
Semi Sync Replica StatusWhether semisynchronous replication currently is operational on the replica. This is ON if the plugin has been enabled and the replica I/O thread is running, OFF otherwise.
Show Replica Status (Delta)The total number of SHOW REPLICA STATUS statements executed.
Skip CounterThe current value of the sql_replica_skip_counter system variable.
Replica Start (Delta)The total number of START REPLICA statements executed.
Replica Stop (Delta)The total number of STOP REPLICA statements executed.
SQL Remaining DelayThe number of seconds before the replica SQL thread will apply the next event within the relay logs.
SQL RunningWhether the replica SQL thread is started.
SQL Running StateThe current informational state for the replica SQL thread.
Replica Error: Unknown or Incorrect Time ZoneIn order to use time zone names in conjunction with certain statements, functions, and data types, you must configure the server to understand those names by loading information from the operating system's time zone files into a set of tables in the mysql database. However, while the MySQL installation procedure creates those time zone tables, it does not load them; they must be loaded manually after installation.
Replica Execution Position Behind Read PositionWhen a replica receives updates from its source, the I/O thread stores the data in local files known as relay logs. The replica's SQL thread reads the relay logs and executes the updates they contain. If the position from which the SQL thread is reading is way behind the position to which the I/O thread is currently writing, it is a sign that replication is getting behind and results of queries directed to the replica may not reflect the latest changes made on the source.
Replica Has Been StoppedIf replication on a replica has been stopped, it means the replica is not retrieving the latest statements from the source and it is not executing those statements on the replica.
Replica Has Experienced A Replication ErrorWhen a replica receives updates from its source it must apply those updates locally so the data on the replica matches that on the server. If an error occurs while applying an update on a replica, the data on the replica may not match that on the source and it is an indication that replication may be broken.
Replica Has Problem Communicating With SourceReplicas must connect to a source to get the latest data from the source. If they cannot connect, or periodically have trouble connecting, replication may fall behind (i.e. the replica may not have the latest data that was written to the source).
Replica Has Stopped ReplicatingIf neither the replica I/O thread nor the replica SQL threads are running, it means the replica is not getting the latest statements from the source and it is not executing those statements on the replica, and thus replication has stopped entirely.
Replica I/O Thread Not RunningThe replica I/O thread is the thread that retrieves statements from the source's binary log and records them into the replica's relay log. If this thread isn't running, it means the replica is not able to retrieve the latest data from the source.
Replica Relay Log SpaceWhen a replica receives updates from its source, the I/O thread stores the data in local files known as relay logs. The replica's SQL thread reads the relay logs and executes the updates they contain. After the SQL thread has executed all the updates in a relay log, the file is no longer needed and can be deleted to conserve disk space.
Replica SQL Thread Not RunningThe replica SQL thread is the thread that reads statements from the replica's relay log and executes them to bring the replica in sync with the source. If this thread isn't running, it means the replica is not able to apply the latest changes it has read from the source, and results of queries directed to the replica may not reflect the latest changes made on the source.
Replica Seconds Behind SourceIf a replica is too far behind the source, results of queries directed to the replica may not reflect the latest changes made on the source.
Replica Waiting To Free Relay Log SpaceFor replicas with limited disk space you can place a limit on how large the replication relay log can grow. When the limit is reached, the I/O thread stops reading binary log events from the source server until the SQL thread has caught up and deleted some unprocessed relay logs. While this protects MySQL from filling up the disk, it means replication is delayed and the replica will fall behind the source.