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.
Replace Sentinel Overview
This guide will give you an overview on how KubeDB Ops Manager replaces sentinel of a Redis instance.
Before You Begin
- You should be familiar with the following
KubeDBconcepts:
How Replace Sentinel Process Works
The following diagram shows how KubeDB Ops Manager replaces sentinel of Redis. Open the image in a new tab to see the enlarged version.
The replace sentinel process consists of the following steps:
At first, a user creates
RedisandRedisSentinelCustom Resource (CR).KubeDBCommunity operator watches theRedisandRedisSentinelCR.When the operator finds a
RedisCR, it creates aPetSetand related necessary stuff like appbinding, services, etc.When the operator finds a
RedisSentinelCR, it creates aPetSetand related necessary stuff like appbinding, services, etc.Then, in order to replace the sentinel of the
Redisdatabase the user creates a newRedisSentinelobject which will replace the old one andRedisOpsRequestCR with reference to the newly created sentinel.KubeDBEnterprise operator watches theRedisOpsRequestCR.When it finds a
RedisOpsRequestCR, it pauses theRedisobject which is referred from theRedisOpsRequest. So, theKubeDBCommunity operator doesn’t perform any operations on theRedisobject during the updating process.By looking at the target sentinel reference from
RedisOpsRequestCR,KubeDBEnterprise operator removes current sentinel and add desired sentinel to theRedisobject. Then it may delete the oldRedisSentinelobject if it is orphaned and user requested to remove it.After successfully updating
Redisobject, theKubeDBEnterprise operator resumes theRedisobject so that theKubeDBCommunity operator can resume its usual operations.
In the next docs, we are going to show a step-by-step guide on replacing sentinel of Redis database components using RedisOpsRequest CRD.
Next Steps
- Replace Sentinel of your database with a new Sentinel






























