Monitoring Replication
You can monitor replication by running system view queries or using the Monitor screens in the SMC. You can also monitor replication operations from a WLM perspective.
SMC Monitoring


Note that the elapsed time of a replication cycle fluctuates based on the amount of data that needs to be written to the replica database.



YRESTORE WITH KEY
queries for the
replication service
application. For example: 
By looking at the full query text, you will be able to see how much data is being written to specific tables. Hover the mouse over the Written value to display the number of rows. For complete information about a given operation, double-click the row and look at the Query Details tabs.
System Views
- sys.replica (list database replicas)
- sys.replica_status (show current state of replication activity)
- sys.log_replica_status (show the history of replication activity)
- sys.remote_server (list remote servers available for replication)
- sys.backup_snapshot (list backup snapshots)
- sys.backup_chain (list backup chains)
If you are using database replication and taking backups with
ybbackup
, the sys.backup_chain
and
sys.backup_snapshot
views contain information about chains and snapshots
that apply to both types of operations.
replication service
. You can constrain rows in
the sys.query
, sys.log_query
,
sys.session
, and sys.log_session
views by using the
following condition: where application_name='replication service'
See the view descriptions for examples.
WLM Monitoring for Replication Operations
Via the SMC, you can monitor workload management (WLM) activity on both systems while replication is in progress. Go to
, then select the resource pool that is being used for replication.On the source and target systems, look for operations run by the replication
service
application and the sys_ybd_replicator
system user. For
example, on a source system, you will see that a resource pool in the active WLM profile is
managing replication tasks that read and send data from a specific backup snapshot to the
target system.
The following example shows the monitor for a loopback replication test. Replication is
running in a user-defined WLM profile called replication
, using the
large
resource pool. Note the application name and user name.

2/2
. sys.log_query
view. For
example:premdb=# select distinct pool_id from sys.log_query
where application_name='replication service' and database_name='premdb';
pool_id
--------------------
replication: large
(1 row)