has anyone deployed Redis in cluster mode

29 views
Skip to first unread message

Krish Narukulla

unread,
Feb 28, 2020, 6:26:34 PM2/28/20
to Redis DB
We have deployed Redis using containers on Kubernetes. There are many options of clustering available. Which option would suit best for container world.

Thanks
Krish

Jose Moreira

unread,
Feb 28, 2020, 7:18:04 PM2/28/20
to redi...@googlegroups.com
None. ;-)
K8s is not for an in-memory DB as redis, k8s is for stateful products. 

--
You received this message because you are subscribed to the Google Groups "Redis DB" group.
To unsubscribe from this group and stop receiving emails from it, send an email to redis-db+u...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/redis-db/f0e28fb7-5826-44be-9a80-4be014f4a390%40googlegroups.com.

Krish Narukulla

unread,
Feb 28, 2020, 7:21:09 PM2/28/20
to redi...@googlegroups.com
Redis also has persistent state, can be modeled as Stateful set.

--
Krish Narukulla
twitter-3-16.png  linkedin-6-16.png

Learn More

Jose Moreira

unread,
Feb 28, 2020, 7:29:07 PM2/28/20
to redi...@googlegroups.com
k8s gis complex to implement and the benefits are minimum. if you want HA and automatic failover, load balancer, etc, not need for k8s. Redis Cluster or Sentinel provides that.




David Maier (Redis Labs)

unread,
Feb 29, 2020, 10:25:53 AM2/29/20
to redi...@googlegroups.com
Hi Krish,

@Jose I would say that you can (in general) indeed have stateless (web) services in K8s. I would even say that this is very common. 

If you don't care about the state then Redis standalone plus client-side sharding might be an option. However, your state gets lost when a container will be respawned.

If you do care about the state by having specific HA and durability requirements, then Sentinel (single master + 2 replicas) or Redis OSS Cluster (multiple master shards + 2 replicas) might be the better choice.

It kind of depends on your HA and scalability requirements.

Redis Labs' K8s integration is coming with an Operator (operator pattern) which helps to deploy and operate Redis Enterprise Clusters in K8s. It supports stateless and stateful use cases within the same cluster (via seperated databases).

If you are not looking for an Enterprise solution, then you might be able to find K8s operators for Redis OSS in the community.

Hope this helps.

Regards,
David

-- Sent fromy mobile phone



Disclaimer

The information contained in this communication from the sender is confidential. It is intended solely for use by the recipient and others authorized to receive it. If you are not the recipient, you are hereby notified that any disclosure, copying, distribution or taking action in relation of the contents of this information is strictly prohibited and may be unlawful.

This email has been scanned for viruses and malware, and may have been automatically archived by Mimecast Ltd, an innovator in Software as a Service (SaaS) for business. Providing a safer and more useful place for your human generated data. Specializing in; Security, archiving and compliance. To find out more Click Here.

Reply all
Reply to author
Forward
0 new messages