Complete the code to get the cluster nodes information.
redis-cli [1] nodesThe cluster nodes command shows the cluster nodes information in Redis.
Complete the code to add a node to the Redis cluster.
redis-cli --cluster [1] 127.0.0.1:7003 127.0.0.1:7000
The --cluster add-node option is used to add a new node to an existing Redis cluster.
Fix the error in the command to reshard slots in the cluster.
redis-cli --cluster [1] 127.0.0.1:7000
The correct command to move slots between nodes is --cluster reshard.
Fill both blanks to check the cluster's slot allocation and node status.
redis-cli [1] cluster [2]
The command redis-cli info cluster slots shows slot allocation and cluster info.
Fill all three blanks to create a Redis cluster with 3 nodes and 1 replica each.
redis-cli --cluster create [1] [2] [3] --cluster-replicas 1
The command creates a cluster with nodes at ports 7000, 7001, and 7002, each having one replica.
