New to KubeDB? Please start here.
Horizontal Scaling Weaviate
This guide will give you an overview of how KubeDB Ops Manager scales the number of nodes (replicas) of a Weaviate cluster.
Before You Begin
- You should be familiar with the following
KubeDBconcepts:
How Horizontal Scaling Process Works
The horizontal scaling process consists of the following steps:
At first, a user creates a
WeaviateCR.KubeDBprovisioner operator watches for theWeaviateCR and creates aPetSetand related necessary resources.Then, in order to scale the number of nodes of the
Weaviatecluster, the user creates aWeaviateOpsRequestCR with the desired node count.KubeDBOps Manager watches for theWeaviateOpsRequestCR.When it finds one, it halts the
Weaviateobject so that theKubeDBprovisioner operator doesn’t perform any operation on theWeaviateduring the scaling process.To scale up, the Ops Manager increases the replica count of the PetSet, waits for the new nodes to join the cluster and sync the schema, and then rebalances the shard replicas across the enlarged cluster.
To scale down, the Ops Manager rebalances shard replicas off the nodes that are going away, then decreases the replica count of the PetSet and removes the surplus nodes.
After successfully scaling, the
KubeDBOps Manager updates theWeaviateobject’s replica count to reflect the updated state and resumes theWeaviateobject so that theKubeDBProvisioner operator resumes its usual operations.
In the next doc, we are going to show a step-by-step guide on scaling a Weaviate cluster horizontally.































