Skip to content

example: add secondary active-standby dr reference script - #1165

Open
huanghaoyuanhhy wants to merge 1 commit into
zilliztech:mainfrom
huanghaoyuanhhy:example-secondary-dr
Open

example: add secondary active-standby dr reference script#1165
huanghaoyuanhhy wants to merge 1 commit into
zilliztech:mainfrom
huanghaoyuanhhy:example-secondary-dr

Conversation

@huanghaoyuanhhy

Copy link
Copy Markdown
Collaborator

Summary

Add a self-contained reference script (example/secondary/milvus_dr.py) plus README for running a Milvus cluster with a warm standby using only open-source pieces: milvus-backup restore secondary seeds the standby with a consistent snapshot, and Milvus native cluster replication keeps it in sync afterwards. The rebuild flow mirrors, step for step, the test-backup-restore-secondary CI job.

/kind improvement

Changes

  • add example/secondary/milvus_dr.py: rebuild / switchover / status / verify / replicate-config subcommands wiring milvus-backup and UpdateReplicateConfiguration together
  • add example/secondary/README_dr.md: prerequisites (distinct cluster ids, per-side backup configs), usage, and known limits

Signed-off-by: huanghaoyuanhhy <haoyuan.huang@zilliz.com>
@sre-ci-robot sre-ci-robot added the kind/improvement Changes related to something improve, likes ut and code refactor label Aug 18, 2026
@sre-ci-robot

Copy link
Copy Markdown
Collaborator

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: huanghaoyuanhhy

The full list of commands accepted by this bot can be found here.

The pull request process is described here

Details Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@codecov-commenter

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 42.87%. Comparing base (a9d6043) to head (5efc9de).

❌ Your project status has failed because the head coverage (42.87%) is below the target coverage (80.00%). You can increase the head coverage or adjust the target coverage.

Additional details and impacted files
@@           Coverage Diff           @@
##             main    #1165   +/-   ##
=======================================
  Coverage   42.87%   42.87%           
=======================================
  Files         134      134           
  Lines       12274    12274           
=======================================
  Hits         5262     5262           
  Misses       6613     6613           
  Partials      399      399           

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

approved ci-passed dco-passed kind/improvement Changes related to something improve, likes ut and code refactor size/XL

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants