Does Redis Cluster support multiple databases?

1,859 views
Skip to first unread message

Gleb Chermennov

unread,
Sep 4, 2017, 4:25:25 AM9/4/17
to Redis DB
Hello. 
We're evaluating a use of Redis Cluster for our app. We have a prod cluster set up and working and like to clarify some things.
A colleague said that we can use db number 4 because 0 through 3 are already taken. I'm a little confused, because cluster spec says that Cluster only support one db.
Can someone clarify that? Cluster is running Redis version 3.2.x

Jan-Erik Rediger

unread,
Sep 4, 2017, 4:36:19 AM9/4/17
to redi...@googlegroups.com
The spec is right:

> Redis Cluster does not support multiple databases like the stand alone
> version of Redis. There is just database 0 and the SELECT command is
> not allowed.

The actual Redis Cluster implementation doesn't support it.

However, there might be other "clusters" of Redis to run (which then
don't use what is called Redis Cluster, but maybe just replicated
instances with some other external failover handling or sharding proxy
in front)

On Mon, Sep 04, 2017 at 01:23:44AM -0700, Gleb Chermennov wrote:
> Hello.
> We're evaluating a use of Redis Cluster for our app. We have a prod cluster
> set up and working and like to clarify some things.
> A colleague said that we can use db number 4 because 0 through 3 are
> already taken. I'm a little confused, because cluster spec
> <https://redis.io/topics/cluster-spec> says that Cluster only support one
> db.
> Can someone clarify that? Cluster is running Redis version 3.2.x
>
> --
> 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 post to this group, send email to redi...@googlegroups.com.
> Visit this group at https://groups.google.com/group/redis-db.
> For more options, visit https://groups.google.com/d/optout.

Reply all
Reply to author
Forward
0 new messages