eG Monitoring  

Measures reported by MySQLRpStsTest

Replication enables data from one MySQL database server (the source) to be copied to one or more MySQL database servers (the replicas). Replication is asynchronous by default; replicas do not need to be connected permanently to receive updates from the source. Depending on the configuration, you can replicate all databases, selected databases, or even selected tables within a database.

In a high availability environment, the replica servers should always be in sync with the master database instance. For this, the replication should always be enabled on the master and the replica servers should be connected to the master at all times. If the replication fails even for a brief period or if the replica servers are not connected to the master, the replica servers will not have the updated data. To avoid this, it is essential to monitor the replication status of the master MySQL database instance. The MySQLRpStsTest test helps administrators in this regard!

This test reports whether/not the replication process is enabled on the target database instance and also helps administrators figure out if the target database instance is the master or not. Additionally, this test reports the count of slaves/replica servers connected to the target database instance and the current uptime of the database instance.

Outputs of the test : One set of results for the target database server instance being monitored.

The measures made by this test are as follows:

Measurement Description Measurement Unit Interpretation
isReplicationEnabled Indicates whether/not replication is enabled on the database instance.   The values reported by this measure and its numeric equivalents are mentioned in the table below:

Measure Value Numeric Value
Yes 1
No 0
Note:

By default, this measure reports the Measure Values listed in the table above to indicate whether/not replication is enabled on this instance. The graph of this measure however, is represented using the numeric equivalents only i.e., 0 or 1.

isMaster Indicates whether/not the database instance is the master.   The values reported by this measure and its numeric equivalents are mentioned in the table below:

Measure Value Numeric Value
Yes 1
No 0
Note:

By default, this measure reports the Measure Values listed in the table above to indicate whether/not this instance iss the master. The graph of this measure however, is represented using the numeric equivalents only i.e., 0 or 1.

slaveNodeCount Indicates the number of slaves/replica servers attached to the database instance. Number This measure will be reported only if the isMaster measure reports a value of Yes.

If the value of this measure decreases gradually, backup data could not be replicated by the master database instance and hence data could not be retrieved if the master database instance crashes.

upTime Indicates the current uptime of the database instance. Minutes