Redis clusters are used to:
Think about why multiple Redis nodes work together in a cluster.
A Redis cluster distributes data across nodes to handle more data and continue working if some nodes fail.
CLUSTER INFO on a healthy Redis cluster?Given a healthy Redis cluster, what does the CLUSTER INFO command return for the cluster_state field?
CLUSTER INFO
Healthy means the cluster is working fine.
The cluster_state field shows ok when the cluster is healthy and operational.
Select the correct Redis CLI command to add a new node with IP 192.168.1.10 and port 7003 to an existing cluster.
Adding a node uses the add-node option.
The --cluster add-node command adds a new node to an existing cluster by specifying the new node and an existing cluster node.
You want to create a Redis cluster with 3 nodes and distribute slots evenly. Which command option ensures balanced slot allocation?
Think about how replicas affect slot distribution.
Using --cluster-replicas 0 creates a cluster with no replicas, so slots are evenly distributed among the 3 nodes.
redis-cli --cluster create 192.168.1.1:7000 192.168.1.2:7000 fail?You try to create a Redis cluster with only two nodes using the command above. Why does it fail?
Think about the minimum number of master nodes for a Redis cluster.
A Redis cluster requires at least 3 master nodes to ensure data partitioning and fault tolerance. Two nodes are insufficient.