Skip to content

Document the Milvus object storage check - #1088

Merged
souravbiswassanto merged 17 commits into
masterfrom
milvus-object-storage-check
Nov 11, 2026
Merged

souravbiswassanto merged 17 commits into
masterfrom
milvus-object-storage-check

Conversation

@Sabnaj-42

Copy link
Copy Markdown
Contributor

A new Milvus has an empty etcd. On an object storage path that still holds another cluster's write-ahead logs, log ids restart, the old logs fence the writer, and writes time out while the status looks healthy. The operator never looked at S3, and the default path is files for every Milvus in a bucket.

Before the first pod starts, the operator counts the keys of the meta etcd. If there are none, a Job runs milvus-archiver storage-check against the rendered milvus.yaml.

  • Path holds objects: the Milvus does not start. Condition ObjectStorageChecked=False, reason PathInUse, names the bucket and path. It rechecks every minute and starts by itself once the path is free.
  • Etcd holds data (adoption): passes with no Job.
  • The check cannot run: a warning, then the Milvus starts as before.
  • Never runs for a provisioned Milvus or a restore. Annotation kubedb.com/milvus-skip-object-storage-check: "true" skips it.

WipeOut still never deletes object storage, the same as the official Milvus operator.

Stacked on milvus-inplace-adoption; merge that first.

Add three Milvus guides:

- gpu-sriov: GPU builds and the gpu.supported rule, per-role gpu fields,
  spreading a role across GPU pools with a PetSet PlacementPolicy, the
  network.sriov fields (RDMA, GDS), what the operator renders (Multus
  annotation, advertise-IP init container, readiness probe), the
  SRIOVNetworkAttached and SRIOVAddressAdvertised conditions, IPC_LOCK.
- adopt: moving a Milvus that already runs (e.g. from a Helm chart) under
  KubeDB in place, the fields that must match the running cluster (meta etcd
  root path, object storage keys, root credentials, config), a role-by-role
  handover, rollback, and handing the cluster back with
  kubedb.com/milvus-orphan-on-delete.
- backup/logical: KubeStash logical backup and restore with the collections,
  inPlaceRestore, dropExistCollection and timeout parameters.

Signed-off-by: sabnaj <sabnaj@appscode.com>
Describe what happens to the existing client Service when a Milvus is named
after it (same name and IP, selector moved, KubeDB ports replaced by name or
number, other ports kept), how to keep a different port number or a
LoadBalancer/NodePort with the primary service template, and why the chart
must not be removed with helm uninstall.

Signed-off-by: sabnaj <sabnaj@appscode.com>
The guide said to drop the mq, woodpecker and etcd sections from the
milvus.yaml handed to KubeDB. KubeDB's WAL defaults replace the whole
woodpecker section, so dropping it loses settings such as
woodpecker.storage.rootPath (the upstream Helm chart sets it) and can move
where the write-ahead log is read from. Keep the woodpecker section; drop
only etcd, which the Milvus object owns.

Signed-off-by: sabnaj <sabnaj@appscode.com>
KubeDB renders proxy.http.port 8080, while Milvus by default serves its
RESTful API on the gRPC port 19530. Found by adopting a Helm-installed
Milvus: REST answered on 19530 before and would only answer on 8080 after.
Set proxy.http.port to "" in the carried milvus.yaml to keep it.

Signed-off-by: sabnaj <sabnaj@appscode.com>
From adopting a Helm-installed Milvus on a cluster:
- confirm the WAL really is Woodpecker (the upstream chart's cluster mode
  defaults to Pulsar unless woodpecker.enabled is set)
- delete a chart Service on a KubeDB governing Service name that is not
  headless; KubeDB now reports it
- give a rehearsal Milvus its own copy of the auth Secret
- the client Service now moves only once a KubeDB proxy is Ready

Signed-off-by: sabnaj <sabnaj@appscode.com>
…mpact

- Lead with kubectl dba adopt milvus (plan, run, status, rollback); the
  manual steps stay as the contract the command follows.
- The overlap handover (KubeDB's pods of a role before the old ones stop) is
  supported and tested; the old text said two copies of a role must never
  run together.
- Manual rollback: delete the Milvus with orphan-on-delete first, so the
  operator no longer moves the client Service, and point the Service back
  at the old proxies with ports their pods define.
- Measured client impact of both methods and of a rollback.
- CLI reference pages for kubectl dba adopt.

Signed-off-by: sabnaj <sabnaj@appscode.com>
- kubectl dba adopt milvus -f adopt.yaml: a complete example for a chart
  without the upstream labels and QueryNodes on two GPU pools; plan
  --output-dir writes the file.
- A table of the options that are required or needed in some cases; the
  version comes from the running image and no Helm version is needed.
- kubectl dba runs on the admin's machine, not in the cluster.
- Leave the Helm release alone after the adoption (no upgrade, no
  uninstall).
- Regenerate the kubectl dba adopt reference pages for -f.

Signed-off-by: sabnaj <sabnaj@appscode.com>
Signed-off-by: sabnaj <sabnaj@appscode.com>
Signed-off-by: sabnaj <sabnaj@appscode.com>
Signed-off-by: sabnaj <sabnaj@appscode.com>
Signed-off-by: sabnaj <sabnaj@appscode.com>
Copilot AI balanced review requested due to automatic review settings November 2, 2026 07:54

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Copilot was unable to review this pull request because the user who requested the review has insufficient remaining quota. Try requesting a review at a lower effort level.

An organization owner can choose the repository organization as the billing source for reviews requested by members with a paid Copilot license. Learn about Copilot code review billing.

@github-actions

github-actions Bot commented Nov 2, 2026 •

Copy link
Copy Markdown

Visit the preview URL for this PR (updated for commit 854f069):

https://kubedb-v2-hugo--pr1088-milvus-object-storag-gv5zkd4v.web.app

(expires Mon, 16 Nov 2026 08:25:35 GMT)

🔥 via Firebase Hosting GitHub Action 🌎

Sign: 0f29ae8ae0bd54a99bf2b223b6833be47acd5943

Use milvuses.kubedb.com, wait for pods to exist, replace the Service
selector, note slow rollback, dead pods and the second Milvus on one Secret.

Signed-off-by: sabnaj <sabnaj@appscode.com>
@Sabnaj-42
Sabnaj-42 changed the base branch from milvus-inplace-adoption to master November 8, 2026 05:25
@souravbiswassanto
souravbiswassanto merged commit 14797af into master Nov 11, 2026
5 of 7 checks passed
@souravbiswassanto
souravbiswassanto deleted the milvus-object-storage-check branch November 11, 2026 04:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants