Repository navigation
RDSC-6177: Document RDI disaster recovery with GCS and DynamoDB - #4363
Conversation
🧠 Redis MemoryFound 14 related items from repository history:
Memory updated at 263af45 |
a9b2835 to
494e5b0
Compare
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]>
Co-Authored-By: Claude Opus 5.5 <[email protected]>
521a800 to
471491d
Compare
- 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]>
There was a problem hiding this comment.
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]>
|
Addressed all open threads. The manual move now mirrors automatic failover, |
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
left a comment
There was a problem hiding this comment.
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.
RDI disaster recovery guide with GCS and DynamoDB leases.
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.
cluster-1default and per-site secrets.Validation
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.leaderElectionsettings.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.