I am struggling to connect redis in sentinel mode using redis-cli.
I've tried:
redis-cli -h my_host -p my_port -a my_password
I randomly picked up one from 3 sentinel nodes to connect.
However, when logged in, it seems different with single mode redis, where I can manipulate dbs with set
or hset
commmand.
For instance, when I am typing:
select 0
(trying to select db 0)
It returns:
redis_sentinel_node_1_ip:port> select 0
(error) ERR unknown command `select`, with args beginning with: `0`
Could anyone help ?