DWQA QuestionsCategory: DatabaseIs redis cluster related to k8s cluster
fhzmWJ asked 3 months ago

As a distributed development Xiaobai, I came into contact with redis during the learning process and learned about redis clusters. Later, I found that many frameworks can be clustered, such as k8s. I want to know how to select these clusters, what relationships they have, and what application scenarios they have.,Let’s talk about cluster first.The definition of a cluster is a whole composed of the same things. A redis cluster is a whole composed of multiple redis services or multiple servers running redis; K8s cluster is a whole composed of multiple k8s nodes; and so on.General language descriptions don’t pick up the dictionary. When I say “redis cluster”, redis may run in docker, virtual machine or physical machine, but it refers to the whole composed of multiple entities running redis services.Then say what is k8s.K8s is not comparable to redis. K8s is a container scheduling system. The design goal is to solve the problem of automatic scheduling and scaling of server resources such as containers. If your services run in docker, if you have many services, if you need to run services on many servers, you should also ensure high availability of services, automatically scale when the load is high, andThere are many reasons to use k8s, but k8s is not a silver bullet. It can not solve all problems and meet all needs.last,

I want to know how to select these clusters, what relationships they have, and what application scenarios they have.

Redis cluster can run in kubernetes cluster.No way, k8s involving too many basic concepts. I suggest you start with docker and learn about containers.,Redis cluster and k8s cluster are not related. They are two independent things.

2 Answers
weak_ptr answered 3 months ago

Let’s talk about cluster first.The definition of a cluster is a whole composed of the same things. A redis cluster is a whole composed of multiple redis services or multiple servers running redis; K8s cluster is a whole composed of multiple k8s nodes; and so on.General language descriptions don’t pick up the dictionary. When I say “redis cluster”, redis may run in docker, virtual machine or physical machine, but it refers to the whole composed of multiple entities running redis services.Then say what is k8s.K8s is not comparable to redis. K8s is a container scheduling system. The design goal is to solve the problem of automatic scheduling and scaling of server resources such as containers. If your services run in docker, if you have many services, if you need to run services on many servers, you should also ensure high availability of services, automatically scale when the load is high, andThere are many reasons to use k8s, but k8s is not a silver bullet. It can not solve all problems and meet all needs.last,

I want to know how to select these clusters, what relationships they have, and what application scenarios they have.

Redis cluster can run in kubernetes cluster.No way, k8s involving too many basic concepts. I suggest you start with docker and learn about containers.

fhzmWJ replied 3 months ago

When I want to build a redis cluster, should I directly use redis’s own cluster mode or put redis in k8s

weak_ptr replied 3 months ago

Emphasize that redis cluster is redis cluster and k8s cluster is k8s cluster. In k8s cluster and redis clusterIs not a replaceable relationship

Bitter wheat vegetable answered 3 months ago

Redis cluster and k8s cluster are not related. They are two independent things.