You are looking at the documentation of a prior release. To read the documentation of the latest release, please
visit here.
New to KubeDB? Please start here.
Redis Horizontal Scaling
This guide will give an overview on how KubeDB Enterprise operator scales up or down of Redis cluster database for both the number of replicas and masters.
Before You Begin
- You should be familiar with the following
KubeDBconcepts:
How Horizontal Scaling Process Works
The following diagram shows how KubeDB Enterprise operator scales up or down Redis database components. Open the image in a new tab to see the enlarged version.
The Horizontal scaling process consists of the following steps:
At first, a user creates a
RedisCustom Resource (CR).KubeDBCommunity operator watches theRedisCR.When the operator finds a
RedisCR, it creates required number ofStatefulSetsand related necessary stuff like secrets, services, appbindings, etc.Then, in order to scale the number of replica or master for the
Rediscluster database the user creates aRedisOpsRequestCR with desired information.KubeDBEnterprise operator watches theRedisOpsRequestCR.When it finds a
RedisOpsRequestCR, it patches theRedisobject which is referred from theRedisOpsRequest. After that, theKubeDBCommunity operator tries to reconcile the state of theRedisobject during the horizontal scaling process.KubeDBEnterprise operator will watch theRedisobject, continuously checking if theRediscluster has been configured as described in theRedisOpsRequest.After the
Rediscluster is configured as desired,KubeDB Enterpriseoperator will declare the OpsRequest as successful.
In the next docs, we are going to show a step by step guide on horizontal scaling of Redis database using RedisOpsRequest CRD.






























