PayU / redis-operator

Kubernetes Redis operator that creates and manages a clustered Redis database.
Apache License 2.0
43 stars 16 forks source link

Node Area Replication for Redis Cluster on On-prem Kubernetes. #161

Open vineelyalamarthy opened 1 year ago

vineelyalamarthy commented 1 year ago

Great work on the project PayU team.

I have couple of questions.

  1. Is Node Aware Replication already working with this code? Because this issue https://github.com/PayU/redis-operator/issues/152 is still in open state. I am thinking that Master and Slave being in the different failure domains is not guaranteed. Am I correct?
  2. Let's say I increase the number of leaders and replicas after the initial deployment , will the Redis Cluster automatically rebalance the slots to make sure that new leaders are owing slots as well?
  3. We are planning to have a three node on-prem Kubernetes cluster and have Redis Cluster deployed in such a way that master and slave lie in different nodes? Does this Redis Operator support that.
  4. Also since this is NOT a statefulset, does the PV and PVC mounting work well ? Let's say we want to have persistence for Redis Cluster and the data to be saved across restarts of the pods. I am referring here: https://medium.com/payu-engineering/why-we-built-our-own-k8s-redis-operator-part-1-1a8cdce92412

Thanks a lot in advance.

shyimo commented 1 year ago

Hi @vineelyalamarthy. Thanks a lot for the feedback and sorry for the late response. it's holiday session now.

  1. Yes. it works well and was tested on production system
  2. Yes. this is done complete automatically by the operator
  3. Yes. this is supported out of the box without any special configuration and it was design this way.
  4. The PVC feature is the last part that was not implement yet. we hope to get it done by the end of 2023 / start of 2024.