Quick onboard
Deployment
Data Modeling
Connecting
Migration
Query
Operations and Maintenance
Common Maintenance
Partition
Backup and Restore
Expansion
Mirroring
Resource Management
Security
Monitoring
Performance Tuning
Troubleshooting
Reference Guide
Tool guide
Data type
Storage Engine
Executor
Stream
DR (Disaster Recovery)
Configuration
Index
Extension
SQL Reference
Note!
Disaster recovery capability is available as an experimental feature in YMatrix version 6.0.0.
This section describes how to monitor the operational status of disaster recovery using either the graphical user interface (UI) or command-line tools.
The following section provides a brief guide on checking the status of disaster recovery functionality using SQL queries.
System Catalogs
Name of the replication slot used by disaster recovery: internal_disaster_recovery_rep_slot.
Query replication slot information used by disaster recovery
Note: Must be executed by a user with appropriate privileges on the primary cluster (e.g.,
mxadmin).
SELECT *
FROM pg_catalog.gp_replication_slots
WHERE slot_name = 'internal_disaster_recovery_rep_slot'
ORDER BY gp_segment_id
Query replication status for disaster recovery
Note: Must be executed by a user with appropriate privileges on the primary cluster (e.g.,
mxadmin).
SELECT *
FROM
pg_catalog.gp_replication_slots s
LEFT JOIN
pg_catalog.gp_stat_replication r
ON
s.gp_segment_id = r.gp_segment_id AND s.active_pid = r.pid
WHERE s.slot_name = 'internal_disaster_recovery_rep_slot'
ORDER BY s.gp_segment_id
System Catalog
Name of the replication slot used by disaster recovery: internal_disaster_recovery_rep_slot.
Query WAL receiver status for disaster recovery
Note: Must be executed by a user with appropriate privileges on the backup cluster (e.g.,
mxadmin).
SELECT *
FROM pg_catalog.gp_stat_wal_receiver
WHERE slot_name = 'internal_disaster_recovery_rep_slot'
ORDER BY gp_segment_id
Log in to the UI and navigate to the Cluster page. If no backup cluster is configured for the current cluster, the page displays the following:

If a backup cluster is configured, two roles exist in the disaster recovery architecture: Primary cluster and Backup cluster.
a. Primary Cluster
On the primary cluster page, the system displays three key pieces of information: cluster role, synchronization mode, and synchronization status.
Synchronization Mode
Synchronisation, Asynchronous, and Unidentified.synchronous_standby_names parameter in the database configuration:* indicates Synchronisation mode.Asynchronous mode.Unidentified mode.Synchronization Status
Synchronised, Synchronising, and malfunction.Synchronised: All synchronous replication streams have completed synchronization.Synchronising: At least one active replication stream has not fully synchronized.malfunction: At least one replication stream is inactive.b. Backup Cluster
Hover over the disaster recovery information panel to reveal the View details button.
Click the View details button to access the synchronous replication stream list page.
Disconnected, Synchronising, and Synchronised.contentid: Corresponds to the shard ID of the replication stream.sync_error: Displays error messages related to the replication stream.contentid and sync_error.Click the Detail button in any row to view detailed information about that replication stream, including basic info, Slot info, and Replication info.
segment associated with the replication stream.pg_catalog.gp_replication_slots table, showing data related to physical replication slots.pg_catalog.gp_stat_replication table.Hover over the disaster recovery information panel to display the View details button.
Click View details to go to the WAL receiver stream list page on the backup cluster.
contentid: Identifies the corresponding shard ID for this WAL receiver.received_lsn: Progress of the received WAL log stream; indicates the latest received log position.received_tli: Timeline ID of the last received WAL log.last_msg_receipt_time: Time when WAL data was received.contentid, received_lsn, received_tli, and last_msg_receipt_time.Click the details action button to view detailed information for a specific WAL receiver stream.
gp_stat_wal_receiver Info: Field data from the pg_catalog.gp_stat_wal_receiver table.