03 Replicate — instructor notes
Teaching steps, verification checks, and recovery guidance for module 03.
Allow 45 to 60 minutes of active work. Use the learner module for commands.
Demonstrate the migration flow
Open the Managed Postgres service and use Data sources to start the migration.
Confirm the target region and explain that ClickPipes connects inbound to RDS from its own egress addresses.
Use the learner page's commands to update subscriber_cidrs.
Create the two target roles with the source passwords. Apply grants after the pipe creates the target tables. Keep the target database empty when using automated schema migration. An SSH tunnel requires manual schema migration.
Monitor the initial load
Check per-table progress in the console and slot progress on RDS. Verify the publication includes exactly the four workshop tables. Record initial-load duration and steady-state lag; do not promise a fixed completion time. Use the wait for runbook review or the engine and ordering-key discussion from module 05.
Run pause and recovery together
- Confirm every participant's initial load has finished.
- Pause the pipe and record
confirmed_flush_lsn, retained WAL, and free storage. - Watch WAL grow while the writer continues.
- Resume the pipe and confirm that lag decreases.
Monitor available storage throughout. Resume before any break. Use Resume for this exercise; deleting and recreating the pipe requires another initial load.
Common failures
| Symptom | Action |
|---|---|
| Connection timeout | Check the source endpoint, service region, and ClickPipes egress allowlist |
| No replication progress | Verify wal_level, replication privileges, and source reachability |
| Manual schema dump fails | Check pg_dump against the source server version |
| Target grant checks return false | Apply grants after schema creation |
| Retry cannot create a slot | Inspect and remove inactive slots from abandoned workshop attempts |
End checkpoint
Confirm the initial load is complete, lag is stable, all four grant checks pass, and pause and recovery succeeded. Keep the writer on RDS. Module 04 executes the cutover.