Skip to content

RDSC-6177: Document RDI disaster recovery with GCS and DynamoDB - #4363

Merged
andy-stark-redis merged 14 commits into
mainfrom
RDSC-6177-rdi-disaster-recovery-docs
Nov 13, 2026
Merged

andy-stark-redis merged 14 commits into
mainfrom
RDSC-6177-rdi-disaster-recovery-docs

Conversation

@ZdravkoDonev-redis

@ZdravkoDonev-redis ZdravkoDonev-redis commented Oct 28, 2026 •

Copy link
Copy Markdown
Collaborator

Summary

RDI disaster recovery setup and operating steps were spread across installation, upgrade, FAQ, and release-note pages. Add one Disaster recovery (DR) section for RDI 2.2.0, with a shared operating guide and separate GCS and DynamoDB setup pages.

  • Add a topology diagram using existing Redis vector glyphs, Space Grotesk, and Redis colors. Show replicated source databases, a shared external lease with GCS and DynamoDB as examples, leader and standby pipelines, and Active-Active replication for the RDI database and example target.
  • Provide runnable lease resource creation commands, scoped permission examples, credential options, readiness checks, and Helm installation commands for both sites.
  • Show each site's local database connection and stable instance ID in its values file. Explain the cluster-1 default and per-site secrets.
  • Cover automatic and manual failover, maintenance, recovery of the old site, monitoring, pipeline checks, and target data delivery.
  • Guide both RDI sites to the current source primary. Explain that source replication, promotion, and endpoint routing are managed separately from RDI failover, and that resuming capture requires compatible source history and capture state. Database-specific configuration remains outside this guide.
  • Preserve Helm installation scope, GCS lease-format migration, downgrade safeguards, and uninstall order.
  • Preserve the public DR URL and link the provider guides from navigation, installation, FAQ, upgrade, and release-note pages.

Validation

  • Rendered all four provider/site values combinations through the RDI 2.2 Helm chart and checked the resulting operator identities and lease settings.
  • Checked DynamoDB creation, MRSC conversion, and describe requests against the current AWS SDK API model, including the witness-status response field. Cloud commands were checked against provider documentation; they were not executed against live resources.
  • Inspected all three rendered pages at 1440 px and 390 px widths, including the diagram and credential options. Verified the preserved DR URL, provider navigation, and new or changed internal links with their rendered anchors.
  • No live failover qualification, cloud provisioning, or credential changes were performed.

Ticket: RDSC-6177.


Note

Low Risk
Documentation-only changes with no runtime or application code; main risk is factual or procedural errors in DR operations guidance.

Overview
Adds a dedicated Disaster recovery (DR) documentation section for RDI 2.2.0, with a main operating guide plus separate GCS and DynamoDB lease setup pages.

The main guide covers multi-site topology (leader/follower/standby), Active-Active RDI database requirements, external lease behavior and timing, per-site Helm values, pipeline/secrets deployment, automatic and manual takeover, monitoring, upgrade/downgrade (including GCS lease format migration), and uninstall order. The provider pages add runnable cloud commands, IAM/permission examples, credential options, and Helm operator.leaderElection settings.

FAQ and related install/upgrade/release-note pages are updated to document DynamoDB alongside GCS, link into the new section, and replace the old rule that both sites must capture from the same source server with guidance that each site uses its configured source (primary or replica) and how to resume CDC after failover.

Reviewed by Cursor Bugbot for commit 263af45. Bugbot is set up for automated code reviews on this repo. Configure here.

@github-actions

github-actions Bot commented Oct 28, 2026 •

Copy link
Copy Markdown
Contributor

🧠 Redis Memory

Found 14 related items from repository history:

Memory updated at 263af45

@github-actions

github-actions Bot commented Oct 28, 2026 •

Copy link
Copy Markdown
Contributor

