docs: document multi-region backup behavior (#196) - #430
Conversation
Multi-region backup/restore was implemented in documentdb#141 but the docs were not updated. This documents the region-aware backup behavior for users and maintainers: - Add a "Backups in multi-region deployments" section to the public backup-and-restore guide covering primary-only backups, standby-region skip, and automatic site-swap/failover handling. - Note multi-region awareness in the backup overview key characteristics. - Fix broken backup-and-restore link in the multi-region setup guide. - Mark multi-region backup as implemented in the design doc. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com> Copilot-Session: 0e57fca7-ab02-456c-aad6-6ddc4c89ba2f Signed-off-by: Wenting Wu <wentingwu@microsoft.com>
97cabc6 to
43efbcd
Compare
|
🤖 Auto-triaged by documentdb-triage-tool. Applied: Reasoningcomponent from path globs (docs); effort from diff stats (17+2 LOC, 2 files); LLM: Docs-only PR that documents already-implemented multi-region backup behavior and fixes a broken link — no code changes, low urgency. If a label is wrong, remove it manually and ping |
There was a problem hiding this comment.
Pull request overview
Updates the operator’s documentation to reflect the already-implemented multi-region backup behavior, so users and maintainers understand how backups behave across primary/standby regions and during failover.
Changes:
- Documented multi-region backup rules (primary-only execution, standby skip semantics, failover/promotion behavior) in the public Backup/Restore guide.
- Fixed a broken “Backup and restore” link in the multi-region setup guide.
- Updated the backup/restore design doc to mark multi-region backup support as implemented and link to the user guide.
Reviewed changes
Copilot reviewed 2 out of 2 changed files in this pull request and generated 1 comment.
| File | Description |
|---|---|
| docs/operator-public-documentation/preview/operations/backup-and-restore.md | Adds multi-region backup behavior section and highlights multi-region awareness in the overview. |
| docs/operator-public-documentation/preview/multi-region-deployment/setup.md | Fixes the relative link to the Backup/Restore operations doc. |
| docs/designs/backup-and-restore-design.md | Marks multi-region backup support as implemented and points to the updated user documentation. |
💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.
…y cluster Each region runs its own operator with no cross-cluster routing; a Backup created only on a standby cluster is skipped and no snapshot is taken. Clarify that the resource must exist in the current primary cluster (applied directly or propagated via KubeFleet). Also redraft the CNPG-wrapper rationale to list retention management and multi-region support as the added capabilities. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com> Signed-off-by: Wenting Wu <wentingwu@microsoft.com>
Restructure the multi-region backup guidance for readability: lead with the required user action, add an at-a-glance region-behavior table with the actual Backup phases (completed/skipped), and add a kubectl verification example. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com> Signed-off-by: Wenting Wu <wentingwu@microsoft.com>
Per review feedback, describe the DocumentDB Backup by the capabilities it adds over CNPG's Backup rather than how it is implemented (wrapper/own CRD). Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com> Signed-off-by: Wenting Wu <wentingwu@microsoft.com>
Summary
Closes #196.
Multi-region backup/restore was already implemented in #141, but the documentation was never updated (the issue tracked a "Need to update docs" follow-up). This PR documents the region-aware backup behavior for both users and maintainers.
Changes
operations/backup-and-restore.mdmulti-region-deployment/setup.md— fixed a broken "Backup and restore" link (../backup-and-restore.md→../operations/backup-and-restore.md).designs/backup-and-restore-design.md— marked Multi-region backup support as implemented instead of "Next phase".Backing implementation (already merged, for reviewer context)
backup_controller.goenforcesreplicationContext.IsPrimary()(skip on standby) andEndpointEnabled()(defer during promotion), and targetsreplicationContext.CNPGClusterName.test/e2e/tests/cluster_replication/backup_test.go(primary succeeds, replica skipped, backup after failover succeeds).Notes
Docs-only change — no code or generated files affected.