getAsyncReplicationStatus

Syntax

getAsyncReplicationStatus()

Arguments

None

Details

Check the status of asynchronous replication between clusters. This function is executed on the data nodes of the master cluster and returns only the status of the current node. The result contains the following columns:

  • Status: The status of async replication. It can be either “running” or “stop”.

  • Tasks: The number of remaining tasks

  • Last_Failed_Cid: The cid of the last failed task

  • Last_Failed_Time: The timestamp of the last failed task

  • Reason: The reason for the replication failure

When a task fails, the system will keep trying to resend the task until it still fails to send it after ten minutes. You can stop the process by calling stopAsyncReplication.

Examples

$ getAsyncReplicationStatus();

Status

Tasks

Last_Failed_Cid

Last_Failed_Time

Reason

running

0

-1