Staging links:
https://redis.io/docs/staging/RDSC-6177-rdi-disaster-recovery-docs/integrate/redis-data-integration/faq/
https://redis.io/docs/staging/RDSC-6177-rdi-disaster-recovery-docs/integrate/redis-data-integration/installation/
https://redis.io/docs/staging/RDSC-6177-rdi-disaster-recovery-docs/integrate/redis-data-integration/installation/disaster-recovery/
https://redis.io/docs/staging/RDSC-6177-rdi-disaster-recovery-docs/integrate/redis-data-integration/installation/disaster-recovery/dynamodb/
https://redis.io/docs/staging/RDSC-6177-rdi-disaster-recovery-docs/integrate/redis-data-integration/installation/disaster-recovery/gcs/
https://redis.io/docs/staging/RDSC-6177-rdi-disaster-recovery-docs/integrate/redis-data-integration/installation/install-k8s/
https://redis.io/docs/staging/RDSC-6177-rdi-disaster-recovery-docs/integrate/redis-data-integration/installation/upgrade/
https://redis.io/docs/staging/RDSC-6177-rdi-disaster-recovery-docs/integrate/redis-data-integration/release-notes/rdi-2-2-0/

@ZdravkoDonev-redis
ZdravkoDonev-redis marked this pull request as ready for review October 28, 2026 14:52
Base automatically changed from RDSC-6179-rdi-2.2.0-public-docs to main October 30, 2026 10:23
ZdravkoDonev-redis and others added 7 commits October 30, 2026 13:30
Address the product, architecture, and customer reviews of the RDI 2.2.0
disaster recovery pages, and the four inline PR comments.

- Scope: two or more sites, GCS since 1.15.0, DynamoDB new in 2.2.0, no VM
  DR, HA versus DR, and a note on adding DR to an existing installation.
- Add a source section covering capture after a failover, replayed changes,
  and deletes missed by a new snapshot. Remove the saved-offset sentence.
- Link Active-Active database creation, warn about duplicate instance IDs
  and the default redsync lease, and add a clock synchronization bullet.
- Add the lease timing table from the 2.2 Helm values, release behavior,
  the timeout rule, the unfenced overlap, and the 2 minute takeover figure.
- Choose the failover mode before installation. Enable site B before putting
  site A in standby, make the last step conditional on manual failover, add
  site B readiness commands, and state that a follower can't test source or
  target connectivity.
- Add operator log messages and alert on lease errors.
- Downgrade through standby_mode instead of stopping operators. Warn about
  the GCS upgrade window. Uninstall through kubectl delete pipelines.
- GCS: metadata-based lease, optional legacyBucketReader, Workload Identity
  annotation, key-file restart, and moving the lease to a dual-region bucket.
- DynamoDB: startup validation, dynamodb:ReturnValues, IRSA and Pod
  Identity, and credential restart.
- Update the FAQ, upgrade page, and release note links.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
- Replace "follow the current source primary" with each site capturing
  from its closest source database, the active one or a replica of it,
  and set per-site source endpoints with generic HOST secrets.
- Add a per-source table of what the new leader's source database needs
  to continue from RDI's saved position.
- Add when-to-use guidance to the failover modes.
- Add a section on sharing a lease bucket or table between DR setups.
- Group monitoring checks by purpose.
- Align the diagram description and label.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
@ZdravkoDonev-redis
ZdravkoDonev-redis force-pushed the RDSC-6177-rdi-disaster-recovery-docs branch from 521a800 to 471491d Compare October 30, 2026 11:32
@CLAassistant

CLAassistant commented Oct 30, 2026 •

Copy link
Copy Markdown

CLA assistant check
All committers have signed the CLA.

ZdravkoDonev-redis and others added 3 commits October 30, 2026 16:44
- Describe target lag: an Active-Active target can lag the RDI
  database, so the new leader can skip changes, and conflict
  resolution decides how late writes merge.
- Add lease requirements and how the GCS and DynamoDB leases meet them
  to "Configure a lease".
- Install site B in standby and enable it after deploying pipelines,
  with a note on leftover standby_mode runtime settings.
- Move leadership manually: stop both sites, wait for site A's
  components to stop and replication to catch up, then enable site B.
- List what makes the leader stop leading, and document that a leader
  whose operator is down keeps its components running.
- Correct lease timing: release after checkTimeout, restart keeps the
  lease, clock offset counts against ttl.
- Check that the former leader's components stopped in "Verify a
  takeover", and alert on replication lag.
