2017-12-12 6 views
0

redis 클러스터를 다시 공유 할 때 문제가 발생합니다.
레디 스 클러스터 정보와 아래 문제 세부 쇼 :redis cluster reshard [ERR] MIGRATE : ERR 구문 오류를 호출합니다.

obasa04:/usr/redis-4.0.2/srC# redis-trib.rb info 10.239.65.82:10000 
10.239.65.82:10000 (90c088ff...) -> 4 keys | 6974 slots | 1 slaves. 
10.239.65.82:[email protected] (a219daf5...) -> 7 keys | 5462 slots | 1 slaves. 
10.239.65.82:[email protected] (951e4654...) -> 3 keys | 3948 slots | 1 slaves. 
[OK] 14 keys in 3 masters. 
0.00 keys per slot on average. 
obasa04:/usr/redis-4.0.2/srC# redis-trib.rb reshard 10.239.65.82:10000 
>>> Performing Cluster Check (using node 10.239.65.82:10000) 
M: 90c088ff8fca8e5cbf4e901bbff571b0427a306d 10.239.65.82:10000 
    slots:0-5460,10923-12435 (6974 slots) master 
    1 additional replica(s) 
M: a219daf5ebf86f2bb4cd7e4dab9926b9570d0654 10.239.65.82:[email protected] 
    slots:5461-10922 (5462 slots) master 
    1 additional replica(s) 
S: f60d0c4059aae4d46882952b701ed2ab3161bbd5 10.239.65.82:[email protected] 
    slots: (0 slots) slave 
    replicates a219daf5ebf86f2bb4cd7e4dab9926b9570d0654 
M: 951e46545733d2ab4159b95f9d69ad1bdf85f0b3 10.239.65.82:[email protected] 
    slots:12436-16383 (3948 slots) master 
    1 additional replica(s) 
S: bb2221fd2599f541a51cddbd41a27954d842c1a3 10.239.65.82:[email protected] 
    slots: (0 slots) slave 
    replicates 951e46545733d2ab4159b95f9d69ad1bdf85f0b3 
S: d7c53081deb5e61d180124db1f9541a373c6d32a 10.239.65.82:[email protected] 
    slots: (0 slots) slave 
    replicates 90c088ff8fca8e5cbf4e901bbff571b0427a306d 
[OK] All nodes agree about slots configuration. 
>>> Check for open slots... 
>>> Check slots coverage... 
[OK] All 16384 slots covered. 
How many slots do you want to move (from 1 to 16384)? 10 
What is the receiving node ID? 90c088ff8fca8e5cbf4e901bbff571b0427a306d 
Please enter all the source node IDs. 
    Type 'all' to use all the nodes as source nodes for the hash slots. 
    Type 'done' once you entered all the source nodes IDs. 
Source node #1:all 

Ready to move 10 slots. 
    Source nodes: 
    M: a219daf5ebf86f2bb4cd7e4dab9926b9570d0654 10.239.65.82:[email protected] 
    slots:5461-10922 (5462 slots) master 
    1 additional replica(s) 
    M: 951e46545733d2ab4159b95f9d69ad1bdf85f0b3 10.239.65.82:[email protected] 
    slots:12436-16383 (3948 slots) master 
    1 additional replica(s) 
    Destination node: 
    M: 90c088ff8fca8e5cbf4e901bbff571b0427a306d 10.239.65.82:10000 
    slots:0-5460,10923-12435 (6974 slots) master 
    1 additional replica(s) 
    Resharding plan: 
    Moving slot 5461 from a219daf5ebf86f2bb4cd7e4dab9926b9570d0654 
    Moving slot 5462 from a219daf5ebf86f2bb4cd7e4dab9926b9570d0654 
    Moving slot 5463 from a219daf5ebf86f2bb4cd7e4dab9926b9570d0654 
    Moving slot 5464 from a219daf5ebf86f2bb4cd7e4dab9926b9570d0654 
    Moving slot 5465 from a219daf5ebf86f2bb4cd7e4dab9926b9570d0654 
    Moving slot 5466 from a219daf5ebf86f2bb4cd7e4dab9926b9570d0654 
    Moving slot 12436 from 951e46545733d2ab4159b95f9d69ad1bdf85f0b3 
    Moving slot 12437 from 951e46545733d2ab4159b95f9d69ad1bdf85f0b3 
    Moving slot 12438 from 951e46545733d2ab4159b95f9d69ad1bdf85f0b3 
    Moving slot 12439 from 951e46545733d2ab4159b95f9d69ad1bdf85f0b3 
