New to KubeDB? Please start here.
Hazelcast Horizontal Scaling
This guide will give an overview on how KubeDB Ops Manager scales up or down of Hazelcast
database cluster members.
Before You Begin
- You should be familiar with the following
KubeDB
concepts:
How Horizontal Scaling Process Works
The following diagram shows how KubeDB Ops Manager scales up or down Hazelcast
database components. Open the image in a new tab to see the enlarged version.
The scaling process consists of the following steps:
At first, a user creates a
Hazelcast
Custom Resource (CR).KubeDB
Community operator watches theHazelcast
CR.When the operator finds a
Hazelcast
CR, it creates required number ofStatefulSets
and related necessary stuff like appbinding, services, etc.Then, in order to scale the cluster, the user creates a
HazelcastOpsRequest
CR with desired information.KubeDB
Enterprise operator watches theHazelcastOpsRequest
CR.When it finds a
HazelcastOpsRequest
CR, it halts theHazelcast
object which is referred from theHazelcastOpsRequest
. So, theKubeDB
Community operator doesn’t perform any operations on theHazelcast
object during the scaling process.Then the
KubeDB
Enterprise operator will scale the related PetSets to reach the expected number of members defined in theHazelcastOpsRequest
CR.After the successfully scaling the StatefulSets replicas, the
KubeDB
Enterprise operator updates the number of members in theHazelcast
object to reflect the updated state of the database.After the successful scaling of
Hazelcast
members, theKubeDB
Enterprise operator resumes theHazelcast
object so that theKubeDB
Community operator resumes its usual operations.
In the next docs, we are going to show a step by step guide on horizontal scaling of Hazelcast database using HazelcastOpsRequest
CRD.