Complete the command to add a new node to a Redis cluster.
redis-cli --cluster add-node [1] 127.0.0.1:7001 127.0.0.1:7000
The add-node command requires the address of the new node to add. Here, 127.0.0.1:7002 is the new node being added to the cluster.
Complete the command to remove a node from a Redis cluster by its node ID.
redis-cli --cluster del-node 127.0.0.1:7000 [1]
The del-node command requires the node ID to remove. The correct node ID here is 1234567890abcdef1234567890abcdef12345678.
Fix the error in the command to add a node to the cluster by filling the blank.
redis-cli --cluster add-node 127.0.0.1:7000 [1]
The add-node command requires the full address (IP and port) of the new node. Only 127.0.0.1:7001 is valid here.
Fill both blanks to create a command that removes a node by ID from the cluster.
redis-cli --cluster del-node [1] [2]
The first blank is the cluster node address to connect to, and the second blank is the node ID to remove.
Fill all three blanks to create a command that adds a node and assigns slots to it.
redis-cli --cluster add-node [1] [2] --cluster-slots [3]
The first blank is the new node address, the second is the existing cluster node address, and the third is the slot range assigned to the new node.