0
0
Redisquery~10 mins

Resharding hash slots in Redis - Interactive Code Practice

Choose your learning style9 modes available
Practice - 5 Tasks
Answer the questions below
1fill in blank
easy

Complete the command to start moving hash slots from one node to another.

Redis
CLUSTER SETSLOT [1] MIGRATING <node_id>
Drag options to blanks, or click blank then click option'
Aslot
Bslots
Cmigrating
Dimporting
Attempts:
3 left
💡 Hint
Common Mistakes
Using 'slots' instead of 'slot'
Using 'migrating' or 'importing' as the slot number
2fill in blank
medium

Complete the command to assign a hash slot to a node after migration.

Redis
CLUSTER SETSLOT [1] NODE <node_id>
Drag options to blanks, or click blank then click option'
Amigrating
Bimporting
Cslot
Dslots
Attempts:
3 left
💡 Hint
Common Mistakes
Using 'migrating' instead of 'slot'
Using plural 'slots' instead of singular 'slot'
3fill in blank
hard

Fix the error in the command to mark a slot as importing on the target node.

Redis
CLUSTER SETSLOT [1] IMPORTING <source_node_id>
Drag options to blanks, or click blank then click option'
Aslots
Bslot
Cmigrating
Dimport
Attempts:
3 left
💡 Hint
Common Mistakes
Using 'slots' instead of 'slot'
Using 'import' instead of 'importing'
4fill in blank
hard

Fill both blanks to complete the command that moves a key to the target node during resharding.

Redis
MIGRATE [1] 6379 [2] 0 5000
Drag options to blanks, or click blank then click option'
A127.0.0.1
Bkey
Cdestination_ip
Dkeyname
Attempts:
3 left
💡 Hint
Common Mistakes
Swapping IP and key name
Using 'key' instead of actual key name
5fill in blank
hard

Fill all three blanks to complete the command that finalizes slot migration by setting the slot state.

Redis
CLUSTER SETSLOT [1] [2] [3]
Drag options to blanks, or click blank then click option'
Aslot
BNODE
C<node_id>
DMIGRATING
Attempts:
3 left
💡 Hint
Common Mistakes
Using 'MIGRATING' instead of 'NODE' in second blank
Omitting the node ID