apps/docs/content/guides/database/replication/replication-monitoring.mdx
Replication is currently in private alpha. Access is limited and features may change.
</Admonition>After setting up replication, you can monitor the status and health of your replication pipelines directly from the Supabase Dashboard. The pipeline is the active Postgres replication process that continuously streams changes from your database to your destination.
To monitor your replication pipelines:
<Image alt="Destinations List" src="/docs/img/database/replication/replication-destinations-list.png"
width={3560} height={2146} />
Each destination shows its pipeline in one of these states:
| State | Description |
|---|---|
| Stopped | Pipeline is not running |
| Starting | Pipeline is being started |
| Running | Pipeline is actively replicating data |
| Stopping | Pipeline is being stopped |
| Failed | Pipeline has encountered an error (hover over the status to view error details) |
For detailed information about a specific pipeline, click View status on the destination. This opens the pipeline status page where you can monitor replication performance and table states.
<Image alt="Pipeline Status View" src="/docs/img/database/replication/replication-view-status.png"
width={3560} height={2146} />
The status page shows replication lag metrics that help you determine how fast your pipeline is replicating data. These metrics are loaded directly from Postgres itself.
The pipeline status page also shows the state of individual tables being replicated. Each table can be in one of these states:
| State | Description |
|---|---|
| Queue | Table is getting ready to be copied |
| Copying | Initial snapshot of the table is being copied |
| Copied | Table snapshot is complete and getting ready for real-time replication |
| Live | Table is now replicating data in near real-time |
| Error | Table has experienced an error during replication |
Errors can occur at two levels: per table or per pipeline.
Table errors occur during the copy phase and affect individual tables. These errors can be retried without stopping the entire pipeline.
<Image alt="Table Error Details" src="/docs/img/database/replication/replication-pipeline-table-error.png"
width={3560} height={2146} />
Viewing table error details:
Recovering from table errors:
When a table encounters an error during the copy phase, you can reset the table state. This will restart the table copy from the beginning.
Pipeline errors occur during the streaming phase (Live state) and affect the entire pipeline. When streaming data, if an error occurs, the entire pipeline will stop and enter a Failed state. This prevents data loss by ensuring no changes are skipped.
<Admonition type="note">When a pipeline error occurs, you'll receive an email notification immediately. This ensures you're promptly notified of any issues so you can take action to resolve them.
</Admonition><Image alt="Pipeline Error Details" src="/docs/img/database/replication/replication-pipeline-error.png"
width={3560} height={2146} />
Viewing pipeline error details:
Recovering from pipeline errors:
To recover from a pipeline error, you'll need to:
To see detailed logs for all your replication pipelines:
<Image alt="Replication Logs" src="/docs/img/database/replication/replication-logs.png" width={3560} height={2146} />
<Admonition type="note">Logs contain diagnostic information that may be too technical for most users. If you're experiencing issues with replication, reaching out to support with your error details is recommended.
</Admonition>If you see a Failed status:
To ensure optimal performance:
If you notice issues with your replication:
For more troubleshooting tips, see the Replication FAQ.