The following functions are only available to a root customer user.
The application support trusted mode and i_customer parameter should be supplied in this case.
getReplicationStatus()
Available since: V4.4
Get the current status of replication on a given system.
Parameters:
- i_environment The environment for which the caller wants to query replication status for
Returns:
- replication_enabled - Boolean indicating if replication is enabled
- master - the leader host in the replication configuration
- slave - the follower host in the replication configuration
- replication_ok - boolean indicating the presence of replication lag.
getReplicationLag()
Get the current replication lag time based on slony and DB data from system.replication_test
Available since: V4.4
Parameters:
- i_environment The environment for which the caller wants to query replication status for
Returns:
- st_lag_time - Lag time based on slony's st_lag_time parameter
- replication_test_lag - Lag time based on data based test.