Repository navigation
Postgres DC-DR: setup, provisioning, switchover/failover and scaling guide - #1078
Draft
souravbiswassanto wants to merge 4 commits into
Draft
souravbiswassanto wants to merge 4 commits into
souravbiswassanto wants to merge 4 commits into
Conversation
…ovision, switchover/failover, scaling and teardown pages Signed-off-by: souravbiswassanto <saurov@appscode.com>
Signed-off-by: souravbiswassanto <saurov@appscode.com>
- Use placeholder IPs instead of lab addresses; use $SPOKE_1_IP for the k3s TLS SAN. - Concepts: per-DC PlacementPolicy is named <policy>-<dc>; add the spec.monitor limitation for v2026.10.12. - Provision: warn that databases without a FailoverGroup share the default primary-dc scope and move together. - Teardown: exact cleanup of the orphaned group Lease and marker ConfigMaps (dr-controlplane v0.1.0 keeps renewing them); correct the deletionPolicy summary; add Before You Begin. - Scaling: use pg-docs like the other pages and check the active DC first. - Switchover/failover: add the break-glass apply/delete commands; reword test-run references as examples. - Install: clarify the bundled PetSet CRDs and the cached provisioner image note. Signed-off-by: souravbiswassanto <saurov@appscode.com>
…t a gap Signed-off-by: souravbiswassanto <saurov@appscode.com>
|
Visit the preview URL for this PR (updated for commit 2ac3463): https://kubedb-v2-hugo--pr1078-postgres-dcdr-docs-iobcgrmr.web.app (expires Sun, 29 Nov 2026 08:34:12 GMT) 🔥 via Firebase Hosting GitHub Action 🌎 Sign: 0f29ae8ae0bd54a99bf2b223b6833be47acd5943 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Reworks
docs/guides/postgres/distributed/from a singleoverviewpage into a step-by-step guide for the released Postgres DC-DR (KubeDB v2026.10.12, dr-controlplane v0.1.0). A user can build the stretched hub, join spokes, install everything, create a DC-DR Postgres, write data, and run switchover / failover / failback by following the pages in order.Pages (each with its own
yamls/):concepts— topology, per-DC Raft + arbiter, primary-DC Lease and failover scope (FailoverGroup), split-brain protection (Raft Pre-Vote in pg-coordinator; etcd Pre-Vote + CheckQuorum), measured RPO/RTO, limitationsstretched-hub— three-site etcd (--pre-vote=true), HAProxy, encryption at rest, kubeadm hub, verificationspoke-clusters— k3s spokes, OCM join, KubeSlice controller/worker, slice andslice.localDNS, traffic testinstall— KubeDB with DC-DR values, petset CRDs, dr-controlplane, optional KubeStashprovision— FailoverGroup, PlacementPolicy, Postgres; Ready/Steady/protected; insert/update/select across DCsswitchover-failover— planned switchover, abort, planned failover (Lease handoff), unplanned failover, isolated DC, data-loss budget, failback, standby-hold, break-glass, troubleshootingscaling— per-DC horizontal scalingteardownNotes for review:
kubectl dba dc-dr(CLI v0.68.0 reads the old scope field), ThreeDC mode, DC-DR day-2 ops other than horizontal scaling (kubedb/postgres#946–docs(mongodb): fix mongo->mongosh client and sts->petset found by executing the guides #954 are open), KubeStash backup of a DC-DR database.