New to KubeDB? Please start here.
Vertical Scaling Milvus
This guide will give an overview on how the KubeDB Ops-manager operator vertically scales a Milvus database.
Before You Begin
- You should be familiar with the following
KubeDBconcepts:
How Vertical Scaling Process Works
Vertical scaling changes the CPU/memory resources of Milvus pods. A MilvusOpsRequest of type VerticalScaling carries the new resources under spec.verticalScaling, keyed by the component you want to scale:
- Standalone: use the
nodekey. - Distributed: use any of
proxy,mixcoord,datanode,querynode,streamingnode(you can scale several at once).
spec:
type: VerticalScaling
verticalScaling:
node: # 'node' for standalone; role names for distributed
resources:
requests:
cpu: "1"
memory: "2Gi"
limits:
cpu: "1"
memory: "2Gi"
The flow is:
- A user creates a
MilvusOpsRequestof typeVerticalScaling. - The operator validates the request and pauses the
Milvusdatabase. - The operator updates the resources in the
Milvusobject’sspec.podTemplateand the corresponding PetSets. - Pods are restarted (evicted and recreated) so they come up with the new resources.
- The operator resumes the database and marks the
MilvusOpsRequestasSuccessful.
In the next doc, we will see a step-by-step guide on vertically scaling a Milvus database.































