在reshard過程當中,將會詢問reshard多少slots:

How many slots do you want to move (from 1 to 16384)?,取值範圍爲1~16384,其中16384爲redis cluster的擁有的slots總數,好比想只移動100個,輸入100便可。若是遷移的slots數量多,應當設置redis-trib.rb的超時參數--timeout值大一點。不然,遷移過程當中易遇到超時錯誤「[ERR] Calling MIGRATE: IOERR error or timeout reading to target instance」,致使只完成部分,可能會形成數據丟失。redis

相關文章
相關標籤/搜索