- Describe source routing by pipeline configuration, Replica Of
  targets, the DynamoDB describe fallback, and GCS lifecycle rules.
- State that DR requires an external lease on the installation pages,
  and that DynamoDB is an alternative to GCS in the release note.

Co-Authored-By: Claude Opus 5.5 <[email protected]>

@stoyanr stoyanr left a comment •

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I stopped at comment 100. Please address these before I do a second pass. The general flaws hidden in the many inline comments:

  • Use of English that reads badly.
  • Incorrect claims about the mechanism.
  • Asking the user to do extra steps to prevent split brain due to possible overlap (if really needed, points at bugs we should fix).
  • Documenting what RDI doesn't do without need.
  • Documenting what RDI does do in verbose details or out of context.
  • Standby mode managed via Helm - I would prefer to avoid this, see comments.
  • Grouping distinct cases for e.g. operator identity in one long description.

Move leadership by enabling the destination first and then putting the
leader in standby, and set the failover mode with the standby_mode
runtime setting instead of the Helm value. Rewrite the source database
requirements, trim the monitoring section and operator log messages,
and remove the documented pipeline overlap, the dual-region bucket
migration, and other details that do not help the reader.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
@ilianiliev-redis

Copy link
Copy Markdown
Collaborator

Addressed all open threads. The manual move now mirrors automatic failover, standby_mode replaces the Helm value, the source table is rewritten, monitoring is trimmed, and the overlap text and bucket migration are removed. Ready for a second pass.

andy-stark-redis and others added 2 commits November 12, 2026 11:50
Add a TODO comment to the top of the DR guide's body:
<!-- TODO(human-friendly, since 2026-11-12): ... -->

This trials a publish-then-polish workflow. The page has had heavy
technical review and is published now because AI readers handle it. A
human-friendliness pass follows later, and whoever does it deletes the
comment. `git grep "TODO(human-friendly"` lists the backlog with each
page's start date.

Evidence the page is AI-readable (readability only, not accuracy): four
closed-book readers (Haiku and Sonnet, each on the full page and on
per-section excerpts) and a small Codex model (gpt-5.6-luna) answered
12 scenario questions with ~100% correct results. The trial was too
easy to discriminate, so treat it as a floor, not proof.

Known human-readability obstacles for the follow-up, from a Codex
newcomer-persona review and the readers' difficulty notes:
- "instance" means both an RDI installation and an RDI database member.
- Forward-and-back links: Prepare both sites -> lease -> provider guide
  -> back; Test a takeover points to a section after "How automatic
  failover works".
- Move leadership manually mixes planned switchover, emergency takeover
  (leader unreachable), and failback.
- The PostgreSQL cell in the source table is overloaded; the source
  section sits before the setup procedure.
- The failover-mode choice comes after lease preparation.
- Deploy pipelines and secrets is one procedure with embedded conditions.
- The "RDI database replication" H3 is a one-sentence orphan.

The build test showed the HTML comment does not reach the rendered
output.

Co-Authored-By: Claude Sonnet 5.5 <[email protected]>

@andy-stark-redis andy-stark-redis left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I've made a commit to this branch to fix some minor structuring issues (such as a numbered list with only one item in it) and a few other little things. AI can read these docs just fine (even using a weak model), so I'll approve and merge this.

However, the long index page would be more comfortable for a human to read with some more restructuring (probably splitting into two or more pages and reordering a bit). With this in mind, I'm going to try out a new workflow that we've been thinking about in the doc team meetings. I'll publish this as it is but I'll also start a new task to do the restructuring of the index page right away. This way, AI tools (and energetic humans) can still see the docs while I'm working on the restructuring.

@andy-stark-redis
andy-stark-redis merged commit 1ce2c2e into main Nov 13, 2026
105 checks passed
@andy-stark-redis
andy-stark-redis deleted the RDSC-6177-rdi-disaster-recovery-docs branch November 13, 2026 09:28
EliShteinman added a commit to EliShteinman/docs that referenced this pull request Nov 14, 2026
RDI disaster recovery guide with GCS and DynamoDB leases.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants