I have installed redis 4.0.1 on macos sierra and created cluster running the following commands:
$ tar xzf redis-4.0.1.tar.gz
$ cd redis-4.0.1
$ make
$ make test
$ cd utils/create-cluster
$ ./create-cluster create
$ ./create-cluster start
I have connected to redis from redis-cli tool:
$ ./redis-cli -c -p 30001
127.0.0.1:30001> SELECT 4
(error) ERR SELECT is not allowed in cluster mode
When running in cluster mode, changing db is not supported. Is it an intended behaviour or it is a bug not fixed yet ?
The same situation exists for 3.2.8 redis.
That's intentional. Redis Cluster does not support multiple databases.
Most helpful comment
That's intentional. Redis Cluster does not support multiple databases.