Do you want to proceed with the proposed reshard plan (yes/no)? yes 
Moving slot 5461 from 10.239.65.82:[email protected] to 10.239.65.82:10000: 
Moving slot 5462 from 10.239.65.82:[email protected] to 10.239.65.82:10000: 
Moving slot 5463 from 10.239.65.82:[email protected] to 10.239.65.82:10000: 
Moving slot 5464 from 10.239.65.82:[email protected] to 10.239.65.82:10000: 
Moving slot 5465 from 10.239.65.82:[email protected] to 10.239.65.82:10000: 
Moving slot 5466 from 10.239.65.82:[email protected] to 10.239.65.82:10000: 
Moving slot 12436 from 10.239.65.82:[email protected] to 10.239.65.82:10000: 
[ERR] Calling MIGRATE: ERR Syntax error, try CLIENT (LIST | KILL | GETNAME | SETNAME | PAUSE | REPLY) 

하고 여기에 아마 쉽게 이미지 나에서에서 마이그레이션 할 수 있습니다 비어있는 이유는 다른 슬롯을 궁금해
errorImg1 errorImg2

읽기 10.239.65.82:[email protected] to 10.239.65.82:10000. 그러나 비어 있지 않은 슬롯 12439는 오류와 함께 마이그레이션됩니까? 이 문제를 해결하는 다른 방법은

obasa04:/usr/redis-4.0.2/srC# redis-trib.rb check 10.239.65.82:10000 
>>> Performing Cluster Check (using node 10.239.65.82:10000) 
M: 90c088ff8fca8e5cbf4e901bbff571b0427a306d 10.239.65.82:10000 
    slots:0-5466,10923-12435 (6980 slots) master 
    1 additional replica(s) 
M: a219daf5ebf86f2bb4cd7e4dab9926b9570d0654 10.239.65.82:[email protected] 
    slots:5467-10922 (5456 slots) master 
    1 additional replica(s) 
S: f60d0c4059aae4d46882952b701ed2ab3161bbd5 10.239.65.82:[email protected] 
    slots: (0 slots) slave 
    replicates a219daf5ebf86f2bb4cd7e4dab9926b9570d0654 
M: 951e46545733d2ab4159b95f9d69ad1bdf85f0b3 10.239.65.82:[email protected] 
    slots:12436-16383 (3948 slots) master 
    1 additional replica(s) 
S: bb2221fd2599f541a51cddbd41a27954d842c1a3 10.239.65.82:[email protected] 
    slots: (0 slots) slave 
    replicates 951e46545733d2ab4159b95f9d69ad1bdf85f0b3 
S: d7c53081deb5e61d180124db1f9541a373c6d32a 10.239.65.82:[email protected] 
    slots: (0 slots) slave 
    replicates 90c088ff8fca8e5cbf4e901bbff571b0427a306d 
[OK] All nodes agree about slots configuration. 
>>> Check for open slots... 
[WARNING] Node 10.239.65.82:10000 has slots in importing state (12436). 
[WARNING] Node 10.239.65.82:[email protected] has slots in migrating state (12436). 
[WARNING] The following slots are open: 12436 
>>> Check slots coverage... 
[OK] All 16384 slots covered. 

있습니까 : 그 후

, 내가 클러스터 상태 및 쇼를 확인?
내 redis가 4.0.2, ruby가 2.4.2p198
대단히 감사합니다 !!

답변