0

I am trying to create a redis cluster non interactively (I have installed redis from source).

I have created a file with the command's arguments:

cat infile 
--verbose --cluster create redis.slave.1:6379 redis.master.1:6379 --cluster-replicas 1

The following command works (despite the error which doesn't have to do with the command's syntax):

/path/to/src/redis-cli --verbose --cluster create redis.slave.1:6379 redis.master.1:6379 --cluster-replicas 1

* ERROR: Invalid configuration for cluster creation. Redis Cluster requires at least 3 master nodes. This is not possible with 2 nodes and 1 replicas per node. * At least 6 nodes are required.

The following two attempts fail miserably:

# cat infile | /path/to/src/redis-cli 
(error) ERR unknown command `--verbose`, with args beginning with: `--cluster`, `create`, `redis.slave.1:6379`, `redis.master.1:6379`, `--cluster-replicas`, `1`, 


# /path/to/src/redis-cli < infile 
(error) ERR unknown command `--verbose`, with args beginning with: `--cluster`, `create`, `redis.slave.1:6379`, `redis.master.1:6379`, `--cluster-replicas`, `1`,

Any suggestions?

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.