getRecentSlaveReplicationInfo

Syntax

getRecentSlaveReplicationInfo()

Arguments

None

Details

This function displays the latest task in each slave cluster where cluster replication is enabled. It can only be executed by an administrator on the controller of a master cluster.

It returns a table containing the following columns:
  • connectedController: ip:port of the controller of slave cluster.

  • allControllersInRaft: ip:port of each controller in a raft group for a HA cluster.

  • lastFinishedTaskId: ID of the last finished task.

  • lastPullTime: the last time when the slave cluster pulls tasks from the master cluster.

Examples

getRecentSlaveReplicationInfo()
connectedController allControllersInRaft lastFinishedTaskId lastPullTime
192.168.2.2:1111 192.168.2.2:1111,192.168.2.2:1112,192.168.2.2:1113 233 2022.11.11T11:11:11